Temporarily disable submodule archive downloads.

This commit is contained in:
Eric Huss 2022-06-23 06:57:21 -07:00
parent 10f4ce324b
commit ebfde3cca4

View File

@ -48,7 +48,10 @@ function fetch_github_commit_archive {
rm $cached 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="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
modules=($modules) modules=($modules)
use_git="" use_git=""
@ -71,10 +74,10 @@ for i in ${!modules[@]}; do
done done
retry sh -c "git submodule deinit -f $use_git && \ retry sh -c "git submodule deinit -f $use_git && \
git submodule sync && \ git submodule sync && \
git submodule update -j 16 --init --recursive $use_git" git submodule update -j 16 --init --recursive --depth 1 $use_git"
STATUS=0 # STATUS=0
for pid in ${bg_pids[*]} # for pid in ${bg_pids[*]}
do # do
wait $pid || STATUS=1 # wait $pid || STATUS=1
done # done
exit ${STATUS} # exit ${STATUS}