Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cargo publish --dry-run - missing validation e.g. number of keywords #8731

Closed
2ndTaleStudio opened this issue Sep 25, 2020 · 1 comment
Closed
Labels
C-bug Category: bug

Comments

@2ndTaleStudio
Copy link

Problem
When running cargo publish --dry-run several validations does not seem to be executed. One example is the usage of too many keywords. While cargo publish --dry-run succeeds with e.g. 9 keywords the actual publishing will fail with the message that too many keywords have been passed.

Steps

  1. create a project (eg. cargo new)
  2. adjust the keywords in Crago.toml to contain 6 or more entries
  3. run cargo publish --dry-run - it will not complain

Possible Solution(s)
crates.io may provide a proper validation endpoint to also run the verifications on the server when running --dry-run without actually publishing the crate

Notes

Output of cargo version:

cargo 1.47.0-nightly (aa68721 2020-07-23)

@2ndTaleStudio 2ndTaleStudio added the C-bug Category: bug label Sep 25, 2020
@ehuss
Copy link
Contributor

ehuss commented Sep 25, 2020

Thanks for the report! I think this is a duplicate of #4377, #4300, and #2098, so closing in favor of those.

@ehuss ehuss closed this as completed Sep 25, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants