From 588a14848d4ac45f31ee8646555e1e21cca5595d Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sun, 8 Sep 2024 13:09:57 -0400 Subject: Make sure Cargo.lock is not stale on commit --- git-hooks/pre-commit | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git-hooks') diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index 3c12443..cd2f9ee 100755 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -4,6 +4,8 @@ # run. It gets old fast. That's why this uses `cargo check` and not `cargo # test`, for example. +# Make sure Cargo.lock is up to date with Cargo.toml. +cargo update --locked --workspace # Make sure there are no screamers in the code. cargo check # Make sure the prepared statement data in .sqlx is up to date. Requires -- cgit v1.2.3