Update osbuild/images to v0.88.0
Adjust all paces that call `Solver.Depsolve()`, to cope with the changes that enabled SBOM support. Fix loading of testing repositories in the CloudAPI unit tests. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
b2096c2963
commit
7bdd036395
19 changed files with 169 additions and 57 deletions
|
|
@ -17,6 +17,7 @@ import (
|
|||
"github.com/osbuild/images/pkg/manifest"
|
||||
"github.com/osbuild/images/pkg/reporegistry"
|
||||
"github.com/osbuild/images/pkg/rpmmd"
|
||||
"github.com/osbuild/images/pkg/sbom"
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
"github.com/osbuild/osbuild-composer/internal/store"
|
||||
"github.com/osbuild/osbuild-composer/internal/target"
|
||||
|
|
@ -32,12 +33,12 @@ func getManifest(bp blueprint.Blueprint, t distro.ImageType, a distro.Arch, d di
|
|||
repoConfigs := make(map[string][]rpmmd.RepoConfig)
|
||||
solver := dnfjson.NewSolver(d.ModulePlatformID(), d.Releasever(), a.Name(), d.Name(), cacheDir)
|
||||
for name, packages := range manifest.GetPackageSetChains() {
|
||||
res, repos, err := solver.Depsolve(packages)
|
||||
res, err := solver.Depsolve(packages, sbom.StandardTypeNone)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
pkgSpecSets[name] = res
|
||||
repoConfigs[name] = repos
|
||||
pkgSpecSets[name] = res.Packages
|
||||
repoConfigs[name] = res.Repos
|
||||
}
|
||||
|
||||
mf, err := manifest.Serialize(pkgSpecSets, nil, nil, repoConfigs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue