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

warning: [email protected]: Could not find Cargo.lock for /usr/local/cargo/git/checkouts/substrate-contracts-node-....runtime/Cargo.toml, while searching from /tmp/cargo-installFbuv1p/release/build/contracts-parachain-runtime-../out. To fix this, point the WASM_BUILD_WORKSPACE_HINT env variable to the directory of the workspace being compiled. #232

Open
ltfschoen opened this issue Apr 17, 2024 · 2 comments

Comments

@ltfschoen
Copy link

When I run the following here https://github.com/ltfschoen/XCMTemplate/blob/main/docker/run.sh#L103

cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --tag ${SUBSTRATE_CONTRACTS_NODE_VERSION} --force --locked

where i'm using versions:
RUST_NIGHTLY="2024-02-17"
NODE_VERSION=v20.12.0
CARGO_CONTRACT_VERSION=4.1.0
SUBSTRATE_CONTRACTS_NODE_VERSION=v0.40.0

it outputs the following error.

   Compiling rococo-runtime v10.0.0
   Compiling contracts-node-runtime v0.40.0 (/usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/17065f3/runtime)
   Compiling contracts-parachain-runtime v0.40.0 (/usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/17065f3/parachain-runtime)
warning: [email protected]: Could not find `Cargo.lock` for `/usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/17065f3/runtime/Cargo.toml`, while searching from `/tmp/cargo-installFbuv1p/release/build/contracts-node-runtime-5d514765cf8d82a9/out`. To fix this, point the `WASM_BUILD_WORKSPACE_HINT` env variable to the directory of the workspace being compiled.
   Compiling rocksdb v0.21.0
   Compiling kvdb-rocksdb v0.19.0
   Compiling sc-client-db v0.38.0
warning: [email protected]: Could not find `Cargo.lock` for `/usr/local/cargo/git/checkouts/substrate-contracts-node-cf7c16677784d274/17065f3/parachain-runtime/Cargo.toml`, while searching from `/tmp/cargo-installFbuv1p/release/build/contracts-parachain-runtime-4049840299a089fe/out`. To fix this, point the `WASM_BUILD_WORKSPACE_HINT` env variable to the directory of the workspace being compiled.
   Compiling sc-service v0.38.0

note: it actually outputs each of those warnings three times in a row, i've just removed the duplicates from the logs

that error is the same as the one shown in this old issue https://substrate.stackexchange.com/questions/5182/failed-to-run-custom-build-command-for-contracts-node-runtime-v0-17-0

@ltfschoen
Copy link
Author

instead of running

export SUBSTRATE_CONTRACTS_NODE_VERSION=v0.40.0
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --tag ${SUBSTRATE_CONTRACTS_NODE_VERSION} --force --locked

if i change it to run the following instead it doesn't generate that error

export SUBSTRATE_CONTRACTS_NODE_VERSION=v0.40.0
git clone https://github.com/paritytech/substrate-contracts-node.git
cd substrate-contracts-node
git checkout ${SUBSTRATE_CONTRACTS_NODE_VERSION}
cargo install --path ./node --force --locked

@smiasojed
Copy link
Contributor

smiasojed commented Apr 17, 2024

Hi @ltfschoen, substrate-contracts-node is published to 'crates.io', so you can just:
cargo install contracts-node --version 0.40.0 --locked

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

2 participants