From f9670b45b7a6a8f309ad3025f8f4a0dfcc7dff81 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 10 Apr 2024 00:26:19 +0200 Subject: [PATCH] WIP: cmd: Serialize() --- cmd/build/main.go | 2 +- cmd/gen-manifests/main.go | 2 +- cmd/osbuild-playground/playground.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/build/main.go b/cmd/build/main.go index 602826e07b..6527d5a1b4 100644 --- a/cmd/build/main.go +++ b/cmd/build/main.go @@ -104,7 +104,7 @@ func makeManifest(imgType distro.ImageType, config BuildConfig, distribution dis return nil, fmt.Errorf("[ERROR] ostree commit resolution failed: %s\n", err.Error()) } - mf, err := manifest.Serialize(packageSpecs, containerSpecs, commitSpecs) + mf, err := manifest.Serialize(packageSpecs, containerSpecs, commitSpecs, nil) if err != nil { return nil, fmt.Errorf("[ERROR] manifest serialization failed: %s", err.Error()) } diff --git a/cmd/gen-manifests/main.go b/cmd/gen-manifests/main.go index 264dcf905a..23726642ba 100644 --- a/cmd/gen-manifests/main.go +++ b/cmd/gen-manifests/main.go @@ -275,7 +275,7 @@ func makeManifestJob( commitSpecs = mockResolveCommits(manifest.GetOSTreeSourceSpecs()) } - mf, err := manifest.Serialize(packageSpecs, containerSpecs, commitSpecs) + mf, err := manifest.Serialize(packageSpecs, containerSpecs, commitSpecs, repoConfigs) if err != nil { return fmt.Errorf("[%s] manifest serialization failed: %s", filename, err.Error()) } diff --git a/cmd/osbuild-playground/playground.go b/cmd/osbuild-playground/playground.go index d082183049..ba6dab04ed 100644 --- a/cmd/osbuild-playground/playground.go +++ b/cmd/osbuild-playground/playground.go @@ -48,7 +48,7 @@ func RunPlayground(img image.ImageKind, d distro.Distro, arch distro.Arch, repos fmt.Fprintf(os.Stderr, "could not clean dnf cache: %s", err.Error()) } - bytes, err := manifest.Serialize(packageSpecs, nil, nil) + bytes, err := manifest.Serialize(packageSpecs, nil, nil, nil) if err != nil { panic("failed to serialize manifest: " + err.Error()) }