From 1784060baf2da5d91ec68c1587917fd4186c65e3 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 26 Mar 2019 11:07:20 -0700 Subject: [PATCH] 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. --- cranelift/publish-all.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cranelift/publish-all.sh b/cranelift/publish-all.sh index 5e080a4b4c..7792f1e9f8 100755 --- a/cranelift/publish-all.sh +++ b/cranelift/publish-all.sh @@ -44,4 +44,8 @@ for crate in \ faerie umbrella simplejit do 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