Skip to content

Commit

Permalink
manifestgen: port to the new images manifest seed
Browse files Browse the repository at this point in the history
This moves to the new images Manifest() API from PR#1107.
  • Loading branch information
mvo5 committed Jan 8, 2025
1 parent 59e6ce2 commit d727d9a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/manifestgen/manifestgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"os"
"strings"
"time"

"github.com/osbuild/images/pkg/blueprint"
"github.com/osbuild/images/pkg/container"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit d727d9a

Please sign in to comment.