build: embed the v-prefixed tag and keep node on 24 LTS#40
Merged
Conversation
Use goreleaser's {{.Tag}} instead of {{.Version}} for the injected
main.version, so released binaries report "v0.3.1" like local
git-describe builds do, instead of a bare "0.3.1".
Also ignore major bumps of the node Docker base image in Dependabot so
the build stage stays on the Node 24 LTS line (24.x patches still flow).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fyts9AaSzgqLshpmaibaSv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version normalization
Release binaries reported a bare
0.3.0while locally-built ones reportv0.3.0, because goreleaser's{{.Version}}strips the leadingv. Switch both build ldflags to{{.Tag}}so released binaries embed the fullv0.3.1, matching thegit describestring local builds use. (The self-upgrade comparison already stripsv, so this is purely cosmetic consistency.)Node 24 LTS
Follow-up to closing #37: add a Dependabot
ignorefor major bumps of thenodeDocker base image, so the build stage stays on the Node 24 LTS line and thenode:26-alpinePR isn't re-proposed weekly. Minor/patch 24.x updates still flow.🤖 Generated with Claude Code