pre-commit: update cargo-lock-check to suggest changes

This commit is contained in:
xtqqczze
2026-04-06 00:12:12 +02:00
committed by Sylvestre Ledru
parent 88fb82a4a7
commit fca0d0416c
+1 -1
View File
@@ -47,7 +47,7 @@ repos:
- id: cargo-lock-check
name: Cargo.lock sync check
description: Ensure Cargo.lock and fuzz/Cargo.lock are up-to-date.
entry: bash -c 'for dir in . fuzz; do ( cd "$dir" && cargo fetch --locked --quiet ) || { echo "ERROR - $dir/Cargo.lock is out of date. Run -> cd $dir && cargo update"; exit 1; } done'
entry: bash -c 'for dir in . fuzz; do ( cd "$dir" && cargo fetch --quiet ); done'
pass_filenames: false
files: 'Cargo\.(toml|lock)$'
language: system