From 339591ceddd53f1b9c88df8441034890d006696d Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 19 Apr 2026 15:50:19 -0500 Subject: [PATCH] ci: install clippy component before running it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `rust:1.94-trixie` ships rustc + cargo but not clippy — `rustup component add clippy` pulls it in on the fly. --- .forgejo/workflows/build-grid-rs.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-grid-rs.yaml b/.forgejo/workflows/build-grid-rs.yaml index d23be379..95edb2b3 100644 --- a/.forgejo/workflows/build-grid-rs.yaml +++ b/.forgejo/workflows/build-grid-rs.yaml @@ -60,7 +60,9 @@ jobs: exit 1 # Gate the image build on a clean test run so a push that regresses - # the scorer or breaks clippy never produces an image. + # the scorer or breaks clippy never produces an image. The stock + # `rust:1.94-trixie` image doesn't ship clippy, so add it before + # running. - name: cargo clippy + test run: | docker run --rm \ @@ -68,6 +70,7 @@ jobs: -w /src \ rust:1.94-trixie \ sh -euc ' + rustup component add clippy cargo clippy --all-targets -- -D warnings cargo test '