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

Publish Workspace #14347

Closed
kyledecot opened this issue Aug 3, 2024 · 1 comment
Closed

Publish Workspace #14347

kyledecot opened this issue Aug 3, 2024 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.

Comments

@kyledecot
Copy link

kyledecot commented Aug 3, 2024

Problem

When publishing a workspace based crate that has path based dependencies A -> B -> C -> D you need to run a separate cargo publish command for each dependency:

cargo publish -p d
cargo publish -p c
cargo publish -p b
cargo publish

This requires that the publish commands are ran in the correct order which becomes more difficult as the dependency graph grows.

Proposed Solution

Support publishing all local/path based crates via:

cargo publish --workspace

Notes

No response

@kyledecot kyledecot added C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage. labels Aug 3, 2024
@weihanglo
Copy link
Member

Thanks. This is a duplicate of #1169 so going to close in favor of that.

People are currently working on some prerequisite for cargo publish --workspace. See #10948 its related PR #13926 #13947.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants