-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
C-bugCategory: bugCategory: bugCommand-packageS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Description
Problem
cargo package --package PACKAGE_NAME
packages all workspace members if PACKAGE_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 error
Possible Solution(s)
Make cargo package
behave the same as cargo publish --dry-run
Notes
No response
Version
cargo 1.79.0-nightly (0637083df 2024-04-02)
release: 1.79.0-nightly
commit-hash: 0637083df5bbdcc951845f0d2eff6999cdb6d30a
commit-date: 2024-04-02
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/3.2.1)
ssl: OpenSSL 3.2.1 30 Jan 2024
os: EndeavourOS Rolling Release (rolling) [64-bit]
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugCommand-packageS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review