-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11186 - hi-rustin:rustin-patch-add-suggestion, r=epage
Add suggestions when `cargo add` multiple packages ### What does this PR try to resolve? close #11173 Add suggestions when `cargo add` multiple packages. See #11173 (comment) ### How should we test and review this PR? - [x] unit test
- Loading branch information
Showing
3 changed files
with
65 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
tests/testsuite/cargo_add/git_inferred_name_multiple/stderr.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
Updating git repository `[ROOTURL]/git-package` | ||
error: multiple packages found at `[ROOTURL]/git-package`: my-package1, my-package2 | ||
error: multiple packages found at `[ROOTURL]/git-package`: | ||
my-package1, my-package2, my-package3, my-package4, my-package5, my-package6 | ||
my-package7, my-package8, my-package9 | ||
To disambiguate, run `cargo add --git [ROOTURL]/git-package <package>` |