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

fix(workspace): Wait for publish to finish #183

Merged
merged 1 commit into from Nov 17, 2019
Merged

Conversation

epage
Copy link
Collaborator

@epage epage commented Nov 16, 2019

A while back, publishing a crate was made asynchronous from
cargo-publish. The problem is if we publish a crate at the bottom of
the dependency tree and then publish something that depends on it, that
can fail the test-compile because the crate is unavailable. We didn't
run into problems before because usually we did enough stuff between
publish calls that it was done by the time we hit the next crate.
Switching to batch-processing broke this so now we are explicitly
waiting until the crate version is listed as published.

Fixes #182

@epage epage requested a review from sunng87 November 16, 2019 16:52
src/cargo.rs Show resolved Hide resolved
A while back, publishing a crate was made asynchronous from
`cargo-publish`.  The problem is if we publish a crate at the bottom of
the dependency tree and then publish something that depends on it, that
can fail the test-compile because the crate is unavailable.  We didn't
run into problems before because usually we did enough stuff between
publish calls that it was done by the time we hit the next crate.
Switching to batch-processing broke this so now we are explicitly
waiting until the crate version is listed as published.

Fixes crate-ci#182
@sunng87 sunng87 merged commit f4ce39b into crate-ci:master Nov 17, 2019
@epage epage deleted the wait branch November 17, 2019 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish failure in a workspace
2 participants