-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wheel cache ignores subdirectory URL fragment #7333
Comments
The comment in
which to me indicates the intent was one project (e.g. directory with setup.py) to one cache dir. In keeping with the same model we would want to add the subdirectory fragment to the cache key. Adding a check for the wheel name would be good too as a sanity check. I think we can assert that the project name is not |
I made 1. and 2. in #7335 |
Environment
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
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.whl
is createdsubdirectory
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"
subdirectory
fragment (nor the package name since it assumes no two URLs can point to the same package)The text was updated successfully, but these errors were encountered: