nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

Report toolchain xxx is not installed #52

Closed XuJiandong closed 1 year ago

XuJiandong commented 2 years ago

Describe the bug Build https://github.com/nervosnetwork/godwoken-scripts with 0.7.2: ❯ capsule --version Capsule 0.7.2 ❯ capsule build Building contract state-validator error: toolchain 'nightly-2021-08-16-x86_64-unknown-linux-gnu' is not installed error: docker container exit with code Some(1)

The capsule.toml file: https://github.com/nervosnetwork/godwoken-scripts/blob/master/capsule.toml#L5 It might be the problem of the following:

[rust]
workspace_dir = "contracts"
toolchain = "nightly-2021-08-16"

The image should be download automatically.

Screenshots If applicable, add screenshots to help explain your problem. (The command and the output)

Additional context Please post the following informations:

TheWaWaR commented 2 years ago

I think the right way it stick the docker_image version: https://github.com/nervosnetwork/godwoken-scripts/pull/103

blckngm commented 1 year ago

Problem already solved.

FWIW, using cross can help with similar problems in the future: #84