We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When parsing workspace.members, the result of glob matching doesn't filter directories. It will gladly append Cargo.toml to file paths like README.md:
workspace.members
Cargo.toml
README.md
cargo-subcommand/src/manifest.rs
Lines 38 to 42 in de0458c
Assumes a manifest being parsed contains:
[workspace] members = [ "examples/*", "tests/*", ]
... and these directories contain a README.md or other files as direct children. An example repo in the wild where this is done:
egui
This kind of setup causes Subcommand::new() to return an error here:
Subcommand::new()
cargo-subcommand/src/subcommand.rs
Lines 67 to 71 in de0458c
The glob result needs to be filtered to match directories. Checking manifest_dir.is_dir() is a good start, but symlinks also need to be followed.
glob
manifest_dir.is_dir()
The text was updated successfully, but these errors were encountered:
Looks like xbuild suffers the same issue too: rust-mobile/xbuild#183 / rust-mobile/xbuild#184
xbuild
Sorry, something went wrong.
No branches or pull requests
When parsing
workspace.members
, the result of glob matching doesn't filter directories. It will gladly appendCargo.toml
to file paths likeREADME.md
:cargo-subcommand/src/manifest.rs
Lines 38 to 42 in de0458c
Assumes a manifest being parsed contains:
... and these directories contain a
README.md
or other files as direct children. An example repo in the wild where this is done:egui
:This kind of setup causes
Subcommand::new()
to return an error here:cargo-subcommand/src/subcommand.rs
Lines 67 to 71 in de0458c
The
glob
result needs to be filtered to match directories. Checkingmanifest_dir.is_dir()
is a good start, but symlinks also need to be followed.The text was updated successfully, but these errors were encountered: