Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting warnings: Could not find Cargo.lock while installing #202

Open
AnmolBansalDEV opened this issue Aug 13, 2023 · 0 comments
Open

getting warnings: Could not find Cargo.lock while installing #202

AnmolBansalDEV opened this issue Aug 13, 2023 · 0 comments

Comments

@AnmolBansalDEV
Copy link

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
paritytech/substrate#12816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant