summaryrefslogtreecommitdiff
path: root/git-hooks/pre-commit
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-08 13:09:57 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-08 13:09:57 -0400
commit588a14848d4ac45f31ee8646555e1e21cca5595d (patch)
tree1b5af4f76c638771ab5de52767181e27af18b029 /git-hooks/pre-commit
parent53eb771b8890ce13720cfa613507dfe82464c08d (diff)
Make sure Cargo.lock is not stale on commit
Diffstat (limited to 'git-hooks/pre-commit')
-rwxr-xr-xgit-hooks/pre-commit2
1 files changed, 2 insertions, 0 deletions
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