Skip to content

[build] Makefile: align GoVersion + add a snapshot target#26

Merged
vt128 merged 1 commit into
masterfrom
build/makefile-snapshot-target
Jun 23, 2026
Merged

[build] Makefile: align GoVersion + add a snapshot target#26
vt128 merged 1 commit into
masterfrom
build/makefile-snapshot-target

Conversation

@vt128

@vt128 vt128 commented Jun 23, 2026

Copy link
Copy Markdown
Member

Two small build-tooling improvements (follow-up to the goreleaser distribution work):

  • GoVersion alignment β€” inject it from go env GOVERSION (e.g. go1.25.9) instead of the full go version string. The old value baked the build host platform, so a make build_linux binary misleadingly reported darwin/arm64 in its --version; the new value is the toolchain version only and matches what GoReleaser injects.
  • make snapshot β€” a release-style cross-platform build via GoReleaser in --snapshot mode (local dry-run, nothing published). make build stays the fast single-platform dev build; make snapshot is for inspecting what a real release would ship (artifacts land in dist/).

Named snapshot, not release, on purpose: a real release only ever happens via a tag + the release workflow, never a local make β€” calling it release would be misleading.

Verified locally: make build shows Go Version: go1.25.9; make snapshot produces all six platform archives + checksums.

- GoVersion is now injected from `go env GOVERSION` (e.g. go1.25.9) instead of
  the full `go version` string. The old value baked the build *host* platform,
  so a `make build_linux` binary misleadingly reported `darwin/arm64`; the new
  value is the toolchain version only and matches what GoReleaser injects.
- Add `make snapshot`: a release-style cross-platform build via GoReleaser in
  --snapshot mode (local dry-run, nothing published). `make build` stays the
  fast single-platform dev build; `make snapshot` is for inspecting what a real
  release would ship. Named `snapshot` (not `release`) on purpose β€” a real
  release only ever happens via a tag + the release workflow, never a local make.
@vt128 vt128 merged commit e4f0314 into master Jun 23, 2026
6 checks passed
@vt128 vt128 deleted the build/makefile-snapshot-target branch June 23, 2026 16:11
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