forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cargo-update): once warn once for
--precise <yanked>
This also tweaks the error message a bit.
- Loading branch information
Showing
2 changed files
with
18 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1419,9 +1419,8 @@ Caused by: | |
.with_stderr( | ||
"\ | ||
[UPDATING] `dummy-registry` index | ||
[WARNING] yanked package `[email protected]` is selected by the `--precise` flag from registry `dummy-registry` | ||
[NOTE] it is not recommended to depend on a yanked version | ||
[NOTE] if possible, try other SemVer-compatbile versions | ||
[WARNING] selected package `[email protected]` was yanked by the author | ||
[NOTE] if possible, try a compatible non-yanked version | ||
[UPDATING] bar v0.1.0 -> v0.1.1 | ||
", | ||
) | ||
|
@@ -1463,12 +1462,8 @@ fn precise_yanked_multiple_presence() { | |
.with_stderr( | ||
"\ | ||
[UPDATING] `dummy-registry` index | ||
[WARNING] yanked package `[email protected]` is selected by the `--precise` flag from registry `dummy-registry` | ||
[NOTE] it is not recommended to depend on a yanked version | ||
[NOTE] if possible, try other SemVer-compatbile versions | ||
[WARNING] yanked package `[email protected]` is selected by the `--precise` flag from registry `dummy-registry` | ||
[NOTE] it is not recommended to depend on a yanked version | ||
[NOTE] if possible, try other SemVer-compatbile versions | ||
[WARNING] selected package `[email protected]` was yanked by the author | ||
[NOTE] if possible, try a compatible non-yanked version | ||
[UPDATING] bar v0.1.0 -> v0.1.1 | ||
", | ||
) | ||
|