Skip to content

Commit

Permalink
ci: Wrap failing pre-commit command (#1126)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aborgna-q authored May 29, 2024
1 parent f97ba06 commit bbefc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbefc04

Please sign in to comment.