-
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.
fix:
update --breaking
now understands package@version.
- Loading branch information
1 parent
3a45d6e
commit 2de4c24
Showing
2 changed files
with
34 additions
and
5 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 |
---|---|---|
|
@@ -2244,11 +2244,29 @@ fn update_breaking_spec_version() { | |
|
||
Package::new("incompatible", "2.0.0").publish(); | ||
|
||
p.cargo("update -Zunstable-options --breaking incompatible@foo") | ||
.masquerade_as_nightly_cargo(&["update-breaking"]) | ||
.with_status(101) | ||
.with_stderr( | ||
"\ | ||
[ERROR] expected a version like \"1.32\" | ||
", | ||
) | ||
.run(); | ||
|
||
p.cargo("update -Zunstable-options --breaking [email protected]") | ||
.masquerade_as_nightly_cargo(&["update-breaking"]) | ||
.with_stderr("") | ||
.run(); | ||
|
||
p.cargo("update -Zunstable-options --breaking [email protected]") | ||
.masquerade_as_nightly_cargo(&["update-breaking"]) | ||
.with_stderr( | ||
// FIXME: This is wrong. | ||
"\ | ||
[UPDATING] `[..]` index | ||
[UPGRADING] incompatible ^1.0 -> ^2.0 | ||
[LOCKING] 1 package to latest compatible version | ||
[UPDATING] incompatible v1.0.0 -> v2.0.0 | ||
", | ||
) | ||
.run(); | ||
|
@@ -2259,7 +2277,6 @@ fn update_breaking_spec_version() { | |
[UPDATING] `[..]` index | ||
[LOCKING] 1 package to latest compatible version | ||
[UPDATING] compatible v1.0.0 -> v1.0.1 | ||
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest | ||
", | ||
) | ||
.run(); | ||
|