setup: fix toolchain installation error#172
Conversation
|
I see it's also fixed in OP-TEE build: OP-TEE/build#818 |
|
Seems cloning OP-TEE repo failed: |
|
@DemesneGH could you retry again? seems like a network issue to me. |
|
The CI is broken in https://github.com/OP-TEE/optee_os too :-/ If the problem persists we could create a mirror of SCP-firmware on a reliable host (i.e., GitHub) and use it instead. |
|
| # "cargo --version" since it has no other effect. | ||
| cargo --version >/dev/null | ||
| # install the Rust toolchain set in rust-toolchain.toml | ||
| rustup toolchain install |
There was a problem hiding this comment.
I think we should notice that this command requires higher version of rustup.
With rustup 1.27.1 (54dd3d00f 2024-04-24):

With rustup 1.28.0 (6e19fbec7 2025-03-02)

According to this, developers can use rustup self update to update the version of rustup.
There was a problem hiding this comment.

rustup 1.28.0 was released 2 days ago, I think most of the developers still keeps on rustup 1.27.1,
There was a problem hiding this comment.
How about change line32 to:
rustup self update && rustup uninstall stable && rustup install stable?
There was a problem hiding this comment.
How about change line32 to:
rustup self update && rustup uninstall stable && rustup install stable?
Good catch, it is better.
|
Thanks for your fix, everything looks good to me, feel free to add: |
|
|
`cargo --version` is used to trigger the Rust toolchain installation but does not work currently and fails with the error: "error: toolchain 'nightly-....'is not installed" Use the `rustup toolchain install` instead. Signed-off-by: Yuan Zhuang <yuanz@apache.org> Reviewed-by: Zehui Chen <ivila@apache.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
|
Merged, thanks! |
cargo --versionis used to trigger the Rust toolchain installation but does not work currently and fails with the error:"error: toolchain 'nightly-....'is not installed"
Use the
rustup toolchain installinstead.