Fall back to dev when git describe prints nothing (closes #74) #84

Merged
clawbot merged 1 commits from issue-74-version-dev-fallback into next 2026-10-04 07:02:28 +02:00
1 Commits
Author SHA1 Message Date
sneak 7741a69a54 Fall back to dev when git describe prints nothing (closes #74)
check / check (push) Waiting to run
The Makefile example in the Go styleguide and in the HTTP server conventions
set VERSION from `git describe --tags --always` alone. Where that prints
nothing (outside a git checkout, or where git is missing or refuses the
checkout), the binary was stamped with an empty version and nothing said so.
Both now read
`VERSION ?= $(or $(shell git describe --tags --always 2>/dev/null),dev)`, and
the comment above each names that condition. A `VERSION` from the environment
or the make command line still takes precedence.

Model: opus-5-5
2026-10-04 03:49:43 +00:00