Skip to content

Commit

Permalink
Adjust "to see how you depend on a package" message to use a command …
Browse files Browse the repository at this point in the history
…format that supports flags like --all-features
  • Loading branch information
Craig-Macomber committed Dec 30, 2024
1 parent d0342d3 commit 7fb7821
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ fn print_lockfile_updates(

if ws.gctx().shell().verbosity() == Verbosity::Verbose {
ws.gctx().shell().note(
"to see how you depend on a package, run `cargo tree --invert --package <dep>@<ver>`",
"to see how you depend on a package, run `cargo tree --all-features --invert <dep>@<ver>`",
)?;
} else {
if 0 < unchanged_behind {
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ fn report_behind() {
[UPDATING] breaking v0.1.0 -> v0.1.1 (available: v0.2.0)
[UNCHANGED] pre v1.0.0-alpha.0 (available: v1.0.0-alpha.1)
[UNCHANGED] two-ver v0.1.0 (available: v0.2.0)
[NOTE] to see how you depend on a package, run `cargo tree --invert --package <dep>@<ver>`
[NOTE] to see how you depend on a package, run `cargo tree --all-features --invert <dep>@<ver>`
[WARNING] not updating lockfile due to dry run
"#]])
Expand All @@ -1560,7 +1560,7 @@ fn report_behind() {
[UNCHANGED] breaking v0.1.1 (available: v0.2.0)
[UNCHANGED] pre v1.0.0-alpha.0 (available: v1.0.0-alpha.1)
[UNCHANGED] two-ver v0.1.0 (available: v0.2.0)
[NOTE] to see how you depend on a package, run `cargo tree --invert --package <dep>@<ver>`
[NOTE] to see how you depend on a package, run `cargo tree --all-features --invert <dep>@<ver>`
[WARNING] not updating lockfile due to dry run
"#]])
Expand Down

0 comments on commit 7fb7821

Please sign in to comment.