diff --git a/crates/uv-distribution/src/source/mod.rs b/crates/uv-distribution/src/source/mod.rs index bb49fb2e9..9bcf1a7d2 100644 --- a/crates/uv-distribution/src/source/mod.rs +++ b/crates/uv-distribution/src/source/mod.rs @@ -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)), };