-
Notifications
You must be signed in to change notification settings - Fork 2.6k
For member
under [workspace]
, Glob pattern doesn’t work for paths whose parent is exclude
d
#11362
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
Comments
member
under [workspace]
, Glob pattern doesn’t work for paths whose parent is exclude
ed member
under [workspace]
, Glob pattern doesn’t work for paths whose parent is exclude
d
I had a hard time understanding what you want. Could you provide an example project and clarify what you want to include? I also forgot the best way to show all workspace members. Maybe this?
|
@weihanglo Thank you for your comment! I have added an example repository tree |
I see. Thanks for the explanation! I believe this exclude rule is by design.
The contradictory happens between
Cargo aggressively probes I think both of the issues above cover what you try to resolve. I'd like to close this issue in favor of them. Does this sound good to you? |
I wish we could just use gitignores for members which would allow both including and excluding on a single field with a very obvious way for them to interact. |
|
[This is yet resolved] I am going to close this. Further discussion could happen in #11405. If you think this is wrong please leave a comment. We could reopen it. Edit: I think it is better to leave it open. |
Problem
I want to group my related packages managed in the same repository under a directory, for example,
libs/group-1
which you can think of as a sub-workspace but not a crate itself (there’s noCargo.toml
for it):I want to exclude only the path to it
lib/group-1
frommembers
— so Cargo won’t try to find its non-existentCargo.toml
based on the rulelibs/*
— but still include everything under the directory (libs/group-1/*
), hence:The problem is this doesn’t work, for example, for
lib-2
located atlibs/group-1/lib-2
.[1] Here I have added
libs/group-1/lib-1
to explain where the intuition comes from, because this config is still valid and does work forlib-1
.Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: