-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Remove extras from user-supplied constraints in backtracking resolver #1808
Remove extras from user-supplied constraints in backtracking resolver #1808
Conversation
Thanks for putting up this PR! Given the suggestion came from Deivid and copies his patch, you might want to include him as an additional author on the commit? Is it possible to include a test to ensure no future regression? |
Co-Authored-By: David Rodríguez <deivid.rodriguez@riseup.net>
92a871a
to
cdeaed4
Compare
Thanks for the suggestion! I amended the commit and force-pushed the update.
Unfortunately, there's only one unit test that uses the backtracking resolver fixture, and it's not fully fleshed out with the required |
Yeah, I actually noticed that by removing a few related lines and seeing that no tests would fail. Hopefully we can get some guidance on how to proceed, maybe get the fix introduced for now based on our realworld testing until unit tests can be improved. |
…mdixon/pip-tools into thomdixon/strip-extras-from-upgrades
Just an update: I added an integration test for this case in order to prevent regression. Without this PR the test fails and with the PR the test passes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This change ensures extras are removed from user-supplied constraints in the backtracking resolver, fixing #1806 and dependabot/dependabot-core#6550. Credit goes to @deivid-rodriguez for the suggestion.
Contributor checklist
Maintainer checklist
backwards incompatible
,feature
,enhancement
,deprecation
,bug
,dependency
,docs
orskip-changelog
as they determine changelog listing.