-
Notifications
You must be signed in to change notification settings - Fork 114
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-release doesn't prevent publishing a package when it has unpublished registry dependencies #624
Comments
|
That's disappointing. I'd expect it to be smarter than |
Actually, that is why I hadn't closed this yet. We should check all registry dependencies of the item we are publishing and ensure they are published as well. Unsure whether this should be a warning, error, or that we implicitly publish them. I lean towards error. A warning is good if there could be a valid reason for someone not doing it but this will always fail. If we implicitly publish, the user might not have prepared that package for publishing and we could be doing something unexpected. An error gives the user the ability to choose whether it is right or not. We still have |
One thing I'll add is that we have the following warning
This is generic and doesn't deal with dependencies. While useful to help users identify crates they might have meant to also include, relying solely on this warning to resolve this issue means the user has to mentally track the dependency tree. |
warnings that made it try to publish kube by itself without other changes see crate-ci/cargo-release#624 Signed-off-by: clux <[email protected]>
If I run
cargo release
in the root of: https://github.com/kornelski/cavif-rs commit b2f707ce08bf758048cb967998df92d8dd3d2c7chttps://github.com/kornelski/cavif-rs/tree/b2f707ce08bf758048cb967998df92d8dd3d2c7c/
it chooses not to publish workspace's leaf dependency first (ravif), and then the root crate fails validation (cavif), because its dependency isn't published yet.
I don't see why
cargo-release
thinks the dependency is "disabled by user".Using cargo-release 0.24.0 and rustc 1.65
The text was updated successfully, but these errors were encountered: