Skip to content

Commit bedc32b

Browse files
lauraltalxiord
authored andcommitted
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 rust-vmm/vmm-reference#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 <[email protected]>
1 parent 3ea5f2b commit bedc32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ steps:
136136

137137
- label: "check-warnings-x86"
138138
commands:
139-
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features
139+
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features --workspace
140140
retry:
141141
automatic: false
142142
agents:
@@ -150,7 +150,7 @@ steps:
150150

151151
- label: "check-warnings-arm"
152152
command:
153-
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features
153+
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features --workspace
154154
retry:
155155
automatic: false
156156
agents:

0 commit comments

Comments
 (0)