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:
@@ -2,9 +2,10 @@
|
||||
// `dist/package.json`, which is what `quak --version` reports from a build.
|
||||
// A `docker build .` of a clone is given no `VERSION` build arg, so the
|
||||
// version has to come from the `.git` in its context: the tag on a tagged
|
||||
// commit, otherwise the short commit. A checkout with `.git` that still yields
|
||||
// no usable version must fail the build, not ship a version nobody can trace
|
||||
// back to its commit.
|
||||
// commit; the tag, the commits since it and the short commit on a later commit;
|
||||
// the short commit when no tag is reachable. A checkout with `.git` that still
|
||||
// yields no usable version must fail the build, not ship a version nobody can
|
||||
// trace back to its commit.
|
||||
//
|
||||
// Each test copies the script into a fresh directory, which the script then
|
||||
// treats as the checkout, and executes it there.
|
||||
|
||||
Reference in New Issue
Block a user