-
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
fix: strip feature dep when dep is dev dep #13518
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @epage (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Thanks for the contribution! Not sure if @linyihai has started on this, though I believe they are willing to help :) Since this PR is marked as draft, so assuming you have some questions. Feel free to ask anything here or on Zulip. |
Oh you've just updated the PR description 👍🏾 |
This comment was marked as resolved.
This comment was marked as resolved.
When this is ready for review, I'd recommend reworking the commits
|
Sure. i'll start working on commits. |
c87376e
to
460dfc5
Compare
81701ad
to
638639f
Compare
dc2f54c
to
7981af5
Compare
7981af5
to
6a22946
Compare
5f7d81e
to
a644b12
Compare
a644b12
to
119477c
Compare
119477c
to
90f4774
Compare
90f4774
to
75130eb
Compare
Thanks! @bors r+ |
☀️ Test successful - checks-actions |
Update cargo 6 commits in 7065f0ef4aa267a7455e1c478b5ccacb7baea59c..2fe739fcf16c5bf8c2064ab9d357f4a0e6c8539b 2024-03-12 13:25:15 +0000 to 2024-03-15 21:39:18 +0000 - feat: Add 'open-namespaces' feature (rust-lang/cargo#13591) - refactor: Expose source/spans to Manifest for emitting lints (rust-lang/cargo#13593) - feat(tree): Control `--charset` via auto-detecting config value (rust-lang/cargo#13337) - refactor(toml): Flatten manifest parsing (rust-lang/cargo#13589) - fix: strip feature dep when dep is dev dep (rust-lang/cargo#13518) - fix(ci): bump check error when PR is behind master (rust-lang/cargo#13581) r? ghost
What does this PR try to resolve?
This change aims to strip features dependencies without a version key to be published.
If a dev-dependency is missing the version, it will be stripped from the packaged manifest.
The features table may contains the deps in following places.
How should we test and review this PR?
See the initial commit, it shows current behavior that will cause error when feature has deps that point to dev_dep and doesn't have a version specified.
[dev-dependencies]
dev-dep = { .., features: ["feature"] }
[dev-dependencies]
dev-dep = { .., features: ["feature"] }
[dev-dependencies]
dev-dep = { .., features: ["feature"] }
[dev-dependencies] ```
Fix: #12225