From c805334cf5c494e8ce6b93a2844c6fe8cbd61772 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Tue, 27 Jan 2026 13:25:01 +0800 Subject: [PATCH] fix: prioritize env variable over git tag in version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 239572d1..e0adbe06 100644 --- a/Makefile +++ b/Makefile @@ -220,7 +220,7 @@ deps: # Build for production build-prod: - VERSION=$${VERSION:-$$(git describe --tags --abbrev=0 2>/dev/null || echo "unknown")}; \ + VERSION=$$(git describe --tags --abbrev=0 2>/dev/null || echo "$${VERSION:-unknown}"); \ COMMIT_ID=$${COMMIT_ID:-unknown}; \ BUILD_TIME=$${BUILD_TIME:-unknown}; \ GO_VERSION=$${GO_VERSION:-unknown}; \