diff --git a/src/pkg/packager/creator/utils.go b/src/pkg/packager/creator/utils.go index 3d5c5ef016..891e80db5a 100644 --- a/src/pkg/packager/creator/utils.go +++ b/src/pkg/packager/creator/utils.go @@ -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 }