-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
Environment
- pip version: master
- Python version: any
- OS: any
Description
Pip wheel cache ignores subdirectory
URL fragment. This can result in the wrong wheel being downloaded or installed.
Expected behavior
URLs with different subdirectory
fragments must not result in the same cache entry.
How to Reproduce
- cd to an empty directory
pip --cache-dir=$PWD/cache wheel --no-deps "git+https://github.com/OCA/mis-builder@c647390ee34d4b051ac1ae8094ebbf7fd222b08b#egg=odoo12-addon-mis_builder&subdirectory=setup/mis_builder"
- verify that
odoo12_addon_mis_builder-12.0.3.5.0.99.dev1-py3-none-any.whl
is created - same command with a different
subdirectory
andegg
fragments:pip --cache-dir=$PWD/cache wheel --no-deps "git+https://github.com/OCA/mis-builder@c647390ee34d4b051ac1ae8094ebbf7fd222b08b#egg=odoo12-addon-mis_builder_budget&subdirectory=setup/mis_builder_budget"
- a new wheel should be created, but is not, due to the cache not taking into account the
subdirectory
fragment (nor the package name since it assumes no two URLs can point to the same package)
Metadata
Metadata
Assignees
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior