Skip to content

fix: inject version and commit via ldflags in CI builds#621

Merged
james-nesbitt merged 1 commit intomainfrom
fix-build-version
Apr 21, 2026
Merged

fix: inject version and commit via ldflags in CI builds#621
james-nesbitt merged 1 commit intomainfrom
fix-build-version

Conversation

@james-nesbitt
Copy link
Copy Markdown
Collaborator

The release and build workflows called go build without -ldflags, so the binary always had Version=0.0.0 and GitCommit=HEAD.

  • release.yml: inject both Version (from tag) and GitCommit
  • build.yml: inject GitCommit (no version tag on main builds)

The release and build workflows called go build without -ldflags,
so the binary always had Version=0.0.0 and GitCommit=HEAD.

- release.yml: inject both Version (from tag) and GitCommit
- build.yml: inject GitCommit (no version tag on main builds)

Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>
@james-nesbitt james-nesbitt merged commit 4ec78f4 into main Apr 21, 2026
3 checks passed
@james-nesbitt james-nesbitt deleted the fix-build-version branch April 21, 2026 09:36
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