From bbefc04b1b64b7c79456d74f835b247ead38a6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Wed, 29 May 2024 11:49:29 +0100 Subject: [PATCH] ci: Wrap failing pre-commit command (#1126) pre-commit started failing to parse the `cargo doc` command; ``` cargo doc................................................................Failed - hook id: cargo-doc - exit code: 1 Executable `RUSTDOCFLAGS=-Dwarnings` not found ``` it may be related to a version update. The solution, as we've done in other steps, is to wrap everything as a `sh -c` command. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4813932be..b91fcaa9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: - id: cargo-doc name: cargo doc description: Generate documentation with `cargo doc`. - entry: RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features --workspace + entry: sh -c "RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features --workspace" language: system files: \.rs$ pass_filenames: false