Skip to content

pip cache doesn't get invalidated #2661

@gfrankliu

Description

@gfrankliu

I am encountering similar issue as #2468 when upgrading rules_python from 0.27.1 (WORKSPACE) to 0.38.0 (MODULE.bazel).

I tried the patch #2526 without any luck. It turned out the old wheels are cached in pip (pip cache list). With rules_python 0.38.0, the wheels still come from pip cache which has

Wheel-Version: 1.0
Generator: bdist_wheel (0.41.2)
Root-Is-Purelib: true
Tag: py3-none-any

The only fix is to clear pip cache (pip cache purge), then I can see the new wheel files with

Wheel-Version: 1.0
Generator: bdist_wheel (0.43.0)
Root-Is-Purelib: true
Tag: py3-none-any

I was hoping #2526 would fix this, so that we don't have to ask everyone to run pip cache purge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions