If the toolchain is installed and the directory where it's installed is later removed, cargo-wasix fails to detect the missing toolchain and fails instead.
Steps to reproduce:
Remove or rename the toolchain directory: mv /home/arshia/.local/share/cargo-wasix/toolchains/x86_64-unknown-linux-gnu_v2023-07-21.1/rust /home/arshia/.local/share/cargo-wasix/toolchains/x86_64-unknown-linux-gnu_v2023-07-21.1/rust-backup
Run rustup toolchain list. The wasix toolchain will still be listed.
Run rustup default wasix. Rustup will complain that the toolchain is not installed.
Run cargo wasix build. It will fail to detect the missing toolchain and report an error instead:
$ cargo wasix build
error: toolchain 'wasix' is not installed
error: Could not execute rustc
If the toolchain is installed and the directory where it's installed is later removed, cargo-wasix fails to detect the missing toolchain and fails instead.
Steps to reproduce:
mv /home/arshia/.local/share/cargo-wasix/toolchains/x86_64-unknown-linux-gnu_v2023-07-21.1/rust /home/arshia/.local/share/cargo-wasix/toolchains/x86_64-unknown-linux-gnu_v2023-07-21.1/rust-backup
rustup toolchain list
. Thewasix
toolchain will still be listed.rustup default wasix
. Rustup will complain that the toolchain is not installed.cargo wasix build
. It will fail to detect the missing toolchain and report an error instead:Caused by: failed to execute "rustc" "+wasix" "--print" "sysroot" status: exit status: 1