mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-11 06:05:04 +00:00
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 <steven@uk.ibm.com>
This commit is contained in:
7
utils.mk
7
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).
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user