Skip to content

Commit c805334

Browse files
committed
fix: prioritize env variable over git tag in version
1 parent fcaad91 commit c805334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ deps:
220220

221221
# Build for production
222222
build-prod:
223-
VERSION=$${VERSION:-$$(git describe --tags --abbrev=0 2>/dev/null || echo "unknown")}; \
223+
VERSION=$$(git describe --tags --abbrev=0 2>/dev/null || echo "$${VERSION:-unknown}"); \
224224
COMMIT_ID=$${COMMIT_ID:-unknown}; \
225225
BUILD_TIME=$${BUILD_TIME:-unknown}; \
226226
GO_VERSION=$${GO_VERSION:-unknown}; \

0 commit comments

Comments
 (0)