From bedc32bb14e3fe9251f0a604341ec8e07f4f4031 Mon Sep 17 00:00:00 2001 From: Laura Loghin Date: Wed, 7 Oct 2020 14:27:19 +0300 Subject: [PATCH] Add --workspace flag to cargo check too Without this flag, it looks like not all workspace files are checked. You can test this by adding for example an unused import (`use std::clone;`) in https://github.com/rust-vmm/vmm-reference/pull/11, file src/vmm/tests/integration_tests.rs. cargo check will fail only if we pass `--workspace` flag too. For clippy, this flag doesn't seem to have an obvious effect, this should be further investigated in #21. Signed-off-by: Laura Loghin --- .buildkite/pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 3f3df57..f673284 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -136,7 +136,7 @@ steps: - label: "check-warnings-x86" commands: - - RUSTFLAGS="-D warnings" cargo check --all-targets --all-features + - RUSTFLAGS="-D warnings" cargo check --all-targets --all-features --workspace retry: automatic: false agents: @@ -150,7 +150,7 @@ steps: - label: "check-warnings-arm" command: - - RUSTFLAGS="-D warnings" cargo check --all-targets --all-features + - RUSTFLAGS="-D warnings" cargo check --all-targets --all-features --workspace retry: automatic: false agents: