-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uv-resolver: conditionally include the base package dependency
This _partially_ unwinds the optimization in #9540 by adding back the base package dependency as a sibling to the extra package dependency in some cases. Specifically, this occurs when _any_ of the extras are declared as conflicting. This is believed to be necessary (until another method is found) to handle the forking logic based on conflicts. Namely, the forking logic depends on the base and extra packages being sibling dependencies. If only the extra is present, then it won't be included in the fork that excludes all conflicting extras. And that means the base package won't either, even though it should be included in that fork in some cases. If the base package dependency is deferred, then it will never be reached. This also adds another test and updates the snapshots that would have caught the regression in #9540 if the conflict tests had been enabled.
- Loading branch information
1 parent
d0c074c
commit d59888f
Showing
3 changed files
with
92 additions
and
8 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
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