Revert "Cache downloaded wheel when range requests aren't supported" (#6470)

## Summary

This reverts commit 7d92915f3d.

I thought this would be a net performance improvement, but we've now had
multiple reports that this made locking _extremely_ slow. I also tested
this today with a very large codebase against a registry that does not
support range requests, and the number of downloads was sort of wild to
watch. Reverting the reduced resolution time by over 50%.

Closes #6104.
This commit is contained in:
Charlie Marsh 2024-08-22 19:54:42 -04:00 committed by GitHub
parent 7502a963e1
commit c743705dfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 155 additions and 63 deletions

View file

@ -173,6 +173,10 @@ pub enum ErrorKind {
#[source] Box<pypi_types::MetadataError>,
),
/// The metadata file was not found in the wheel.
#[error("Metadata file `{0}` was not found in {1}")]
MetadataNotFound(WheelFilename, String),
/// An error that happened while making a request or in a reqwest middleware.
#[error(transparent)]
WrappedReqwestError(#[from] WrappedReqwestError),