You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct URL wheels don't fall back on streaming extraction failures like registry wheels do #18620
In distribution_database.rs, get_wheel handles streaming failures differently depending on the source.
For BuiltDist::Registry (line ~240), the match catches Error::Extract and falls back to downloading the full wheel when streaming fails or is unsupported:
Err(Error::Extract(name, err)) => {if err.is_http_streaming_unsupported(){// fall back to download_wheel}elseif err.is_http_streaming_failed(){// fall back to download_wheel}else{returnErr(Error::Extract(name, err));}// ...download_wheel...}
For BuiltDist::DirectUrl (line ~317), the match only catches Error::Client with is_http_streaming_unsupported():
Err(Error::Client(err))if err.is_http_streaming_unsupported() => {// fall back to download_wheel}
So if streaming extraction fails (not just unsupported) for a direct URL wheel, uv errors out instead of falling back to a full download. The registry path recovers from both cases.
Activity
Fallback to direct download when direct URL streaming is unsupported (a…