Skip to content

fix: show module version for go install builds - #13

Merged
rishibaghel25 merged 1 commit into
bytestrix:mainfrom
MrBeldum:fix/version-from-buildinfo
Oct 17, 2026
Merged

rishibaghel25 merged 1 commit into
bytestrix:mainfrom
MrBeldum:fix/version-from-buildinfo

Conversation

@MrBeldum

@MrBeldum MrBeldum commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When ldflags leave version as dev, fall back to debug.ReadBuildInfo().Main.Version (unless it is (devel)).
  • -version and the dashboard header both use the resolved value. Release builds still prefer the ldflags tag.

Test plan

  • go test ./cmd/vanityrig/

Fixes #4

When ldflags leave version as "dev", fall back to debug.ReadBuildInfo
so `go install ...@vX.Y.Z` reports the real tag (bytestrix#4).
@rishibaghel25
rishibaghel25 merged commit 46543c3 into bytestrix:main Oct 17, 2026
@rishibaghel25

Copy link
Copy Markdown
Member

@MrBeldum TYSM for your contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show the real version for go install builds instead of "dev"

2 participants