Skip to content

Wheel cache ignores subdirectory URL fragment #7333

Closed
@sbidoul

Description

@sbidoul

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

  1. cd to an empty directory
  2. 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"
  3. verify that odoo12_addon_mis_builder-12.0.3.5.0.99.dev1-py3-none-any.whl is created
  4. 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"
  5. 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

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions