Skip to content

fix: show module version for go install builds#17

Merged
andresvio merged 1 commit intomainfrom
fix/go-install-version
Mar 26, 2026
Merged

fix: show module version for go install builds#17
andresvio merged 1 commit intomainfrom
fix/go-install-version

Conversation

@andresvio
Copy link
Copy Markdown
Collaborator

Summary

  • Fix version display for go install users: shows module pseudo-version instead of "dev"
  • Compress social-preview.png (1.0M → 401K)

What was wrong

go install doesn't set ldflags and doesn't embed VCS info. The fallback chain (ldflags → vcs.revision → "dev") always landed on "dev". Now checks info.Main.Version first, which go install does populate.

Test plan

  • go install ...@latest then taskprim --version shows a version, not "dev"
  • make build still shows git describe version
  • Release binaries still show semver from ldflags

Assisted-By: Claude Opus 4

go install doesn't set ldflags, so Version stays empty. The fallback
checked vcs.revision which go install also doesn't embed. Now checks
info.Main.Version first, which go install does set to the module
pseudo-version.

Also: compress social-preview.png from 1.0M to 401K for GitHub upload.

Assisted-By: Claude Opus 4
@andresvio andresvio force-pushed the fix/go-install-version branch from efac6d6 to e35ee50 Compare March 26, 2026 19:21
@andresvio andresvio merged commit e5e4a17 into main Mar 26, 2026
4 checks passed
@andresvio andresvio deleted the fix/go-install-version branch March 26, 2026 19:26
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.

1 participant