We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.
1 parent 459269f commit 0457500Copy full SHA for 0457500
crates/uv-python/src/managed.rs
@@ -211,10 +211,18 @@ impl ManagedPythonInstallations {
211
})
212
}
213
};
214
- let cache = self.scratch();
+ let scratch = self.scratch();
215
Ok(dirs
216
.into_iter()
217
- .filter(|path| *path != cache)
+ // Ignore the scratch directory
218
+ .filter(|path| *path != scratch)
219
+ // Ignore any `.` prefixed directories
220
+ .filter(|path| {
221
+ path.file_name()
222
+ .and_then(OsStr::to_str)
223
+ .map(|name| name.starts_with('.'))
224
+ .unwrap_or(true)
225
+ })
226
.filter_map(|path| {
227
ManagedPythonInstallation::new(path)
228
.inspect_err(|err| {
0 commit comments