mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-31 07:47:27 +00:00
Treat version mismatch errors as non-fatal in fast paths (#10860)
## Summary I noticed that we're only handling `Error::WheelMetadataNameMismatch` here; but `Error::WheelMetadataVersionMismatch` should also be treated as non-fatal.
This commit is contained in:
parent
028df07c19
commit
47a31fc61c
1 changed files with 8 additions and 20 deletions
|
@ -1527,12 +1527,9 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
|
|||
hashes: vec![],
|
||||
});
|
||||
}
|
||||
Err(Error::WheelMetadataNameMismatch { metadata, given }) => {
|
||||
debug!(
|
||||
"Ignoring `pyproject.toml` from GitHub for: {source} (metadata: {metadata}, given: {given})"
|
||||
);
|
||||
Err(err) => {
|
||||
debug!("Ignoring `pyproject.toml` from GitHub for {source}: {err}");
|
||||
}
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2371,12 +2368,9 @@ impl StaticMetadata {
|
|||
Ok(()) => {
|
||||
return Ok(Self::Some(metadata));
|
||||
}
|
||||
Err(Error::WheelMetadataNameMismatch { metadata, given }) => {
|
||||
debug!(
|
||||
"Ignoring `pyproject.toml` for: {source} (metadata: {metadata}, given: {given})"
|
||||
);
|
||||
Err(err) => {
|
||||
debug!("Ignoring `pyproject.toml` for {source}: {err}");
|
||||
}
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
}
|
||||
Err(
|
||||
|
@ -2419,12 +2413,9 @@ impl StaticMetadata {
|
|||
Ok(()) => {
|
||||
return Ok(Self::Some(metadata));
|
||||
}
|
||||
Err(Error::WheelMetadataNameMismatch { metadata, given }) => {
|
||||
debug!(
|
||||
"Ignoring `PKG-INFO` for: {source} (metadata: {metadata}, given: {given})"
|
||||
);
|
||||
Err(err) => {
|
||||
debug!("Ignoring `PKG-INFO` for {source}: {err}");
|
||||
}
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
}
|
||||
Err(
|
||||
|
@ -2451,12 +2442,9 @@ impl StaticMetadata {
|
|||
Ok(()) => {
|
||||
return Ok(Self::Some(metadata));
|
||||
}
|
||||
Err(Error::WheelMetadataNameMismatch { metadata, given }) => {
|
||||
debug!(
|
||||
"Ignoring `egg-info` for: {source} (metadata: {metadata}, given: {given})"
|
||||
);
|
||||
Err(err) => {
|
||||
debug!("Ignoring `egg-info` for {source}: {err}");
|
||||
}
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
}
|
||||
Err(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue