-
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 init or cargo new Cargo.toml don't respect workspace exclude
#13235
Comments
Could you please provide your Cargo version? I can not reproduce this issue. My Cargo version: ❯ cargo -Vv
cargo 1.77.0-nightly (ac6bbb332 2023-12-26)
release: 1.77.0-nightly
commit-hash: ac6bbb33293d8d424c17ecdb42af3aac25fb7295
commit-date: 2023-12-26
host: aarch64-apple-darwin
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.4.0 (sys:0.4.70+curl-8.5.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Mac OS 14.2.1 [64-bit] |
this is my cargo version:
|
It seems another issue. cargo init will add When I remove the [workspace]
resolver = "2"
exclude = ["data"]
members = ["data/a1"] |
Oh, I see. I think there are two problems:
cc: @epage Any thoughts about those behaviors? I am not sure if the first issue is by design. |
I have a I will create many crates in But when using Thanks, |
@rustbot claim |
Does that clarify things? |
This was a mistake. We don't support glob for exclude path now. |
will try, thanks. |
Problem
when I have a workspace, exclude
data
:then I create a new crate in data folder:
The Cargo.toml will be:
instead of
I have to change it manually.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: