v2: Add source-epoch key in pipeline declaration and pass to buildroot

If this is set it is passed down to all stages and set as
SOURCE_DATE_EPOCH in the buildroot environment. This implements
the spec at:
  https://reproducible-builds.org/docs/source-date-epoch/
This commit is contained in:
Alexander Larsson 2022-02-04 15:51:48 +01:00 committed by Christian Kellner
parent e516bf7898
commit b31c91d671
4 changed files with 19 additions and 8 deletions

View file

@ -35,7 +35,7 @@ class TestDescriptions(unittest.TestCase):
def test_stage_run(self):
index = osbuild.meta.Index(os.curdir)
info = index.get_module_info("Stage", "org.osbuild.noop")
stage = osbuild.Stage(info, {}, None, None, {})
stage = osbuild.Stage(info, {}, None, None, {}, None)
with tempfile.TemporaryDirectory() as tmpdir: