mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-30 15:27:53 +00:00
Use dependency package when simplifying dependency set (#747)
This manifested itself here: https://github.com/astral-sh/puffin/pull/745/files#r1439912440.
This commit is contained in:
parent
26f597a787
commit
94076d6000
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ impl ReportFormatter<PubGrubPackage, Range<PubGrubVersion>> for PubGrubReportFor
|
||||||
if package_set == &Range::full() && dependency_set == &Range::full() {
|
if package_set == &Range::full() && dependency_set == &Range::full() {
|
||||||
format!("{package} depends on {dependency}")
|
format!("{package} depends on {dependency}")
|
||||||
} else if package_set == &Range::full() {
|
} else if package_set == &Range::full() {
|
||||||
let dependency_set = self.simplify_set(dependency_set, package);
|
let dependency_set = self.simplify_set(dependency_set, dependency);
|
||||||
format!("{package} depends on {dependency}{dependency_set}")
|
format!("{package} depends on {dependency}{dependency_set}")
|
||||||
} else if dependency_set == &Range::full() {
|
} else if dependency_set == &Range::full() {
|
||||||
if matches!(package, PubGrubPackage::Root(_)) {
|
if matches!(package, PubGrubPackage::Root(_)) {
|
||||||
|
|
@ -79,7 +79,7 @@ impl ReportFormatter<PubGrubPackage, Range<PubGrubVersion>> for PubGrubReportFor
|
||||||
format!("{package}{package_set} depends on {dependency}")
|
format!("{package}{package_set} depends on {dependency}")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let dependency_set = self.simplify_set(dependency_set, package);
|
let dependency_set = self.simplify_set(dependency_set, dependency);
|
||||||
if matches!(package, PubGrubPackage::Root(_)) {
|
if matches!(package, PubGrubPackage::Root(_)) {
|
||||||
// Exclude the dummy version for root packages
|
// Exclude the dummy version for root packages
|
||||||
format!("{package} depends on {dependency}{dependency_set}")
|
format!("{package} depends on {dependency}{dependency_set}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue