Name all three forms git describe gives for the version
check / check (push) Failing after 52s

README, script/version and the version test's header said git describe
gives the tag or the short commit. On a commit after a tag it gives the
tag, the commits since it and the short commit; each place now names
that case too.

Model: opus-5-5
This commit is contained in:
2026-10-02 03:52:37 +00:00
parent 58d0d478a0
commit 29b6a34d13
3 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -189,7 +189,8 @@ places, and reads `.gitignore` as its default ignore file — which is why
- the `VERSION` environment variable, or the `Dockerfile`'s `VERSION` build arg
(`--build-arg VERSION=...`), when one is given and not empty;
- otherwise, in a checkout with `.git`, `git describe --tags --always`: the tag
on a tagged commit, otherwise the short commit;
on a tagged commit; the tag, the commits since it and the short commit on a
later commit (`v1.2.3-4-gabc1234`); the short commit when no tag is reachable;
- otherwise, as in a source tarball, the version `package.json` declares.
The build fails if the checkout has `.git` and the version still comes out