Skip to content

Commit

Permalink
fix(build): installation instructions for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jubnzv committed Mar 14, 2024
1 parent e4b3d3d commit 8959787
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,10 @@ fn check_dylint_requirements(_working_dir: Option<&Path>) -> Result<()> {
format!(
"Toolchain `{0}` was not found!\n\
This specific version is required to provide additional source code analysis.\n\n
You can install it by executing `rustup install {0}`.",
You can install it by executing:\n
rustup install {0}\n
rustup component add rust-src --toolchain {0}\n
rustup run {0} cargo install cargo-dylint dylint-link",
linting::TOOLCHAIN_VERSION,
)
.to_string()
Expand All @@ -638,7 +641,10 @@ fn check_dylint_requirements(_working_dir: Option<&Path>) -> Result<()> {
anyhow::bail!(format!(
"Toolchain `{0}` was not found!\n\
This specific version is required to provide additional source code analysis.\n\n
Install `rustup` according to https://rustup.rs/ and then run: `rustup install {0}`.",
Install `rustup` according to https://rustup.rs/ and then run:
rustup install {0}\n
rustup component add rust-src --toolchain {0}\n
rustup run {0} cargo install cargo-dylint dylint-link",
linting::TOOLCHAIN_VERSION,
)
.to_string()
Expand Down

0 comments on commit 8959787

Please sign in to comment.