-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer local variants in preference selection (#11546)
## Summary This PR fixes a subtle issue arising from our propagation of preferences. When we resolve a fork, we take the solution from that fork and mark all the chosen versions as "preferred" as we move on to the next fork. In this specific case, the resolver ended up solving a macOS-specific fork first, which led us to pick `2.6.0` rather than `2.6.0+cpu`. This in itself is correct; but when we moved on to the next fork, we preferred `2.6.0` over `2.6.0+cpu`, despite the fact that `2.6.0` _only_ includes macOS wheel, and that branch was focused on Linux. Now, in preferences, we prefer local variants (if they exist). If the local variant ends up not working, we'll presumedly backtrack to the base version anyway. Closes #11406.
- Loading branch information
1 parent
08ad56e
commit 47fb59f
Showing
4 changed files
with
448 additions
and
5 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.