Skip to content

Commit 593f20d

Browse files
committed
Respect UV_PYTHON_DOWNLOAD_MIRROR in uv python list
1 parent ce4a47a commit 593f20d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/uv-python/src/downloads.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ impl ManagedPythonDownload {
12961296

12971297
/// Return the [`Url`] to use when downloading the distribution. If a mirror is set via the
12981298
/// appropriate environment variable, use it instead.
1299-
fn download_url(
1299+
pub fn download_url(
13001300
&self,
13011301
python_install_mirror: Option<&str>,
13021302
pypy_install_mirror: Option<&str>,

crates/uv/src/commands/python/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub(crate) async fn list(
117117
output.insert((
118118
download.key().clone(),
119119
Kind::Download,
120-
Either::Right(download.url()),
120+
Either::Right(download.download_url()),
121121
));
122122
}
123123
}

0 commit comments

Comments
 (0)