-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Functionality to glob all crates in workspace when mixed with other content #4593
Comments
Good point, @nipunn1313! I'm working on Labels: A-workspace, C-bug |
Some possible ways I brainstormed
It does feel like the members array in a virtual manifest at the root of a workspace is somewhat redundant to the directory structure. Adding a crate to a workspace involves writing a new Cargo.toml + adding that directory to a members list. We want to avoid this redundancy. What is the supported workflow which would require anything more nuanced than a full glob? |
Oh, for simple cases, you can just leave out BUT, that method has a limit that if you want to add a member from a non-children directory, then you also have to add all the children packages to the list. Supporting At the moment, though, looks like the behavior is kind of expected: If you're setting I think we need a bit more brainstorming on what |
As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it. I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect? The team would be especially grateful if such a comment included details such as:
Thank you for contributing! (The cargo team is currently evaluating the use of Stale bot, and using #6035 as the tracking issue to gather feedback.) If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable! |
For most cases (including ours), the members of a workspace are all under the workspace root, so simply leaving out workspace.members works fine as @behnam suggested, so the main concern I had is taken care of. Question is still open as to whether we want better support for |
[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. |
We added glob support originally with #3911
However, if we add to Cargo.toml
Then we get an error like this.
Here, the */ matches over aggressively to directories/files that aren't Crates. It would be nice to have a way to glob all crates. For now, we have to autogenerate the workspace Cargo.toml with a script.
The text was updated successfully, but these errors were encountered: