Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix: prioritize env variable over git tag in version

wizardchenc805334cf5c4
diff --git a/Makefile b/Makefile
index 239572d1a..e0adbe065 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}; \