Repository navigation
Conversation
zanieb
force-pushed
the
claude/add-tests-issue-12276-T9DTw
branch
from
March 19, 2026 13:48
892f0f2 to
92b8d9e
Compare
zanieb
force-pushed
the
claude/add-tests-issue-12276-T9DTw
branch
from
March 19, 2026 22:01
92b8d9e to
cc7bcbc
Compare
themavik
reviewed
Mar 21, 2026
themavik
left a comment
Contributor
There was a problem hiding this comment.
The specifier check runs over requirements and constraints but skips overrides and build_constraints. If a project has tool.uv.override-dependencies = ["foo==1.0.0"] and the lock has foo at 2.0.0, the new check still passes because it only sees the base requirement specifier, not the override.
Might be intentional since manifest equality already catches changed override sets — but a tampered lock with matching manifest and wrong pinned version would still slip through for overrides specifically.
zanieb
force-pushed
the
claude/add-tests-issue-12276-T9DTw
branch
from
March 24, 2026 13:12
cc7bcbc to
caa49aa
Compare
zaniebot
force-pushed
the
claude/add-tests-issue-12276-T9DTw
branch
from
June 2, 2026 19:31
caa49aa to
6b1f25c
Compare
uv test inventory changesThis PR changes the tests when compared with the latest
|
…l-sh#12276) Add three integration tests that demonstrate the bug where `uv lock --check` fails to detect when locked versions in `uv.lock` violate constraints specified in `pyproject.toml`. Tests cover `!=`, `<`, and `constraint-dependencies` specifiers. https://claude.ai/code/session_01NvteAXNxPeHJ6GxKUQNe4f
…2276) Add checks in `Lock::satisfies()` that verify locked package versions actually satisfy the version specifiers from requirements, constraints, and `requires-dist` metadata. Previously, validation only confirmed that the specifier metadata matched between `pyproject.toml` and `uv.lock`, without verifying the locked versions satisfied those specifiers. Update test snapshots to reflect that `uv lock --check` now correctly detects constraint violations. https://claude.ai/code/session_01NvteAXNxPeHJ6GxKUQNe4f
zaniebot
force-pushed
the
claude/add-tests-issue-12276-T9DTw
branch
from
June 2, 2026 21:39
6b1f25c to
5556e97
Compare
This was referenced Jul 15, 2026
This was referenced Jul 16, 2026
astral-automations-bot Bot
pushed a commit
to astral-sh/uv-dev
that referenced
this pull request
Nov 24, 2026
This PR adds more lock file validation. Specifically, it tries to ensure that requirements in the lock file are consistent with package versions in the lock file. A basic version of this is somewhat easy, but things get more complicated when we need to account for overrides and constraints. Closes astral-sh#12276, Closes astral-sh#18566, Ref astral-sh#21484, Closes astral-sh#23073, Closes astral-sh#23143
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.