Skip to content

Commit

Permalink
feat: allow init packages to be explicitly versioned (#3286)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 authored Dec 5, 2024
1 parent e0bfac8 commit 5bf0791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/packager2/layout/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func recordPackageMetadata(pkg v1alpha1.ZarfPackage, flavor string, registryOver
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 5bf0791

Please sign in to comment.