You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran cargo contract build on a fresh machine it gave me this error:
[==] Checking ink! linting rules
ERROR: Toolchain `nightly-2023-12-28` was not found!
This specific version is required to provide additional source code analysis.
You can install it by executing `rustup install nightly-2023-12-28`.
I then executed cargo install cargo-dylint dylint-link and got another error:
[==] Checking ink! linting rules
Updating git repository `https://github.com/paritytech/ink/`
Updating git repository `https://github.com/paritytech/ink/`
Checking with toolchain `nightly-2023-12-28-aarch64-apple-darwin`
error: "/Users/michi/.rustup/toolchains/nightly-2023-12-28-aarch64-apple-darwin/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
rustup component add rust-src --toolchain nightly-2023-12-28-aarch64-apple-darwin
Error: Compilation failed with toolchain `nightly-2023-12-28-aarch64-apple-darwin`
Caused by:
command failed: env -u CARGO -u RUSTC CLIPPY_DISABLE_DOCS_LINKS="null" DYLINT_LIBS="[\"/Users/michi/projects/ink/integration-tests/flipper/target/ink/dylint/libraries/nightly-2023-12-28-aarch64-apple-darwin/release/libink_linting@nightly-2023-12-28-aarch64-apple-darwin.dylib\",\"/Users/michi/projects/ink/integration-tests/flipper/target/ink/dylint/libraries/nightly-2023-12-28-aarch64-apple-darwin/release/libink_linting_mandatory@nightly-2023-12-28-aarch64-apple-darwin.dylib\"]" DYLINT_METADATA="{\"libraries\":[{\"git\":\"https://github.com/paritytech/ink/\",\"pattern\":\"linting/mandatory\",\"rev\":\"b6880dd9384e09ec4e7ad65453cd844113e8a316\"},{\"git\":\"https://github.com/paritytech/ink/\",\"pattern\":\"linting/extra\",\"rev\":\"b6880dd9384e09ec4e7ad65453cd844113e8a316\"}]}" DYLINT_NO_DEPS="0" RUSTC_WORKSPACE_WRAPPER="/Users/michi/.dylint_drivers/nightly-2023-12-28-aarch64-apple-darwin/dylint-driver" RUSTUP_TOOLCHAIN="nightly-2023-12-28-aarch64-apple-darwin" "cargo" "check" "--target-dir" "/Users/michi/projects/ink/integration-tests/flipper/target/ink/dylint/target/nightly-2023-12-28-aarch64-apple-darwin" "--target=wasm32-unknown-unknown" "-Zbuild-std=core,alloc" "--no-default-features"
ERROR: command ["/Users/michi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo", "dylint", "--quiet", "--lib=ink_linting_mandatory", "--lib=ink_linting", "--", "--target=wasm32-unknown-unknown", "-Zbuild-std=core,alloc", "--no-default-features"] exited with code 1
After executing rustup component add rust-src --toolchain nightly-2023-12-28-aarch64-apple-darwin it worked.
I saw that the code already checks for cargo-dylint and dylint-link, so not sure why my cargo install changed fix. Maybe because of an updated crate after the install?
Here's what the command did:
Ignored package `dylint-link v2.1.10` is already installed, use --force to override
Replaced package `cargo-dylint v2.5.0` with `cargo-dylint v2.6.1` (executable `cargo-dylint`)
Please
add rustup component add rust-src --toolchain nightly-2023-12-28 to the toolchain installation instructions
try to find out what the reason for the cargo install cargo-dylint dylint-link thing could be.
Please also check if ink-docs or the readme in cargo-contract need to be adapted.
The text was updated successfully, but these errors were encountered:
When I ran
cargo contract build
on a fresh machine it gave me this error:After executing this command it didn't work:
I then executed
cargo install cargo-dylint dylint-link
and got another error:After executing
rustup component add rust-src --toolchain nightly-2023-12-28-aarch64-apple-darwin
it worked.I saw that the code already checks for
cargo-dylint
anddylint-link
, so not sure why mycargo install
changed fix. Maybe because of an updated crate after the install?Here's what the command did:
Please
rustup component add rust-src --toolchain nightly-2023-12-28
to the toolchain installation instructionscargo install cargo-dylint dylint-link
thing could be.Please also check if
ink-docs
or the readme incargo-contract
need to be adapted.The text was updated successfully, but these errors were encountered: