manifest: add resolved commit specs to Serialize()

Same as with package specs and container specs, the commit specs are
added to the manifest serialization after being resolved.
This commit is contained in:
Achilleas Koutsou 2023-05-31 16:55:21 +02:00 committed by Ondřej Budai
parent e05d4b4a03
commit 89a398371d
21 changed files with 101 additions and 39 deletions

View file

@ -56,7 +56,7 @@ func FixtureBase() *Store {
panic(fmt.Sprintf("failed to create a manifest: %v", err))
}
mf, err := manifest.Serialize(nil, nil)
mf, err := manifest.Serialize(nil, nil, nil)
if err != nil {
panic(fmt.Sprintf("failed to create a manifest: %v", err))
}
@ -198,7 +198,7 @@ func FixtureFinished() *Store {
panic(fmt.Sprintf("failed to create a manifest: %v", err))
}
mf, err := manifest.Serialize(nil, nil)
mf, err := manifest.Serialize(nil, nil, nil)
if err != nil {
panic(fmt.Sprintf("failed to create a manifest: %v", err))
}

View file

@ -53,7 +53,7 @@ func (suite *storeTest) SetupSuite() {
suite.myArch, _ = suite.myDistro.GetArch(test_distro.TestArchName)
suite.myImageType, _ = suite.myArch.GetImageType(test_distro.TestImageTypeName)
manifest, _, _ := suite.myImageType.Manifest(&suite.myBP, suite.myImageOptions, suite.myRepoConfig, 0)
suite.myManifest, _ = manifest.Serialize(nil, nil)
suite.myManifest, _ = manifest.Serialize(nil, nil, nil)
suite.mySourceConfig = SourceConfig{
Name: "testSourceConfig",
}