graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Release commits since 0.9.85 bump `pyproject.toml` but don't refresh `uv.lock` (`uv lock --check` fails on tags v0.9.85–v0.9.88)

Open sub4biz opened this issue 1 month ago • 2 comments

Summary

RELEASING.md step 3 says to run uv lock so uv.lock records the new version, and step 5 says to commit the version, changelog and lock together. Releases up to 0.9.84 did this; from 0.9.85 on, the release commits change pyproject.toml and CHANGELOG.md but leave uv.lock untouched.

Reproduction

On a clean checkout of each tag:

git worktree add --detach /tmp/chk vX.Y.Z && cd /tmp/chk && uv lock --check; echo $?
tag uv lock --check
v0.9.84 0
v0.9.85 1
v0.9.86 1
v0.9.87 1
v0.9.88 1

On v0.9.88 the graphifyy entry in uv.lock still reads version = "0.9.84". The last commits that touched uv.lock are the 0.9.81–0.9.84 release commits (622474b8, 5b74d7d7, 89db9350, effee34d).

Running uv lock on the clean v0.9.88 tag rewrites 108 lines of uv.lock (version bump plus a re-resolution of some dependency markers and extras entries).

Impact

Small. CI isn't affected, since .github/workflows/ci.yml uses uv sync --frozen / uv run --frozen. It does bite anyone who runs a plain uv sync on a checkout: uv notices the stale lock, rewrites it, and leaves the working tree dirty. In my case that blocked the next git rebase of a local branch until I reverted uv.lock by hand, on every release.

Suggested fix

Either of these would do, and they aren't exclusive:

  • Run uv lock as part of the release commit again, as RELEASING.md already describes.
  • Add uv lock --check to CI, so a release commit that forgets the lock fails instead of shipping a stale one.

sub4biz avatar Oct 13 '26 05:10 sub4biz

Thanks for opening this issue, @sub4biz. A maintainer will take a look soon.

If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

github-actions[bot] avatar Oct 13 '26 05:10 github-actions[bot]

The release lockfile mismatch is still present on clean upstream tag v0.9.109: pyproject.toml declares 0.9.109, while the editable graphifyy entry in uv.lock declares 0.9.106. On Windows, uv 0.12.0, uv lock --check exits with an error saying the lockfile needs to be updated.

sub4biz avatar Nov 14 '26 23:11 sub4biz