-
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
--dry-run does not validate dependencies #5941
Comments
Triage: a But I'm wondering: as best I can tell, the decision to reject packages with wildcard dependencies is a policy decision by crates.io, not cargo. Given that cargo can work with other registries, it doesn't seem like cargo itself should be checking this. In order to implement this feature, we could imagine an extension to the |
Yea, there's a brief overview of what a new publish API should handle at rust-lang/crates-io-cargo-teams#82. Dry-run and staged publishing would all be nice things to have. |
Another perspective on this is that from cargo-release. I'd like everything validated before I've prompted the user on whether to release or not. It can be frustrating for users to get part way through to find an error, even if its recoverable (revert the release commit); its still speed bumps they have to deal with. No idea what the right answer is though. |
Added to #4377 and closing in favor of that |
Currently running
cargo publish --dry-run
succeeds if the crate has wildcard dependencies. It would be nice if--dry-run
would fail or give a warning if there are wildcard dependenciesWhen running
cargo publish
, the user then gets (correctly) prompted this error:Possibly other validations could be performed on a dry run as well
The text was updated successfully, but these errors were encountered: