From a4e378d88cd1615d9706d0a3a3ed44310425faa2 Mon Sep 17 00:00:00 2001 From: therealaleph Date: Thu, 23 Apr 2026 10:18:04 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20mipsel-softfloat=20=E2=80=94=20fix=20rust?= =?UTF-8?q?up=20upgrade-in-place=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The messense/rust-musl-cross:mipsel-musl image ships a pre-installed nightly Rust in a state rustup can't cleanly upgrade over — the in-place upgrade errors with error: failure removing component 'clippy-preview-x86_64-unknown-linux-gnu', directory does not exist: 'share/doc/clippy/README.md' because the prior install is missing files rustup expects to delete. Workaround: uninstall nightly first, then install fresh with the minimal profile, then add rust-src as a separate step. continue-on-error keeps this experimental target from blocking the release — landing the fix on main so the NEXT tag attempt gets a working mipsel artifact, without spinning up yet another retag dance for v1.1.0. --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4010829..8056a32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,7 +166,16 @@ jobs: docker run --rm -v "$PWD":/src -w /src \ -e RUSTFLAGS='-C target-feature=+soft-float' \ messense/rust-musl-cross:mipsel-musl \ - sh -c "rustup toolchain install nightly --profile minimal --component rust-src && \ + sh -c "set -eux; \ + # The image ships with a pre-installed nightly that rustup \ + # can't cleanly upgrade — the expected \`clippy-preview/share/doc/clippy/README.md\` \ + # is missing, which fails the in-place upgrade \ + # (error: failure removing component 'clippy-preview...'). \ + # Nuke it first, then install fresh with only the profile \ + # bits we actually use. \ + rustup toolchain uninstall nightly 2>/dev/null || true; \ + rustup toolchain install nightly --profile minimal; \ + rustup component add rust-src --toolchain nightly; \ cargo +nightly build --release \ -Z build-std=std,panic_abort \ --target mipsel-unknown-linux-musl \