-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid respecting preferences from other indexes (#10782)
## Summary The fix I shipped in #10690 regressed an important case. If we solve a PyPI branch before a PyTorch branch, we'll end up respecting the preference, and choosing `2.2.2` instead of `2.2.2+cpu`. This PR goes back to ignoring preferences that don't map to the current index. However, to solve #10383, we need to special-case `requirements.txt`, which can't provide explicit indexes. So, if a preference comes from `requirements.txt`, we still respect it. Closes #10772.
- Loading branch information
1 parent
9e6e1e5
commit 8b6383e
Showing
3 changed files
with
551 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.