Repository navigation
Commit 92a12ed
ci: the lockfile's copy of the version is checked too (#118)
The lint step's own comment says why the version is checked: declared in two
places, `pip show` and `import` disagree if they drift. There is a third
copy -- `uv.lock` carries an entry for this project -- and it drifted. 0.1.6
and 0.1.7 both shipped with a lockfile saying 0.1.5, because nothing
re-locked after the bump and nothing looked.
`uv lock` fixes the stale line. The guard is what stops the next one: the
step now parses uv.lock too and refuses a mismatch, naming `uv lock` as the
remedy. It also refuses anything other than exactly one entry for grapharc,
so a rename cannot make the check silently vacuous.
Milder than the other two copies -- it misreports the project to a reader of
the lockfile and to `uv sync --locked`, not to an installed import -- but it
is the same class of bug, and a version declared in N places drifts in N-1
of them.
Verified: the new check passes on this tree and is red against main's
lockfile (says 0.1.5, pyproject says 0.1.7), which is the drift it exists
to catch.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent cf984f7 commit 92a12ed
2 files changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| |||
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
58 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
59 | 82 | | |
60 | 83 | | |
61 | 84 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments