-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo fmt --all
from excluded sub-directory still checks parent workspace
#13962
Comments
cargo fmt --all
from excluded sub-directory still checks parent workspace
@weihanglo |
Here is the current implementation of Given this is a thing managed by the Rustfmt team an issue in Cargo, please find an existing issue and reach out to them for further discussions. |
@newpavlov Sorry I overlooked that, though that is also an expected behavior. For the |
Thanks for the explanations @weihanglo. So I can Given the linked |
Thanks for the understanding. Closing. |
Problem
Here I run tests on an
exclude
-d sub-directory,benches
. CI kept failing until I removed the--all
fromcargo fmt
due to issues with other workspace members, which should not be checked from here.Cargo.toml
looks like this:Therefore,
cargo test -p benches
from the repo root fails (expected).However, this succeeds:
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
The text was updated successfully, but these errors were encountered: