xtask: Add instructions for installing cargo-sort
This commit is contained in:
parent
e2375ed72e
commit
eef68d7d4b
@ -177,6 +177,12 @@ impl CiTask {
|
|||||||
|
|
||||||
/// Check the sorting of dependencies with the nightly version.
|
/// Check the sorting of dependencies with the nightly version.
|
||||||
fn dependencies(&self) -> Result<()> {
|
fn dependencies(&self) -> Result<()> {
|
||||||
|
if cmd!("cargo sort --version").run().is_err() {
|
||||||
|
return Err(
|
||||||
|
"Could not find cargo-sort. Install it by running `cargo install cargo-sort`"
|
||||||
|
.into(),
|
||||||
|
);
|
||||||
|
}
|
||||||
cmd!(
|
cmd!(
|
||||||
"
|
"
|
||||||
rustup run nightly cargo sort
|
rustup run nightly cargo sort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user