mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
pre-commit: update cargo-lock-check to suggest changes
This commit is contained in:
committed by
Sylvestre Ledru
parent
88fb82a4a7
commit
fca0d0416c
@@ -47,7 +47,7 @@ repos:
|
|||||||
- id: cargo-lock-check
|
- id: cargo-lock-check
|
||||||
name: Cargo.lock sync check
|
name: Cargo.lock sync check
|
||||||
description: Ensure Cargo.lock and fuzz/Cargo.lock are up-to-date.
|
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
|
pass_filenames: false
|
||||||
files: 'Cargo\.(toml|lock)$'
|
files: 'Cargo\.(toml|lock)$'
|
||||||
language: system
|
language: system
|
||||||
|
|||||||
Reference in New Issue
Block a user