Skip to content

fix(version): correct ldflags variable names for build metadata#74

Merged
platinummonkey merged 1 commit intomainfrom
fix/version-ldflags
Feb 17, 2026
Merged

fix(version): correct ldflags variable names for build metadata#74
platinummonkey merged 1 commit intomainfrom
fix/version-ldflags

Conversation

@platinummonkey
Copy link
Collaborator

Summary

  • Release binaries showed Pup 0.16.0 (unknown) built on unknown because the ldflags in .goreleaser.yml and Makefile referenced non-existent Go variables (version.Commit, version.Date, version.BuiltBy)
  • Fixed ldflags to match the actual variables in internal/version/version.go: version.GitCommit and version.BuildDate

Changes

  • .goreleaser.yml:33-37 — Fix ldflags: CommitGitCommit, DateBuildDate, remove orphaned BuiltBy
  • Makefile:18-21 — Same fixes for local make build-quick / make install

Testing

  • Built locally with make build-quick and verified ./pup version outputs:
    Pup v0.16.0 (74fcbbb) built on 2026-02-17T18:35:48Z

🤖 Generated with Claude Code

The ldflags in .goreleaser.yml and Makefile referenced non-existent
variables (version.Commit, version.Date, version.BuiltBy), causing
release binaries to show "unknown" for git commit and build date.
Fixed to match the actual Go variables (version.GitCommit, version.BuildDate).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@platinummonkey platinummonkey requested a review from a team as a code owner February 17, 2026 18:36
@platinummonkey platinummonkey merged commit b98cf33 into main Feb 17, 2026
5 checks passed
@platinummonkey platinummonkey deleted the fix/version-ldflags branch February 17, 2026 18:43
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

Comments