Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

cargo package doesn't catch errors with invalid keywords #1736

Closed
daboross opened this issue Jun 20, 2015 · 1 comment
Closed

cargo package doesn't catch errors with invalid keywords #1736

daboross opened this issue Jun 20, 2015 · 1 comment

Comments

@daboross
Copy link
Contributor

If you create a package with a keyword specified with multiple words, cargo package works fine but cargo publish errors with:

api errors: invalid upload request: ApplicationError("invalid keyword specified: key word")

I think that cargo package should probably try to catch this error.

@alexcrichton
Copy link
Member

Thanks for the report! There will inevitably be errors that cargo publish will report that cargo package cannot (e.g. a duplicate package on crates.io), so the charter of cargo package isn't so much to guarantee that cargo publish will succeed so much as just making sure the packing step itself succeeds. As a result I don't believe that this is a bug, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants