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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user