-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 --package
includes all packages if no match is found
#13719
Comments
It looks like this has been an issue since I think the issue is around here. The This is sort of similar to #10677 (#10536), though We might want to audit to see if there are any other commands that are only intended to work on workspace members have similar problems. |
@rustbot claim |
Problem
cargo package --package PACKAGE_NAME
packages all workspace members ifPACKAGE_NAME
matches no package.cargo publish --dry-run --package PACKAGE_NAME
throws an error instead if no package is found.Steps
git clone https://github.com/RustCrypto/traits.git
cd traits
git checkout dadaf3591795ba0820080ca45d0feaabd5303ded
cargo package --package doesnt-exist
: see how it builds all packagescargo publish --dry-run --package doesnt-exist
: see how it throws an errorPossible Solution(s)
Make
cargo package
behave the same ascargo publish --dry-run
Notes
No response
Version
The text was updated successfully, but these errors were encountered: