Skip to content

Commit 0afd40b

Browse files
committed
Update tests to display dep-req info for dep-chain
1 parent 70a3ccb commit 0afd40b

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

crates/resolver-tests/tests/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ fn cyclic_good_error_message() {
14981498
assert_eq!("\
14991499
cyclic package dependency: package `A v0.0.0 (registry `https://example.com/`)` depends on itself. Cycle:
15001500
package `A v0.0.0 (registry `https://example.com/`)`
1501-
... which is depended on by `C v0.0.0 (registry `https://example.com/`)`
1502-
... which is depended on by `A v0.0.0 (registry `https://example.com/`)`\
1501+
... which satisfies dependency `A = \"*\"` of package `C v0.0.0 (registry `https://example.com/`)`
1502+
... which satisfies dependency `C = \"*\"` of package `A v0.0.0 (registry `https://example.com/`)`\
15031503
", error.to_string());
15041504
}

tests/testsuite/build.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,14 +1096,14 @@ fn incompatible_dependencies() {
10961096
"\
10971097
error: failed to select a version for `bad`.
10981098
... required by package `qux v0.1.0`
1099-
... which is depended on by `foo v0.0.1 ([..])`
1099+
... which satisfies dependency `qux = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
11001100
versions that meet the requirements `>=1.0.1` are: 1.0.2, 1.0.1
11011101
11021102
all possible versions conflict with previously selected packages.
11031103
11041104
previously selected package `bad v1.0.0`
1105-
... which is depended on by `baz v0.1.0`
1106-
... which is depended on by `foo v0.0.1 ([..])`
1105+
... which satisfies dependency `bad = \"=1.0.0\"` of package `baz v0.1.0`
1106+
... which satisfies dependency `baz = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
11071107
11081108
failed to select a version for `bad` which could resolve this conflict",
11091109
)
@@ -1147,12 +1147,12 @@ versions that meet the requirements `>=1.0.1, <=2.0.0` are: 2.0.0, 1.0.1
11471147
all possible versions conflict with previously selected packages.
11481148
11491149
previously selected package `bad v2.0.1`
1150-
... which is depended on by `baz v0.1.0`
1151-
... which is depended on by `foo v0.0.1 ([..])`
1150+
... which satisfies dependency `bad = \">=2.0.1\"` of package `baz v0.1.0`
1151+
... which satisfies dependency `baz = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
11521152
11531153
previously selected package `bad v1.0.0`
1154-
... which is depended on by `bar v0.1.0`
1155-
... which is depended on by `foo v0.0.1 ([..])`
1154+
... which satisfies dependency `bad = \"=1.0.0\"` of package `bar v0.1.0`
1155+
... which satisfies dependency `bar = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
11561156
11571157
failed to select a version for `bad` which could resolve this conflict",
11581158
)
@@ -1662,7 +1662,7 @@ fn self_dependency() {
16621662
"\
16631663
[ERROR] cyclic package dependency: package `test v0.0.0 ([CWD])` depends on itself. Cycle:
16641664
package `test v0.0.0 ([CWD])`
1665-
... which is depended on by `test v0.0.0 ([..])`",
1665+
... which satisfies path dependency `test` of package `test v0.0.0 ([..])`",
16661666
)
16671667
.run();
16681668
}
@@ -2808,8 +2808,8 @@ fn cyclic_deps_rejected() {
28082808
.with_stderr(
28092809
"[ERROR] cyclic package dependency: package `a v0.0.1 ([CWD]/a)` depends on itself. Cycle:
28102810
package `a v0.0.1 ([CWD]/a)`
2811-
... which is depended on by `foo v0.0.1 ([CWD])`
2812-
... which is depended on by `a v0.0.1 ([..])`",
2811+
... which satisfies path dependency `a` of package `foo v0.0.1 ([CWD])`
2812+
... which satisfies path dependency `foo` of package `a v0.0.1 ([..])`",
28132813
).run();
28142814
}
28152815

tests/testsuite/build_script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ fn links_duplicates_deep_dependency() {
10641064
.with_stderr("\
10651065
error: failed to select a version for `a-sys`.
10661066
... required by package `a v0.5.0 ([..])`
1067-
... which is depended on by `foo v0.5.0 ([..])`
1067+
... which satisfies path dependency `a` of package `foo v0.5.0 ([..])`
10681068
versions that meet the requirements `*` are: 0.5.0
10691069
10701070
the package `a-sys` links to the native library `a`, but it conflicts with a previous package which links to `a` as well:

tests/testsuite/patch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,10 +1618,10 @@ fn cycle() {
16181618
.with_stderr(
16191619
"\
16201620
[UPDATING] [..]
1621-
error: cyclic package dependency: [..]
1621+
[ERROR] cyclic package dependency: [..]
16221622
package `[..]`
1623-
... which is depended on by `[..]`
1624-
... which is depended on by `[..]`
1623+
... which satisfies dependency `[..]` of package `[..]`
1624+
... which satisfies dependency `[..]` of package `[..]`
16251625
",
16261626
)
16271627
.run();

tests/testsuite/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,8 @@ fn deep_path_error() {
10461046
.with_stderr(
10471047
"\
10481048
[ERROR] failed to get `c` as a dependency of package `b v0.1.0 [..]`
1049-
... which is depended on by `a v0.1.0 [..]`
1050-
... which is depended on by `foo v0.1.0 [..]`
1049+
... which satisfies path dependency `b` of package `a v0.1.0 [..]`
1050+
... which satisfies path dependency `a` of package `foo v0.1.0 [..]`
10511051
10521052
Caused by:
10531053
failed to load source for dependency `c`

tests/testsuite/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ error: failed to select a version for the requirement `baz = \"=0.0.2\"`
547547
candidate versions found which didn't match: 0.0.1
548548
location searched: `[..]` index (which is replacing registry `[..]`)
549549
required by package `bar v0.0.1`
550-
... which is depended on by `foo [..]`
550+
... which satisfies dependency `bar = \"*\"` of package `foo [..]`
551551
",
552552
)
553553
.run();

0 commit comments

Comments
 (0)