Skip to content

cargo publish --workspace should fail early if you don't have permission to publish everything #16181

@jneem

Description

@jneem

Problem

It's possible to have crates.io ownership on some -- but not all -- crates in a workspace. In that case, cargo publish --workspace might publish a few crates before trying to publish one that isn't allowed and failing.

Proposed Solution

cargo publish --workspace should check that it has publish permissions on all the crates that it wants to publish before it publishes any of them. Alternatively, it should be able to publish them all at once, atomically.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-interacts-with-crates.ioArea: interaction with registriesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-publishS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions