Skip to content

Commit

Permalink
WIP: cmd: Serialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Apr 9, 2024
1 parent 5e263ea commit f9670b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/gen-manifests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/osbuild-playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit f9670b4

Please sign in to comment.