Skip to content
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.toml members can not use * #8861

Closed
SKTT1Ryze opened this issue Nov 15, 2020 · 3 comments
Closed

Cargo.toml members can not use * #8861

SKTT1Ryze opened this issue Nov 15, 2020 · 3 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@SKTT1Ryze
Copy link

If I write Cargo.toml like this:

workspace
members = [
    "project_1",
    "project_2",
    "project_3/*",

And the project_3 have some directories and files, then the cargo build will be error.
Sometimes I wish to place readme.md in project_3 directory, at the sometime I want to write Cargo.toml with "*", then this problem occurs.
I think the cargo should know the readme.md is a file instead of directory, and the error above shouldn't occur.
Wish rust to be better.

@SKTT1Ryze SKTT1Ryze added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Nov 15, 2020
@ehuss
Copy link
Contributor

ehuss commented Nov 15, 2020

Which version of Cargo are you using? This should have been fixed in 1.47 via #8511.

@SKTT1Ryze
Copy link
Author

SKTT1Ryze commented Nov 15, 2020 via email

@SKTT1Ryze
Copy link
Author

Yes, this has been fixed in 1.47.
I use cargo 1.45.0-nightly (9fcb8c1 2020-05-25).
Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants