Repository navigation
Recognise uv >= 0.12.14 resolution errors - #16511
Open
wenceslas-sanchez wants to merge 5 commits into
Open
wenceslas-sanchez wants to merge 5 commits into
wenceslas-sanchez wants to merge 5 commits into
Conversation
Since 0.12.14, uv prints resolution failures as error:/cause: instead of ×/╰─▶, so the regexes in LockFileErrorHandler and PipCompileVersionResolver stopped matching and conflicts were no longer reported as UpdateNotPossible. Accept both forms, since older uv still prints ×.
5 tasks done
wenceslas-sanchez
force-pushed
the
uv-0-12-resolution-errors
branch
from
October 9, 2026 21:28
c77abf1 to
ca7421b
Compare
This branch has not been deployed
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.
What are you trying to accomplish?
Fixes #16510
Since uv 0.12.14, which Dependabot picked up in #16276 (0.12.7 → 0.12.15), uv reports resolution and build failures as
error:/cause:instead of×/╰─▶. The regexes inLockFileErrorHandlerandPipCompileVersionResolveronly matched the×form. So a conflict between two pinned packages came back as a genericDependencyFileNotResolvablecarrying uv's raw output, not asUpdateNotPossible, andLockFileResolver#resolvable?raised instead of returning false.This makes the regexes accept both prefixes, since uv 0.12.13 and earlier still print
×.Anything you want to highlight for special attention from reviewers?
In
PipCompileVersionResolverI also dropped the trailing:from the pattern, because uv >= 0.12.14 no longer prints one after "No solution found when resolving dependencies". The old×alternative still requires the leading space, as before. This also lets the old format's… for split (…):variant match, which it didn't before.I kept the existing
×-format specs and addederror:-format ones next to them, so both formats stay covered.How will you know you've accomplished your goal?
The
error:-format specs use uv 0.12.18 output (trimmed), for a pinned pair (opentelemetry-api==1.26.0withopentelemetry-sdk==1.25.0), a conflict without a pinned pair, and a failingsetup.pybuild. They fail onmainand pass with this change. The×-format pip-compile spec is a regression guard and passes on both. The existing uv specs still pass.Checklist