Skip Python interpreters that cannot be queried with permission errors (#15685)

Closes https://github.com/astral-sh/uv/issues/15651
This commit is contained in:
Zanie Blue
2025-09-05 09:03:41 -05:00
committed by GitHub
parent 7dd035c555
commit e136a51f3d
2 changed files with 22 additions and 2 deletions
+7
View File
@@ -1013,6 +1013,13 @@ impl Error {
);
false
}
InterpreterError::PermissionDenied { path, err } => {
debug!(
"Skipping unexecutable interpreter at {} from {source}: {err}",
path.display()
);
false
}
InterpreterError::NotFound(path)
| InterpreterError::BrokenSymlink(BrokenSymlink { path, .. }) => {
// If the interpreter is from an active, valid virtual environment, we should