mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Fill Python requests with platform information during automatic fetches (#4810)
Closes https://github.com/astral-sh/uv/issues/4800 We do this during `install` — it's an important step to ensure the request has the platform information in it.
This commit is contained in:
parent
77b1bb77b5
commit
c0ca0b02b8
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ impl PythonInstallation {
|
||||||
// Perform a fetch aggressively if managed Python is preferred
|
// Perform a fetch aggressively if managed Python is preferred
|
||||||
if matches!(preference, PythonPreference::Managed) && python_fetch.is_automatic() {
|
if matches!(preference, PythonPreference::Managed) && python_fetch.is_automatic() {
|
||||||
if let Some(request) = PythonDownloadRequest::try_from_request(&request) {
|
if let Some(request) = PythonDownloadRequest::try_from_request(&request) {
|
||||||
return Self::fetch(request, client_builder, cache).await;
|
return Self::fetch(request.fill(), client_builder, cache).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ impl PythonInstallation {
|
||||||
{
|
{
|
||||||
if let Some(request) = PythonDownloadRequest::try_from_request(&request) {
|
if let Some(request) = PythonDownloadRequest::try_from_request(&request) {
|
||||||
debug!("Requested Python not found, checking for available download...");
|
debug!("Requested Python not found, checking for available download...");
|
||||||
Self::fetch(request, client_builder, cache).await
|
Self::fetch(request.fill(), client_builder, cache).await
|
||||||
} else {
|
} else {
|
||||||
err
|
err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue