Derive the build version from the git tag #12

Merged
FernandoJVideira merged 1 commits from fix/version-from-git-tag into main 2026-10-08 23:11:42 +00:00
1 Commits
Author SHA1 Message Date
FernandoJVideiraandClaude Sonnet 5.5 ab322b7d91 Derive the build version from the git tag
The version was a hand-edited constant in the Makefile, so tagging a release
without first committing the bump produced a release whose binaries disagree
with it: v0.2.1 was tagged on a commit still saying VERSION := v0.2.0, and
all four binaries attached to that release print v0.2.0 from `draft version`.

VERSION now comes from `git describe --tags --always`: exactly the tag on a
tagged commit (v0.2.1), tag-plus-distance after it (v0.2.1-3-g1a2b3c4), `dev`
outside a git checkout such as a source tarball. `make build VERSION=...`
still overrides it. There is nothing left to bump before tagging.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-09 00:08:56 +01:00