-
Notifications
You must be signed in to change notification settings - Fork 114
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 release publish --dry-run --workspace
fails due to unpublished workspace dependencies
#691
Comments
If we detect you are publishing multiple packages, we'll give a working but degraded experience by calling You can pass In dry-run mode, we could probably add a check for all dependencies to see if they are published and automatically add |
Also having this issue. Have a main crate
don't quite understand local dependency versioning but would be good if this could be fixed or add a |
The most we can do for this
|
Is it possible to use the local dependencies instead? (Or if it’s not a dry run, publish in dependency order if there are no cycles?) |
Currently, there is no way to publish a package, even with dry-run, without all of the other packages published, even if done in dependency order. If you do |
We're having some trouble doing a dry run of publishing our crates in a workspace.
When we actually publish to crates.io, everything works fine. But we can't test publishing before a release, because we get missing dependency errors during the dry run.
We have a circular
path
dev-dependency fromtower-batch-control
tozebra-consensus
, but removing it usingcargo hack --remove-dev-dependencies
does not fix the issue.It seems like everything that depends on
tower-batch-control
has this error. But everything outside of that dependency subtree works fine.Things we've tried
We've tried depending on a published version, which makes the dry run succeed. But then we run into bug #690, where older published versions are overwritten by
cargo release version
. (It looks like we might just have to set published versions manually.)Failure Logs
Here's the full error:
https://github.com/ZcashFoundation/zebra/actions/runs/5449357267/jobs/9913492809?pr=7128#step:7:200
But earlier in the
cargo release
dry run, that version oftower-batch-control
is "published":https://github.com/ZcashFoundation/zebra/actions/runs/5449357267/jobs/9913492809?pr=7128#step:7:161
Success Logs
Other crates that depend on unpublished versions of crates outside the failing subtree work fine:
The text was updated successfully, but these errors were encountered: