From 341855cdeb8835306caea11ed0d9f282b2846d21 Mon Sep 17 00:00:00 2001 From: Bearice Ren Date: Tue, 7 Jul 2026 16:57:03 +0900 Subject: [PATCH] fix(ci): force-reinstall packaging tools when cache is warm The cargo bin dir is cached across runs (actions/cache). Once cargo-deb / cargo-generate-rpm are installed, a later 'cargo install --locked cargo-deb' fails with 'binary already exists in destination' (exit 101), breaking every subsequent Linux job. Add --force so the installs are idempotent whether or not the cache is populated. Co-Authored-By: Claude --- .github/workflows/rust.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 1cde4c6..1c0a305 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -150,9 +150,9 @@ jobs: - name: Install packaging tools run: | # cargo-deb builds .deb packages - cargo install --locked cargo-deb + cargo install --locked --force cargo-deb # cargo-generate-rpm builds .rpm packages - cargo install --locked cargo-generate-rpm + cargo install --locked --force cargo-generate-rpm - name: Build .deb run: cargo deb --no-strip --output RustCat-linux-x86_64.deb