-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix corner case in cached dependency resolution
Ref: #178 The error is as follows: 1. Two resolvables, one pinned, the other not. 2. First pex run with clean cache works. 3. Change the pinned version. 4. Second pex run fails with Unsatisfiable. The problem is that the non-pinned resolvable locates the cached dep and only returns it. Since that version doesn't match the pinned version, we fail. This fixes that behavior by returning both the cached version and all uncached pypi packages for unpinned resolvables. We change the pinned version to test the use case where you have a cached version of a dep and then you transitively pull in another requirement that either has a tighter bound or a pin on a version not found in the cache.
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 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