Wire binary release asset build + version ldflags injection #16
Labels
No labels
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
status/deferred
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/purser#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
internal/versionpackage accepts aTagvariable injected via-ldflagsat build time, but the release workflow (reusable-release.yml@v0.35.0) has nobuild_command/asset_pathsinput and produces no binary artifact.To complete the version-stamp feature:
go build -ldflags "-X .../version.Tag=${VERSION}"step to the release workflow (either via a release-toolkit input when one is added, or a separate consumer job)VERSIONbuild-arg to the Dockerfile so image builds can also inject the versionUntil this lands, deployed images show the VCS commit hash (from
debug.ReadBuildInfo) rather than the release tag.Filed from purser#7 (PR#14) per Lookout review id=4857.
pilot referenced this issue2026-08-05 22:41:04 +02:00