feat(package) Version were not correctly set

As the code moved in "internal" package, we need to set the version to
the new location
This commit is contained in:
2025-08-04 16:13:35 +02:00
parent 0d36a48f93
commit b13e922966
2 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
## BUILD
GO_BUILD=go build -ldflags="-X 'github.com/katenary/katenary/internal/generator.Version=$(VERSION)'" -trimpath -o $(OUTPUT) ./cmd/katenary
# Simply build the binary for the current OS and architecture
build: pull katenary
@@ -14,11 +15,10 @@ ifeq ($(GO),local)
@echo "=> Build on host using go"
$(GO_BUILD)
else
@echo "=> Build in container using" $(CTN)
@$(GO_OCI) $(GO_BUILD)
echo "=> Build in container using" $(CTN)
$(GO_OCI) $(GO_BUILD)
endif
# Make dist, build executables for all platforms, sign them, and compress them with upx if possible.
# Also generate the windows installer.
binaries: prepare $(BINARIES)