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

Fix script init.sh for error: component 'rustfmt' for target 'x86_64-… #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TrinhKien94
Copy link

When I run command
sudo docker run -it --rm --name substrate-ssvm -p 9944:9944 -v $(pwd):/root/node -w /root/node/substrate-ssvm-node secondstate/substrate-ssvm:latest /bin/bash -c "make init && make build && cargo run --release --bin ssvm-node -- --dev --ws-external"
It have an error:
error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel nightly
Sometimes not all components are available in any given nightly. If you don't need the component, you can remove it with:

rustup component remove --toolchain nightly --target x86_64-unknown-linux-gnu rustfmt

make: *** [Makefile:3: init] Error 1

Reason: I think the lastest of docker image of secondstate/substrate-ssvm have problem with rust

Solution: uninstall chain and reinstall tool chain.

…unknown-linux-gnu' is unavailable for download for channel nightly
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

Successfully merging this pull request may close these issues.

1 participant