From 3f1533ae8ae833a7984dec98675f34021a204c4f Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 20 Jan 2026 15:02:08 +0000 Subject: [PATCH] build: Add cargo check We've had a couple of occasions that Cargo.lock has been out of sync with Cargo.toml, so try and extend our rust check to pick this up in the CI. There is probably a more elegant way than doing `cargo check` and checking for changes, but I'll start with this approach Signed-off-by: stevenhorsman --- utils.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils.mk b/utils.mk index a842dd3c7e..590184ead1 100644 --- a/utils.mk +++ b/utils.mk @@ -184,6 +184,13 @@ standard_rust_check: cargo clippy --all-targets --all-features --release \ -- \ -D warnings + cargo check + @DIFF=$$(git diff HEAD); \ + if [ -n "$$DIFF" ]; then \ + echo "ERROR: cargo check resulted in uncommited changes"; \ + echo "$$DIFF"; \ + exit 1; \ + fi # Install a file (full version). #