Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear pip's candidates cache in allow_all_wheels
Fixes #1532 This issue only shows up for PyPI servers where we can't get hashes from a JSON API. When pip-compile runs, `find_all_candidates` first gets called outside of an `allow_all_wheels()` context, and pip caches the list of candidates. Later, while pip-compile computes hashes from the files, the effects of `allow_all_wheels()` are not seen because the cached candidates are returned. In order for the test to pass I've added a blank sdist for small-fake-multi-arch so that there's always at least one candidate when pypi_repository.get_hashes is called outside of allow_all_wheels
- Loading branch information