Add a dry-run publish API #4329
Replies: 2 comments
-
Reserved names would also be useful to catch with this; e.g. I got hit with
trying to publish my first crate, and had to dig pretty hard to find that it was part of the DB migration here |
Beta Was this translation helpful? Give feedback.
-
If anyone has time to dig into this, now might be a good time to revisit this. We've been tracking some refactoring in #1522 and this may be easier to implement now. The goal is to make sure the desired checks are done early in the pipeline, before writing anything to the database. All database writes should occur after we return from the |
Beta Was this translation helpful? Give feedback.
-
In rust-lang/cargo#6150, @sfackler suggested that crates.io could have a dry-run publishing API endpoint, so it can enforce any requirements (like wildcard deps) in
cargo publish --dry-run
.I'd love to help out with that, if it's something worth doing.
Beta Was this translation helpful? Give feedback.
All reactions