mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Avoid fatal error when searching for egg-info with missing directory (#7498)
## Summary Closes https://github.com/astral-sh/uv/issues/7485. ## Test Plan ``` $ cargo run cache clean $ cargo run venv $ cargo run pip install django-allauth==0.51.0 $ cargo run venv $ cargo run pip install django-allauth==0.51.0 ```
This commit is contained in:
parent
f942561158
commit
97ae811b86
1 changed files with 3 additions and 0 deletions
|
@ -1899,6 +1899,9 @@ async fn read_egg_info(
|
|||
let egg_info = match find_egg_info(directory.as_ref()) {
|
||||
Ok(Some(path)) => path,
|
||||
Ok(None) => return Err(Error::MissingEggInfo),
|
||||
Err(err) if err.kind() == std::io::ErrorKind::NotFound => {
|
||||
return Err(Error::MissingEggInfo)
|
||||
}
|
||||
Err(err) => return Err(Error::CacheRead(err)),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue