Skip to content

Request api token if necessary instead of error after building when publishing a crate #6847

@bjorn3

Description

@bjorn3

Describe the problem you are trying to solve

I forgot to login before using cargo publish. It started building the crate to verify it, but when it was finished it gave an error about not being logged in. When I logged in I had to wait for it getting built again.

Describe the solution you'd like

Either error immediately after running cargo publish without logging in first or ask for an api key.

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`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions