-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
Closed as not planned
Copy link
Labels
A-workspacesArea: workspacesArea: workspacesC-bugCategory: bugCategory: bugCommand-fmtS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fixStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
Description
Problem
Here I run tests on an exclude
-d sub-directory, benches
. CI kept failing until I removed the --all
from cargo fmt
due to issues with other workspace members, which should not be checked from here.
Cargo.toml
looks like this:
[workspace]
members = [
"rand_jitter",
"rand_isaac",
"rand_xorshift",
"rand_xoshiro",
"rand_hc",
]
exclude = [
"benches",
]
resolver = "2"
Therefore, cargo test -p benches
from the repo root fails (expected).
However, this succeeds:
$ cd benches/
$ cargo test -p rand_hc
Compiling libc v0.2.155
This should fail since benches
is, by explicit exclusion, not part of the parent workspace.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
Metadata
Metadata
Assignees
Labels
A-workspacesArea: workspacesArea: workspacesC-bugCategory: bugCategory: bugCommand-fmtS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fixStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix