From d727d9aa761a0600bbee7a34dc43470e17c68a11 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 20 Dec 2024 15:23:30 +0100 Subject: [PATCH] manifestgen: port to the new `images` manifest seed This moves to the new images Manifest() API from PR#1107. --- internal/manifestgen/manifestgen.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/manifestgen/manifestgen.go b/internal/manifestgen/manifestgen.go index 560c3a7..f1cf05a 100644 --- a/internal/manifestgen/manifestgen.go +++ b/internal/manifestgen/manifestgen.go @@ -5,7 +5,6 @@ import ( "io" "os" "strings" - "time" "github.com/osbuild/images/pkg/blueprint" "github.com/osbuild/images/pkg/container" @@ -152,17 +151,12 @@ func (mg *Generator) Generate(bp *blueprint.Blueprint, dist distro.Distro, imgTy if imgOpts == nil { imgOpts = &distro.ImageOptions{} } - // we may allow to customize the seed in the future via imgOpts or - // an environment variable - // XXX: look into "images" so that it automatically seeds when pasing - // a "0" seed. - seed := time.Now().UnixNano() repos, err := mg.reporegistry.ReposByImageTypeName(dist.Name(), a.Name(), imgType.Name()) if err != nil { return err } - preManifest, warnings, err := imgType.Manifest(bp, *imgOpts, repos, seed) + preManifest, warnings, err := imgType.Manifest(bp, *imgOpts, repos, nil) if err != nil { return err }