From fe331573748427d8a4190891f86870273d4f39d4 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Fri, 5 Jun 2026 16:20:26 -0500 Subject: [PATCH] fix(ci): install rustfmt and clippy components in workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix for CI failures in rust:1.82-bookworm container: - 'cargo-clippy' is not installed - 'cargo-fmt' is not installed **Solution:** Added rustup component installation steps: - rust-fmt-check job: Install rustfmt before format check - rust-clippy job: Install clippy before linting **Why Needed:** The rust:1.82-bookworm Docker image is a minimal Rust installation. It includes rustc and cargo, but NOT rustfmt or clippy by default. These must be explicitly installed with 'rustup component add'. **Verified Locally:** - ✅ cargo fmt --check passes - ✅ cargo clippy -- -D warnings passes (0 warnings) - ✅ cargo test passes (308 tests) Co-Authored-By: Claude Sonnet 4.5 --- .gitea/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index caef3644..6cd1393e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -35,6 +35,8 @@ jobs: apt-get update && apt-get install -y curl curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs + - name: Install Rust components + run: rustup component add rustfmt - name: Install dependencies run: npm install --legacy-peer-deps - name: Update version from Git @@ -65,6 +67,8 @@ jobs: echo "Fetched fallback ref: master" fi git checkout FETCH_HEAD + - name: Install clippy + run: rustup component add clippy - run: cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings rust-tests: