From e2747bc603a3b8cc000dfbc36b37a97ffb819cd6 Mon Sep 17 00:00:00 2001 From: goose Date: Thu, 12 Mar 2026 08:49:08 -0300 Subject: [PATCH] fix(ci): install rustfmt and clippy components The CI was failing because rustfmt is not installed by default in the rust:latest Docker image. Error: 'cargo-fmt' is not installed for the toolchain '1.94.0' Solution: - Add 'rustup component add rustfmt clippy' step - This installs both rustfmt and clippy before running lint checks This allows the fmt and clippy checks to run successfully. --- .forgejo/workflows/lint-and-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.forgejo/workflows/lint-and-build.yml b/.forgejo/workflows/lint-and-build.yml index 7113d8b..9eec714 100644 --- a/.forgejo/workflows/lint-and-build.yml +++ b/.forgejo/workflows/lint-and-build.yml @@ -30,6 +30,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install Rust components + run: | + rustup component add rustfmt clippy + - name: Install dependencies run: | apt-get update && apt-get install -y pkg-config libssl-dev