fix: prioritize env variable over git tag in version

This commit is contained in:
wizardchen
2026-01-27 13:25:01 +08:00
committed by lyingbug
parent fcaad914ea
commit c805334cf5
+1 -1
View File
@@ -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}; \