Skip to content

Commit 6ae2921

Browse files
committed
Update cargo add test
Signed-off-by: hi-rustin <[email protected]>
1 parent 6137d25 commit 6ae2921

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

tests/testsuite/cargo_add/git_inferred_name_multiple/mod.rs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,41 @@ fn git_inferred_name_multiple() {
2323
&cargo_test_support::basic_manifest("my-package2", "0.3.0+my-package2"),
2424
)
2525
.file("p2/src/lib.rs", "")
26+
.file(
27+
"p3/Cargo.toml",
28+
&cargo_test_support::basic_manifest("my-package3", "0.3.0+my-package2"),
29+
)
30+
.file("p3/src/lib.rs", "")
31+
.file(
32+
"p4/Cargo.toml",
33+
&cargo_test_support::basic_manifest("my-package4", "0.3.0+my-package2"),
34+
)
35+
.file("p4/src/lib.rs", "")
36+
.file(
37+
"p5/Cargo.toml",
38+
&cargo_test_support::basic_manifest("my-package5", "0.3.0+my-package2"),
39+
)
40+
.file("p5/src/lib.rs", "")
41+
.file(
42+
"p6/Cargo.toml",
43+
&cargo_test_support::basic_manifest("my-package6", "0.3.0+my-package2"),
44+
)
45+
.file("p6/src/lib.rs", "")
46+
.file(
47+
"p7/Cargo.toml",
48+
&cargo_test_support::basic_manifest("my-package7", "0.3.0+my-package2"),
49+
)
50+
.file("p7/src/lib.rs", "")
51+
.file(
52+
"p8/Cargo.toml",
53+
&cargo_test_support::basic_manifest("my-package8", "0.3.0+my-package2"),
54+
)
55+
.file("p8/src/lib.rs", "")
56+
.file(
57+
"p9/Cargo.toml",
58+
&cargo_test_support::basic_manifest("my-package9", "0.3.0+my-package2"),
59+
)
60+
.file("p9/src/lib.rs", "")
2661
});
2762
let git_url = git_dep.url().to_string();
2863

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
Updating git repository `[ROOTURL]/git-package`
2-
error: multiple packages found at `[ROOTURL]/git-package`: my-package1, my-package2
2+
error: multiple packages found at `[ROOTURL]/git-package`:
3+
my-package1, my-package2, my-package3, my-package4, my-package5, my-package6
4+
my-package7, my-package8, my-package9
5+
To disambiguate, run `cargo add --git [ROOTURL]/git-package <crate>`

0 commit comments

Comments
 (0)