mirror of
https://github.com/rust-lang/cargo
synced 2024-08-25 10:35:53 +00:00
Update tests to display dep-req info for dep-chain
This commit is contained in:
parent
70a3ccb885
commit
0afd40b4de
|
@ -1498,7 +1498,7 @@ fn cyclic_good_error_message() {
|
|||
assert_eq!("\
|
||||
cyclic package dependency: package `A v0.0.0 (registry `https://example.com/`)` depends on itself. Cycle:
|
||||
package `A v0.0.0 (registry `https://example.com/`)`
|
||||
... which is depended on by `C v0.0.0 (registry `https://example.com/`)`
|
||||
... which is depended on by `A v0.0.0 (registry `https://example.com/`)`\
|
||||
... which satisfies dependency `A = \"*\"` of package `C v0.0.0 (registry `https://example.com/`)`
|
||||
... which satisfies dependency `C = \"*\"` of package `A v0.0.0 (registry `https://example.com/`)`\
|
||||
", error.to_string());
|
||||
}
|
||||
|
|
|
@ -1096,14 +1096,14 @@ fn incompatible_dependencies() {
|
|||
"\
|
||||
error: failed to select a version for `bad`.
|
||||
... required by package `qux v0.1.0`
|
||||
... which is depended on by `foo v0.0.1 ([..])`
|
||||
... which satisfies dependency `qux = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
|
||||
versions that meet the requirements `>=1.0.1` are: 1.0.2, 1.0.1
|
||||
|
||||
all possible versions conflict with previously selected packages.
|
||||
|
||||
previously selected package `bad v1.0.0`
|
||||
... which is depended on by `baz v0.1.0`
|
||||
... which is depended on by `foo v0.0.1 ([..])`
|
||||
... which satisfies dependency `bad = \"=1.0.0\"` of package `baz v0.1.0`
|
||||
... which satisfies dependency `baz = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
|
||||
|
||||
failed to select a version for `bad` which could resolve this conflict",
|
||||
)
|
||||
|
@ -1147,12 +1147,12 @@ versions that meet the requirements `>=1.0.1, <=2.0.0` are: 2.0.0, 1.0.1
|
|||
all possible versions conflict with previously selected packages.
|
||||
|
||||
previously selected package `bad v2.0.1`
|
||||
... which is depended on by `baz v0.1.0`
|
||||
... which is depended on by `foo v0.0.1 ([..])`
|
||||
... which satisfies dependency `bad = \">=2.0.1\"` of package `baz v0.1.0`
|
||||
... which satisfies dependency `baz = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
|
||||
|
||||
previously selected package `bad v1.0.0`
|
||||
... which is depended on by `bar v0.1.0`
|
||||
... which is depended on by `foo v0.0.1 ([..])`
|
||||
... which satisfies dependency `bad = \"=1.0.0\"` of package `bar v0.1.0`
|
||||
... which satisfies dependency `bar = \"^0.1.0\"` of package `foo v0.0.1 ([..])`
|
||||
|
||||
failed to select a version for `bad` which could resolve this conflict",
|
||||
)
|
||||
|
@ -1662,7 +1662,7 @@ fn self_dependency() {
|
|||
"\
|
||||
[ERROR] cyclic package dependency: package `test v0.0.0 ([CWD])` depends on itself. Cycle:
|
||||
package `test v0.0.0 ([CWD])`
|
||||
... which is depended on by `test v0.0.0 ([..])`",
|
||||
... which satisfies path dependency `test` of package `test v0.0.0 ([..])`",
|
||||
)
|
||||
.run();
|
||||
}
|
||||
|
@ -2808,8 +2808,8 @@ fn cyclic_deps_rejected() {
|
|||
.with_stderr(
|
||||
"[ERROR] cyclic package dependency: package `a v0.0.1 ([CWD]/a)` depends on itself. Cycle:
|
||||
package `a v0.0.1 ([CWD]/a)`
|
||||
... which is depended on by `foo v0.0.1 ([CWD])`
|
||||
... which is depended on by `a v0.0.1 ([..])`",
|
||||
... which satisfies path dependency `a` of package `foo v0.0.1 ([CWD])`
|
||||
... which satisfies path dependency `foo` of package `a v0.0.1 ([..])`",
|
||||
).run();
|
||||
}
|
||||
|
||||
|
|
|
@ -1064,7 +1064,7 @@ fn links_duplicates_deep_dependency() {
|
|||
.with_stderr("\
|
||||
error: failed to select a version for `a-sys`.
|
||||
... required by package `a v0.5.0 ([..])`
|
||||
... which is depended on by `foo v0.5.0 ([..])`
|
||||
... which satisfies path dependency `a` of package `foo v0.5.0 ([..])`
|
||||
versions that meet the requirements `*` are: 0.5.0
|
||||
|
||||
the package `a-sys` links to the native library `a`, but it conflicts with a previous package which links to `a` as well:
|
||||
|
|
|
@ -1618,10 +1618,10 @@ fn cycle() {
|
|||
.with_stderr(
|
||||
"\
|
||||
[UPDATING] [..]
|
||||
error: cyclic package dependency: [..]
|
||||
[ERROR] cyclic package dependency: [..]
|
||||
package `[..]`
|
||||
... which is depended on by `[..]`
|
||||
... which is depended on by `[..]`
|
||||
... which satisfies dependency `[..]` of package `[..]`
|
||||
... which satisfies dependency `[..]` of package `[..]`
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
|
|
@ -1046,8 +1046,8 @@ fn deep_path_error() {
|
|||
.with_stderr(
|
||||
"\
|
||||
[ERROR] failed to get `c` as a dependency of package `b v0.1.0 [..]`
|
||||
... which is depended on by `a v0.1.0 [..]`
|
||||
... which is depended on by `foo v0.1.0 [..]`
|
||||
... which satisfies path dependency `b` of package `a v0.1.0 [..]`
|
||||
... which satisfies path dependency `a` of package `foo v0.1.0 [..]`
|
||||
|
||||
Caused by:
|
||||
failed to load source for dependency `c`
|
||||
|
|
|
@ -547,7 +547,7 @@ error: failed to select a version for the requirement `baz = \"=0.0.2\"`
|
|||
candidate versions found which didn't match: 0.0.1
|
||||
location searched: `[..]` index (which is replacing registry `[..]`)
|
||||
required by package `bar v0.0.1`
|
||||
... which is depended on by `foo [..]`
|
||||
... which satisfies dependency `bar = \"*\"` of package `foo [..]`
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
|
Loading…
Reference in a new issue