Skip to content

Want cargo publish --idempotent #13397

Open
@ijackson

Description

@ijackson

Problem

Sometimes a cargo publish run of multiple packages will fail. It is then necessary to restart it.

It would be nice if we could run the whole publication from the top, and simply skip crates that were already published. There are probably other uses.

Proposed Solution

cargo publish --idempotent

If the current version of the crate has already been published, skips the crate and exits with a success status.

(Ideally it would download the crate and check it's identical to what is proposed to publish now, but I think that crates.io does unpredictable-to-cargo mangling of the uploaded data which makes such a check infeasible.)

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-publishS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions