-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error: src/examples/README.md/Cargo.toml: Not a directory #29
Comments
Looks like |
A few weird observations:
Sounds like we should canonicalize for this, unfortunately. |
FYI, I did the quick and dirty |
@parasyte thanks, but notice that a PR has already been opened and linked above. Would you mind testing it out instead? |
I saw, and it looks good. I will test it when I get around to Android stuff again. Thanks! |
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: