Skip to content

Commit

Permalink
feat: allow versioning of init packages outside of binary version
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Conlon <software@conlon.dev>
  • Loading branch information
a1994sc committed Nov 1, 2024
1 parent 6b6869f commit 7a641b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/packager/creator/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func recordPackageMetadata(pkg *v1alpha1.ZarfPackage, createOpts types.ZarfCreat
hostname, _ := os.Hostname()
pkg.Build.Terminal = hostname

if pkg.IsInitConfig() {
if pkg.IsInitConfig() && pkg.Metadata.Version == "" {
pkg.Metadata.Version = config.CLIVersion
}

Expand Down

0 comments on commit 7a641b3

Please sign in to comment.