Make Manifest() return manifest.Manifest

Return manifest.Manifest from the Manifest() function without
serializing.  The caller then has to call the manifest.Serialize()
function using the depsolved packages.

This moves towards changing the order of actions required to generate a
manifest.  With this change, the manifest creation and depsolving can be
done independently, but this still requires instantiating the manifest
object twice (InstantiateManifest() is called in PackageSets() and
Manifest()), which we don't want to have to do.
This commit is contained in:
Achilleas Koutsou 2023-04-12 19:54:03 +02:00 committed by Simon de Vlieger
parent db431a565d
commit 12e8ab3ac6
20 changed files with 145 additions and 80 deletions

View file

@ -592,7 +592,7 @@ func TestComposeStatusSuccess(t *testing.T) {
"kind": "ComposeManifests",
"manifests": [
{
"version": "",
"version": "2",
"pipelines": [],
"sources": {}
}