Truly independent web browser
CI: Reinstall a Rust toolchain that lacks cargo
sideshowbarker615661385424
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex b4180c3f4f6..6cf347a3f33 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -129,13 +129,13 @@ runs:if: ${{ inputs.os == 'macOS' || inputs.os == 'Android' || inputs.os == 'Windows' }}shell: bashrun: |- if rustup toolchain install ; then+ if rustup toolchain install && cargo --version ; thenexit 0fi- # Some Blacksmith runner images boot with a partially installed toolchain whose files rustup does not know- # about. It cannot repair that on its own and fails with a "detected conflict" error, so wipe the toolchain and- # retry.+ # Some Blacksmith runner images boot with a partially installed toolchain. Either it has files rustup doesn't+ # know about, which rustup can't repair on its own and fails on with a "detected conflict" error, or it lacks+ # cargo although rustup reports the toolchain as installed. So wipe the toolchain and retry.CHANNEL=$(sed -n 's/^channel *= *"\(.*\)"/\1/p' "${{ github.workspace }}/rust-toolchain.toml")if [ -z "${CHANNEL}" ]; thenecho "Could not determine the pinned Rust channel" >&2@@ -145,6 +145,7 @@ runs:echo "Reinstalling Rust toolchain ${CHANNEL} from scratch"rustup toolchain uninstall "${CHANNEL}" || rm -rf "$(rustup show home)/toolchains/${CHANNEL}"-*rustup toolchain install+ cargo --version- name: 'Resolve wasm-tools release'id: 'wasm-tools'