mirror of https://github.com/astral-sh/uv
Do not error when the Python bin directory is missing on `uv python uninstall` (#8725)
This commit is contained in:
parent
ad896c89d9
commit
b52f229862
|
|
@ -126,7 +126,9 @@ async fn do_uninstall(
|
|||
|
||||
// Collect files in a directory
|
||||
let executables = python_executable_dir()?
|
||||
.read_dir()?
|
||||
.read_dir()
|
||||
.into_iter()
|
||||
.flatten()
|
||||
.filter_map(|entry| match entry {
|
||||
Ok(entry) => Some(entry),
|
||||
Err(err) => {
|
||||
|
|
|
|||
|
|
@ -74,13 +74,14 @@ fn python_install() {
|
|||
"###);
|
||||
|
||||
uv_snapshot!(context.filters(), context.python_uninstall().arg("3.13"), @r###"
|
||||
success: false
|
||||
exit_code: 2
|
||||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Searching for Python versions matching: Python 3.13
|
||||
error: No such file or directory (os error 2)
|
||||
Uninstalled Python 3.13.0 in [TIME]
|
||||
- cpython-3.13.0-[PLATFORM]
|
||||
"###);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue