Skip to content

Commit becb053

Browse files
committed
chore: retry to download git-lfs on transient failures
1 parent ad66a3f commit becb053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/build_scripts/install-git-lfs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ fi
3131

3232
tar -Ozxf "${MY_DIR}/git-lfs-core-gpg-keys" | gpg --import -
3333

34-
curl -fsSLo "${GIT_LFS_SHA256}" "https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/sha256sums.asc"
35-
curl -fsSLo "${GIT_LFS_ARCHIVE}" "https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_ARCHIVE}"
34+
curl -fsSL --retry 10 -o "${GIT_LFS_SHA256}" "https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/sha256sums.asc"
35+
curl -fsSL --retry 10 -o "${GIT_LFS_ARCHIVE}" "https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_ARCHIVE}"
3636

3737
gpg -d "${GIT_LFS_SHA256}" | grep "${GIT_LFS_ARCHIVE}" | sha256sum -c
3838
if [ "${AUDITWHEEL_POLICY}" != "manylinux2014" ]; then

0 commit comments

Comments
 (0)