mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Ignore empty VIRTUAL_ENV
variables (#536)
I'm not sure how my interpreter gets into this state, but it's certainly wrong to respect these.
This commit is contained in:
parent
3b55d0b295
commit
fc20d01593
3 changed files with 12 additions and 20 deletions
|
@ -31,10 +31,10 @@ pub(crate) fn clean(cache: &Cache, mut printer: Printer) -> Result<ExitStatus> {
|
|||
{
|
||||
if entry.file_type()?.is_dir() {
|
||||
fs::remove_dir_all(entry.path())
|
||||
.with_context(|| format!("Failed to clear cache at {}", cache.root().display()))?;
|
||||
.with_context(|| format!("Failed to clear cache at: {}", cache.root().display()))?;
|
||||
} else {
|
||||
fs::remove_file(entry.path())
|
||||
.with_context(|| format!("Failed to clear cache at {}", cache.root().display()))?;
|
||||
.with_context(|| format!("Failed to clear cache at: {}", cache.root().display()))?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue