Release engineering and reproducibility. When I find a release whose tag and code disagree in a project I use, I report it with the commits that show it.
A read-only check that a release tag names the version its commit declares, and that a version name has not been reused for different code. Answers pass, mismatch, or "not decidable" (exit 2, never a pass).
- closure_drift 1.9.0: wheel and sdist built from the tag with pinned tools, rebuilt bit for bit outside CI, with provenance attestations, DOI 10.5281/zenodo.24242196
- GitHub Action
luizfnsilva/closure_drift@v1.9.0, and a GitLab CI/CD Catalog component - Gate on both platforms: the publish job runs on a correct release, and drift or an undecidable case stops it
- Tag/version mismatches and package registries: of 82 tags that name a version their commit does not declare, 23 had that version published (pre-registered, data public)
| project | what | status |
|---|---|---|
| rb-general: "Tags that name a version their commit does not declare" | mailing-list thread on tag/version mismatches and how distributions check them (Nix, Debian, Arch, Fedora, Gentoo, Guix, Homebrew); one of my claims corrected in the thread and acknowledged | ongoing |
| r1chardj0n3s/parse#284 | workflow: on a tag push, check that the tag matches parse.__version__, as the maintainer asked |
merged |
| r1chardj0n3s/parse#281 | tag 1.22.4 declares 1.22.3; the published 1.22.4 differs only in that line |
closed: check added (#284) |
| mangiucugna/json_repair#254 | tag v0.64.7 declares 0.64.6; its publish failed on PyPI |
closed by the maintainer, not wanted |
| ossf/wg-supply-chain-integrity#97 | feedback request: where a tag/declared-version consistency check belongs among supply-chain controls | open |
| Comfy-Org/ComfyUI#17616 | the v0.14.2 Windows portable package declares 0.14.1 (checked inside the published archive); v0.18.3 and v0.20.2 the same |
open |
| smallvec/smallvec#852 | tags v1.16.0 and v2.0.0-alpha.13 point before the version bump; crates.io records other commits |
closed: old tags kept, future releases tagged on the published commit |
| pytest-dev/pytest-timeout#217 | release workflow: check that the tag matches the version in setup.cfg (2.5.0 was tagged before the bump) |
open, in discussion |
| pypa/setuptools-scm#1569 | docs: two tags that give the same version | merged |
| pypa/setuptools-scm#1568 | v1.0 and 1.0 on different commits build the same version without a warning |
wontfix; docs note added (#1569, merged) |
| mrabarnett/mrab-regex#624 | CI: check that the tag matches the version before publishing | open |
| ofek/hatch-vcs#115 | docs: tag-pattern default linked to the current setuptools-scm docs |
open |
| tyki6/MyJWT#154 | tag 2.1.0 declares version 2.0.0 in pyproject.toml |
open |
| dfurtado/dataclass-csv#77 | tag 1.4.1 points to a commit that declares 1.4.0 |
open |
| fillipe-gsm/python-tsp#73 | tag v0.5.0 points to a commit that declares 0.4.2 |
open |
| strawberry-graphql/strawberry#4808 | discussion: a read-only tag/version check in the release workflow | open |
| strawberry-graphql/strawberry-django#993 | question: a read-only tag/version check in the release workflow | open |
| usecross/cross-web#22 | question: a read-only tag/version check in the release workflow | open |