]> git.lizzy.rs Git - rust.git/commitdiff
Temporarily disable submodule archive downloads.
authorEric Huss <eric@huss.org>
Thu, 23 Jun 2022 13:57:21 +0000 (06:57 -0700)
committerEric Huss <eric@huss.org>
Thu, 23 Jun 2022 17:44:36 +0000 (10:44 -0700)
src/ci/init_repo.sh

index ec45d9e8bc613eaef64e1c3791dee461c3dca480..e8c1e2b0f59aeb228a751b887363ba66a1e3b539 100755 (executable)
@@ -48,7 +48,10 @@ function fetch_github_commit_archive {
     rm $cached
 }
 
-included="src/llvm-project src/doc/book src/doc/rust-by-example"
+# Archive downloads are temporarily disabled due to sudden 504
+# gateway timeout errors.
+# included="src/llvm-project src/doc/book src/doc/rust-by-example"
+included=""
 modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
 modules=($modules)
 use_git=""
@@ -71,10 +74,10 @@ for i in ${!modules[@]}; do
 done
 retry sh -c "git submodule deinit -f $use_git && \
     git submodule sync && \
-    git submodule update -j 16 --init --recursive $use_git"
-STATUS=0
-for pid in ${bg_pids[*]}
-do
-    wait $pid || STATUS=1
-done
-exit ${STATUS}
+    git submodule update -j 16 --init --recursive --depth 1 $use_git"
+STATUS=0
+for pid in ${bg_pids[*]}
+do
+    wait $pid || STATUS=1
+done
+exit ${STATUS}