Skip to content

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

Open
MrBeldum wants to merge 1 commit into
bytestrix:mainfrom
MrBeldum:fix/version-from-buildinfo
Open

MrBeldum wants to merge 1 commit into
bytestrix:mainfrom
MrBeldum:fix/version-from-buildinfo

Conversation

@MrBeldum

@MrBeldum MrBeldum commented Oct 5, 2026

Copy link
Copy Markdown

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).
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"

1 participant