Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix direct preference in PipProvider.get_preference #13244

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

notatallshaw
Copy link
Member

Fixes #12975
Also see #13164 for real world impact with a reproducible example that is fixed by this PR.

Most of the effort in this PR is extending the unit tests to include testing a requirement with an ExplicitRequirement, probably there was a simpler way to do this, I intend to keep extending and improving the unit tests in following PRs.

@notatallshaw notatallshaw added this to the 25.1 milestone Feb 25, 2025
@notatallshaw notatallshaw force-pushed the fix-direct-preference branch 2 times, most recently from 858f203 to b3bb515 Compare February 27, 2025 14:04
@notatallshaw
Copy link
Member Author

Merged main and simplified new test construction

@notatallshaw notatallshaw force-pushed the fix-direct-preference branch from 6332444 to 8284705 Compare March 6, 2025 15:31
@notatallshaw
Copy link
Member Author

Okay, I've significantly simplified the test construction for this fix, so I've fixed up and rebased the commits, making them easier to review and less likely to create merge conflicts with other updates to this part of the resolver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

direct preference in resolution doesn't work
2 participants