Never create bin links on `uv python upgrade` if they don't already exist (#15192)

Fixes #15178
This commit is contained in:
John Mumm 2025-08-11 22:36:03 +02:00 committed by GitHub
parent 193ab23e17
commit 76b4ae40c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -764,6 +764,9 @@ fn create_bin_links(
for target in targets {
let target = bin.join(target);
if upgrade && !target.try_exists().unwrap_or_default() {
continue;
}
let executable = if upgradeable {
if let Some(minor_version_link) =
PythonMinorVersionLink::from_installation(installation, preview)