From 1f9324b662dd9055c7a704d6435103120fa8d12c Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Tue, 3 Dec 2024 19:47:56 +0000 Subject: [PATCH] allow init packages to be versioned Signed-off-by: Austin Abro --- src/internal/packager2/layout/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/packager2/layout/create.go b/src/internal/packager2/layout/create.go index 17856a0654..d52352d1ae 100644 --- a/src/internal/packager2/layout/create.go +++ b/src/internal/packager2/layout/create.go @@ -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 }