Wrong workspace publication order in the presence of dev-dependencies #15412
Labels
C-bug
Category: bug
Command-publish
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Z-package-workspace
Nightly: package-workspace
Problem
cargo +nightly publish -Zpackage-workspace --workspace
ignores the dev-dependencies when computing the order in which to publish the packages of a workspace.Steps
X
has a dev-dependency on crateY
.cargo +nightly publish -Zpackage-workspace --workspace
.cargo
tries to publishX
first, but fails to do so becauseY
has not been published yet.Possible Solution(s)
A possible workaround: #1169 (comment) However, in our case we declare the dev dependency in
X
asY = { workspace = true }
. So, the workaround cannot be applied easily.Notes
Original discussion: #1169 (comment)
Version
cargo +nightly --version --verbose
:The text was updated successfully, but these errors were encountered: