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

Disable caching for range requests #8716

merged 1 commit into from Aug 5, 2020


Copy link

@McSinyx McSinyx commented Aug 5, 2020

This fixes corrupted shallow wheels when caching is involved (resolves GH-8701) until we know better on why range responses are not cached correctly. It would be really nice if this can land as part of the next bugfix release (20.2.2).

@sbidoul sbidoul added this to the 20.2.2 milestone Aug 5, 2020
sbidoul approved these changes Aug 5, 2020
@chrahunt chrahunt merged commit f51bd8f into pypa:master Aug 5, 2020
3 checks passed
Copy link

pradyunsg commented Aug 7, 2020

@McSinyx Could you file a PR adding a NEWS fragment for this PR and the corresponding issue -- basically "8701.bugfix" and "8716.bugfix" files containing the exact same text as support for this PR.

I think every bugfix that we're including in a bugfix release should be mentioned in the changelog. :)

Copy link
Contributor Author

McSinyx commented Aug 7, 2020

I'm sorry for late response (I saw your comment just a few minutes after it was posted but decided to continue messing with GitHub Action instead 😅). TIL about the duplicate news entry handling, which is nice but I wonder why we need it for this case.

@McSinyx McSinyx deleted the fix-range-request-cache branch Aug 7, 2020
pradyunsg pushed a commit to pradyunsg/pip that referenced this pull request Aug 11, 2020
bors bot added a commit to duckinator/emanate that referenced this pull request Aug 11, 2020
162: Update pip to 20.2.2 r=duckinator a=pyup-bot

This PR updates [pip]( from **20.2.1** to **20.2.2**.

   ### 20.2.2

Bug Fixes

- Only attempt to use the keyring once and if it fails, don&#39;t try again.
  This prevents spamming users with several keyring unlock prompts when they
  cannot unlock or don&#39;t want to do so. (`8090 &lt;;`_)
- Fix regression that distributions in system site-packages are not correctly
  found when a virtual environment is configured with ``system-site-packages``
  on. (`8695 &lt;;`_)
- Disable caching for range requests, which causes corrupted wheels
  when pip tries to obtain metadata using the feature ``fast-deps``. (`8701 &lt;;`_, `8716 &lt;;`_)
- Always use UTF-8 to read ``pyvenv.cfg`` to match the built-in ``venv``. (`8717 &lt;;`_)
- 2020 Resolver: Correctly handle marker evaluation in constraints and exclude
  them if their markers do not match the current environment. (`8724 &lt;;`_)


  - PyPI:
  - Changelog:
  - Homepage:

Co-authored-by: pyup-bot <>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

Successfully merging this pull request may close these issues.

[2020-resolver & fast-deps] BadZipFile when force-reinstalling packages
4 participants