Skip to content

--dry-run does not validate dependencies #5941

Closed as not planned
Closed as not planned
@VictorKoenders

Description

@VictorKoenders

Currently running cargo publish --dry-run succeeds if the crate has wildcard dependencies. It would be nice if --dry-run would fail or give a warning if there are wildcard dependencies

When running cargo publish, the user then gets (correctly) prompted this error:

error: api errors: wildcard (`*`) dependency constraints are not allowed on crates.io. See https://doc.rust-lang.org/cargo/faq.html#can-libraries-use--as-a-version-for-their-dependencies for more information

Possibly other validations could be performed on a dry run as well

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-publish

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions