Add a sleep command between cargo publish invocations.

Crates.io no longer synchronously updates the crate index, so sleep for
a few seconds between cargo publish invocations to give it time to
update.
This commit is contained in:
Dan Gohman
2019-03-26 11:07:20 -07:00
parent 4dcbabf355
commit 1784060baf

View File

@@ -44,4 +44,8 @@ for crate in \
faerie umbrella simplejit faerie umbrella simplejit
do do
echo cargo publish --manifest-path "cranelift-$crate/Cargo.toml" echo cargo publish --manifest-path "cranelift-$crate/Cargo.toml"
# Sleep for a few seconds to allow the server to update the index.
# https://internals.rust-lang.org/t/changes-to-how-crates-io-handles-index-updates/9608
echo sleep 3
done done