Skip to content

Allow editable installs to satisfy direct-URL dependencies#13888

Open
pradyunsg wants to merge 1 commit intopypa:mainfrom
pradyunsg:resolver-editable-links
Open

Allow editable installs to satisfy direct-URL dependencies#13888
pradyunsg wants to merge 1 commit intopypa:mainfrom
pradyunsg:resolver-editable-links

Conversation

@pradyunsg
Copy link
Copy Markdown
Member

Fixes #10216
Fixes #12533

When a transitive dependency referenced a package by direct URL and the
same package was also requested as editable, the resolver saw two
distinct candidate types for the same link and raised
`ResolutionImpossible`.

An editable install subsumes a non-editable direct URL request to the
same location, so `_make_base_candidate_from_link` now returns the
cached `EditableCandidate` in that case.
Comment on lines +223 to 224
elif link in self._editable_candidate_cache:
return self._editable_candidate_cache[link]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't come up with this -- I tried using Claude Code to resolve this one and it ended up coming up with this... and, like I don't see anything wrong with this particular change logically and it's too nice and small to not consider. 😅

@pradyunsg pradyunsg marked this pull request as ready for review April 6, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant