substrate-contracts-node icon indicating copy to clipboard operation
substrate-contracts-node copied to clipboard

getting warnings: Could not find `Cargo.lock` while installing

Open AnmolBansalDEV opened this issue 1 year ago • 0 comments

Problem

getting warnings while installing the node using the command cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git

warning: Could not find Cargo.lock for /usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/72e6857/runtime/Cargo.toml, while searching from /tmp/cargo-installIzGvIw/release/build/contracts-node-runtime-171627be271a7759/out. To fix this, point the WASM_BUILD_WORKSPACE_HINT env variable to the directory of the workspace being compiled. warning: Could not find Cargo.lock for /usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/72e6857/runtime/Cargo.toml, while searching from /tmp/cargo-installIzGvIw/release/build/contracts-node-runtime-171627be271a7759/out. To fix this, point the WASM_BUILD_WORKSPACE_HINT env variable to the directory of the workspace being compiled. warning: Could not find Cargo.lock for /usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/72e6857/runtime/Cargo.toml, while searching from /tmp/cargo-installIzGvIw/release/build/contracts-node-runtime-171627be271a7759/out. To fix this, point the WASM_BUILD_WORKSPACE_HINT env variable to the directory of the workspace being compiled.

Solution

Set up WASM_BUILD_WORKSPACE_HINT="$PWD" before starting the install similar to this PR https://github.com/paritytech/substrate/pull/12816

AnmolBansalDEV avatar Aug 13 '23 21:08 AnmolBansalDEV