fix: report actual version instead of hardcoded 3.0.0-dev #63

Merged
benvin merged 1 commits from benvin/fix-version into master 2026-06-27 00:51:27 +10:00
Owner

The / endpoint was hardcoded to return 3.0.0-dev. Now uses the git tag version set via ldflags at build time.

The / endpoint was hardcoded to return 3.0.0-dev. Now uses the git tag version set via ldflags at build time.
unkinben added 1 commit 2026-06-27 00:48:09 +10:00
fix: report actual version instead of hardcoded 3.0.0-dev
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ab2b7ed5ac
- Add version variable to main.go, set via -X ldflags at build time
- Pass version through to Server, used in the / endpoint response
- Makefile passes VERSION from git describe
- Dockerfile accepts VERSION build arg
- Woodpecker passes CI_COMMIT_TAG as VERSION
benvin merged commit 603be5b989 into master 2026-06-27 00:51:27 +10:00
benvin deleted branch benvin/fix-version 2026-06-27 00:51:27 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/artifactapi#63