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 and egg 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)
Environment
Description
Pip wheel cache ignores
subdirectoryURL fragment. This can result in the wrong wheel being downloaded or installed.Expected behavior
URLs with different
subdirectoryfragments must not result in the same cache entry.How to Reproduce
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"odoo12_addon_mis_builder-12.0.3.5.0.99.dev1-py3-none-any.whlis createdsubdirectoryandeggfragments: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"subdirectoryfragment (nor the package name since it assumes no two URLs can point to the same package)