Skip to content

Improve unsat diagnostics by attributing transitive pins to constraints files#17993

Open
terror wants to merge 1 commit intoastral-sh:mainfrom
terror:error-message-constraints
Open

Improve unsat diagnostics by attributing transitive pins to constraints files#17993
terror wants to merge 1 commit intoastral-sh:mainfrom
terror:error-message-constraints

Conversation

@terror
Copy link
Copy Markdown
Contributor

@terror terror commented Feb 12, 2026

Resolves #17960

This diff improves resolver error diagnostics when a transitive dependency conflict is caused by a constraints file (e.g., via --constraint / UV_CONSTRAINTS). Previously, the unsatisfiable trace could make it look like an intermediate package was directly pinning a dependency, which is technically true in the derived graph but misleading about where that pin originated.

@zanieb
Copy link
Copy Markdown
Member

zanieb commented Feb 12, 2026

Cool!

I just delegated this to an agent briefly, but like... what do you think about transforming the tree instead? ac6739a

I think that is a more helpful error? though it's more likely to break in some weird way?

@zanieb zanieb closed this Feb 12, 2026
@zanieb zanieb reopened this Feb 12, 2026
@zanieb
Copy link
Copy Markdown
Member

zanieb commented Feb 12, 2026

(oops)

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 15, 2026

Merging this PR will not alter performance

✅ 5 untouched benchmarks


Comparing terror:error-message-constraints (7ceb4f2) with main (4ce3853)

Open in CodSpeed

@zanieb zanieb self-assigned this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading error message when using constraints file

2 participants