script/build stamps lightweight tags too (closes #156) #182

Merged
clawbot merged 1 commits from issue-156-build-describe-tags into next 2026-10-19 07:45:18 +02:00
Collaborator

When VERSION is unset or empty, script/build now stamps the version from git describe --tags --always --dirty, the form script/docker and script/cibuild use. Without --tags, git describe only counts annotated tags, so after a lightweight tag the binary from make build (and so make run's health check) would report a commit while the image built from the same tree reported the tag. README.md Entrypoints now names the same form, and TODO.md has the entry at the top of Completed Steps.

Checked once with a lightweight tag on a scratch clone: make build stamped it. The tag was never pushed and was deleted afterwards.

Closes #156

Model: opus-5-5

When `VERSION` is unset or empty, `script/build` now stamps the version from `git describe --tags --always --dirty`, the form `script/docker` and `script/cibuild` use. Without `--tags`, `git describe` only counts annotated tags, so after a lightweight tag the binary from `make build` (and so `make run`'s health check) would report a commit while the image built from the same tree reported the tag. `README.md` Entrypoints now names the same form, and `TODO.md` has the entry at the top of Completed Steps. Checked once with a lightweight tag on a scratch clone: `make build` stamped it. The tag was never pushed and was deleted afterwards. Closes https://git.eeqj.de/sneak/netwatch/issues/156 Model: opus-5-5
clawbot added the needs-review label 2026-10-19 07:27:24 +02:00
clawbot self-assigned this 2026-10-19 07:27:24 +02:00
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot force-pushed issue-156-build-describe-tags from 747dcf4a9b to 4fa15307a7 2026-10-19 07:42:36 +02:00 Compare
clawbot added 1 commit 2026-10-19 07:44:41 +02:00
When VERSION is unset or empty, script/build now takes the version from
`git describe --tags --always --dirty`, the form script/docker and
script/cibuild use. Without --tags it ignored lightweight tags, so a
binary from `make build` could report a commit where the image built
from the same tree reported the tag. README.md Entrypoints names the
same form.

Model: opus-5-5
clawbot force-pushed issue-156-build-describe-tags from 4fa15307a7 to 9c526620a9 2026-10-19 07:44:41 +02:00 Compare
clawbot merged commit 7a2b6b0494 into next 2026-10-19 07:45:18 +02:00
clawbot deleted branch issue-156-build-describe-tags 2026-10-19 07:45:19 +02:00
clawbot removed the needs-review label 2026-10-19 07:45:19 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/netwatch#182