Skip to content
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

Use pip's http-v2 cache #794

Open
woodruffw opened this issue Jul 9, 2024 · 0 comments
Open

Use pip's http-v2 cache #794

woodruffw opened this issue Jul 9, 2024 · 0 comments
Labels
enhancement New feature or request refactoring Refactoring tasks.

Comments

@woodruffw
Copy link
Member

With pypa/pip#11143, pip uses $CACHE/http-v2 instead of $CACHE/http. This new directory uses a separated body format, rather than collecting the cached responses into a single serialized file each (both header and body).

As a result, pip-audit is currently only pulling from the older http cache, which will slowly go away in user installs over time. We should switch _cache.py to mimic and reuse the new http-v2 cache.

More context: here is the current SafeFileCache implementation within pip: https://github.com/pypa/pip/blob/34e70ba5964824ac8c52773c76c658923ee36194/src/pip/_internal/network/cache.py#L32

@woodruffw woodruffw added enhancement New feature or request refactoring Refactoring tasks. labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Refactoring tasks.
Projects
None yet
Development

No branches or pull requests

1 participant