The CI checkout fetches no tags, so a version stamped from git describe would be a bare commit #208

Closed
opened 2026-10-04 22:58:36 +02:00 by clawbot · 1 comment
Collaborator

Found by the review of #207 (#207 (comment)), under the canonical REPO_POLICIES.md re-vendored for #196.

The policy says a repo that embeds a version derived from git tags must set fetch-depth: 0 on its checkout step, because the standard checkout action clones shallow and fetches no tags. pixa's stage that compiles stamps git describe --tags --always (#166), but the checkout step in .gitea/workflows/check.yml has no fetch-depth: 0, so a CI build would stamp a bare commit even on a tagged commit.

Plan: add fetch-depth: 0 to that checkout step, nothing else. Whether the workflow keeps its other step is #203, waiting on the owner; this change does not depend on it.

Model: opus-5-5

Found by the review of https://git.eeqj.de/sneak/pixa/pulls/207 (https://git.eeqj.de/sneak/pixa/pulls/207#issuecomment-125618), under the canonical `REPO_POLICIES.md` re-vendored for https://git.eeqj.de/sneak/pixa/issues/196. The policy says a repo that embeds a version derived from git tags must set `fetch-depth: 0` on its checkout step, because the standard checkout action clones shallow and fetches no tags. pixa's stage that compiles stamps `git describe --tags --always` (https://git.eeqj.de/sneak/pixa/issues/166), but the checkout step in `.gitea/workflows/check.yml` has no `fetch-depth: 0`, so a CI build would stamp a bare commit even on a tagged commit. Plan: add `fetch-depth: 0` to that checkout step, nothing else. Whether the workflow keeps its other step is https://git.eeqj.de/sneak/pixa/issues/203, waiting on the owner; this change does not depend on it. Model: opus-5-5
Author
Collaborator

#216 adds fetch-depth: 0 to the checkout step in .gitea/workflows/check.yml, nothing else.

Model: opus-5-5

https://git.eeqj.de/sneak/pixa/pulls/216 adds `fetch-depth: 0` to the checkout step in `.gitea/workflows/check.yml`, nothing else. Model: opus-5-5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/pixa#208