Skip to content

Conversation

@motorailgun
Copy link
Contributor

Partially adresses #16231.

What does this PR try to resolve?

cargo publish will fail, if --registry is passed and that index isn't included in package.publish in Cargo.toml. However, as described in linked issue, --index bypasses that check and may cause unexpected publication of packages.

This PR implements warning that is shown when --index and package.publish is set at the same time.

@rustbot rustbot added A-interacts-with-crates.io Area: interaction with registries Command-publish S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 17, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 17, 2025

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@motorailgun motorailgun force-pushed the publish-restriction-bypass branch from d97bbc8 to d97621a Compare November 17, 2025 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-interacts-with-crates.io Area: interaction with registries Command-publish S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants