Skip to content

chore(ci): inject version ldflags in release workflow#1594

Merged
SchoolyB merged 1 commit intodevfrom
fix/release-ldflags
Apr 30, 2026
Merged

chore(ci): inject version ldflags in release workflow#1594
SchoolyB merged 1 commit intodevfrom
fix/release-ldflags

Conversation

@SchoolyB
Copy link
Copy Markdown
Owner

Summary

  • Release binaries were built with bare go build -o ez ./cmd/ez, missing the -ldflags that inject Version and BuildTime
  • This caused every released binary to report dev (dev build) and Built: unknown when users ran ez version after installing via ez install
  • Now passes -X main.Version=${TAG} -X main.BuildTime=${BUILD_TIME} matching what the Makefile does for local builds

Release binaries were built without -ldflags, so Version and BuildTime
defaulted to "dev" and "unknown". Users who installed via ez install
saw "dev (dev build)" instead of the actual release version.
@github-actions github-actions Bot added the CI/CD Continuous Integration/Continuous Deployment label Apr 30, 2026
@SchoolyB SchoolyB changed the base branch from main to dev April 30, 2026 19:14
@SchoolyB SchoolyB merged commit 42ed01c into dev Apr 30, 2026
5 checks passed
@SchoolyB SchoolyB deleted the fix/release-ldflags branch April 30, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Continuous Integration/Continuous Deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant