-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(upgrade): Exclusively operate on full workspaces
This came from the internals discussion on what `cargo upgrade` should look like in cargo. See https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101 Benefits - Removes the UI conflict in selecting manifests to edit and selecting dependencies to upgrade - Will work naturally with `[workspace.dependencies]` - If we merge `upgrade` into `update` or supersede it, we'll already be aligned on behavior
- Loading branch information
Showing
30 changed files
with
113 additions
and
155 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
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
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,16 +1,13 @@ | ||
Updating '[ROOTURL]/registry' index | ||
Error: Invalid manifest | ||
Error: `cargo metadata` exited with an error: error: failed to parse manifest at `[ROOT]/case/Cargo.toml` | ||
|
||
Caused by: | ||
`cargo metadata` exited with an error: error: failed to parse manifest at `[ROOT]/case/Cargo.toml` | ||
|
||
Caused by: | ||
could not parse input as TOML | ||
|
||
Caused by: | ||
TOML parse error at line 1, column 6 | ||
| | ||
1 | This is clearly not a valid Cargo.toml. | ||
| ^ | ||
Unexpected `i` | ||
Expected `.` or `=` | ||
could not parse input as TOML | ||
|
||
Caused by: | ||
TOML parse error at line 1, column 6 | ||
| | ||
1 | This is clearly not a valid Cargo.toml. | ||
| ^ | ||
Unexpected `i` | ||
Expected `.` or `=` |
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
9 changes: 2 additions & 7 deletions
9
tests/cargo-upgrade/invalid_workspace_root_manifest/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,11 +1,6 @@ | ||
Updating '[ROOTURL]/registry' index | ||
Error: Invalid manifest | ||
Error: `cargo metadata` exited with an error: error: failed to parse manifest at `[ROOT]/case/Cargo.toml` | ||
|
||
Caused by: | ||
`cargo metadata` exited with an error: error: failed to parse manifest at `[ROOT]/case/Cargo.toml` | ||
|
||
Caused by: | ||
could not parse input as TOML | ||
|
||
Caused by: | ||
could not parse input as TOML | ||
... |
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
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
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
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ fn case() { | |
|
||
snapbox::cmd::Command::cargo_ui() | ||
.arg("upgrade") | ||
.args(["[email protected]", "--verbose"]) | ||
.args(["--package", "[email protected]", "--verbose"]) | ||
.current_dir(cwd) | ||
.assert() | ||
.success() | ||
|
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
Oops, something went wrong.