Skip to content

Commit

Permalink
fix(update): Start note/warn with lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 5, 2024
1 parent dce58dc commit 012ca52
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/cargo/ops/cargo_generate_lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ pub fn update_lockfile(ws: &Workspace<'_>, opts: &UpdateOptions<'_>) -> CargoRes
}
if opts.config.shell().verbosity() == Verbosity::Verbose {
opts.config.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 --invert --package <dep>@<ver>`",
)?;
} else {
if 0 < unchanged_behind {
opts.config.shell().note(format!(
"Pass `--verbose` to see {unchanged_behind} unchanged dependencies behind latest"
"pass `--verbose` to see {unchanged_behind} unchanged dependencies behind latest"
))?;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2430,7 +2430,7 @@ fn can_update_with_alt_reg() {
"\
[UPDATING] `alternative` index
[UPDATING] `dummy-registry` index
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ fn update_multiple_packages() {
[UPDATING] `[..]` index
[UPDATING] a v0.1.0 -> v0.1.1
[UPDATING] b v0.1.0 -> v0.1.1
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,15 @@ fn override_adds_some_deps() {
"\
[UPDATING] git repository `file://[..]`
[UPDATING] `dummy-registry` index
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
p.cargo("update https://github.com/rust-lang/crates.io-index#bar")
.with_stderr(
"\
[UPDATING] `dummy-registry` index
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down
20 changes: 10 additions & 10 deletions tests/testsuite/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fn transitive_minor_update() {
.with_stderr(
"\
[UPDATING] `[..]` index
[NOTE] Pass `--verbose` to see 2 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 2 unchanged dependencies behind latest
",
)
.run();
Expand Down Expand Up @@ -161,7 +161,7 @@ fn conservative() {
"\
[UPDATING] `[..]` index
[UPDATING] serde v0.1.0 -> v0.1.1
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down Expand Up @@ -388,7 +388,7 @@ fn update_precise() {
"\
[UPDATING] `[..]` index
[DOWNGRADING] serde v0.2.1 -> v0.2.0
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down Expand Up @@ -523,7 +523,7 @@ fn update_precise_do_not_force_update_deps() {
"\
[UPDATING] `[..]` index
[UPDATING] serde v0.2.1 -> v0.2.2
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down Expand Up @@ -902,7 +902,7 @@ fn dry_run_update() {
"\
[UPDATING] `[..]` index
[UPDATING] serde v0.1.0 -> v0.1.1
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
[WARNING] not updating lockfile due to dry run
",
)
Expand Down Expand Up @@ -1513,7 +1513,7 @@ fn report_behind() {
"\
[UPDATING] `dummy-registry` index
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
[NOTE] Pass `--verbose` to see 2 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 2 unchanged dependencies behind latest
[WARNING] not updating lockfile due to dry run
",
)
Expand All @@ -1526,7 +1526,7 @@ fn report_behind() {
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
[UNCHANGED] pre v1.0.0-alpha.0 (latest: v1.0.0-alpha.1)
[UNCHANGED] two-ver v0.1.0 (latest: 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 --invert --package <dep>@<ver>`
[WARNING] not updating lockfile due to dry run
",
)
Expand All @@ -1538,7 +1538,7 @@ fn report_behind() {
.with_stderr(
"\
[UPDATING] `dummy-registry` index
[NOTE] Pass `--verbose` to see 3 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 3 unchanged dependencies behind latest
[WARNING] not updating lockfile due to dry run
",
)
Expand All @@ -1551,7 +1551,7 @@ fn report_behind() {
[UNCHANGED] breaking v0.1.1 (latest: v0.2.0)
[UNCHANGED] pre v1.0.0-alpha.0 (latest: v1.0.0-alpha.1)
[UNCHANGED] two-ver v0.1.0 (latest: 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 --invert --package <dep>@<ver>`
[WARNING] not updating lockfile due to dry run
",
)
Expand Down Expand Up @@ -1587,7 +1587,7 @@ fn update_with_missing_feature() {
.with_stderr(
"\
[UPDATING] `[..]` index
[NOTE] Pass `--verbose` to see 1 unchanged dependencies behind latest
[NOTE] pass `--verbose` to see 1 unchanged dependencies behind latest
",
)
.run();
Expand Down

0 comments on commit 012ca52

Please sign in to comment.