mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Simplify version ranges reported for unavailable packages (#6155)
Now that these incompatibilities are collected into a single range (https://github.com/astral-sh/uv/pull/6154), we can simplify the range using the known available versions to reduce verbosity.
This commit is contained in:
parent
3a46e48f93
commit
e1a8beb64b
3 changed files with 9 additions and 43 deletions
|
@ -120,9 +120,10 @@ impl ReportFormatter<PubGrubPackage, Range<Version>, UnavailableReason>
|
|||
format!("{}{reason}", Padded::new("", &package, " "))
|
||||
}
|
||||
UnavailableReason::Version(reason) => {
|
||||
let set = self.simplify_set(set, package);
|
||||
format!(
|
||||
"{}{reason}",
|
||||
Padded::new("", &self.compatible_range(package, set), " ")
|
||||
Padded::new("", &self.compatible_range(package, &set), " ")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue