Skip to content

Commit 14840fd

Browse files
authored
ci: fix Windows curl llvm download failure (#2089)
For a few days now, the Windows CI variants have been almost always failing due to unexplained inability to curl download the pre-built LLVM that we stashed on a Google drive, which has worked flawlessly for over a year. J.F. Panisset suggested: > Could be a wild goose chase, but a direction to look in with your > Windows / curl issue would be SSL certificate verification. Windows > uses some kind of magic process to update its store of recognized CA > root certs, but since a Windows runner is a "fresh" Windows VM every > time, it could be that it is missing an updated cert required to > verify the https URL you are downloading from (assuming that's using > a cert anchored to a root CA not in that base WIndows image). I've > seen issues like that on Windows systems with limited Internet > access. If you try curl --insecure to (temporarily) bypass > certificate verification, are you able to download what you need? And sure enough, adding --insecure clears it right up. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 3985c0f commit 14840fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build-scripts/gh-win-installdeps.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ elif [[ "$LLVM_GOOGLE_DRIVE_ID" != "" ]] then
127127
pushd $HOME/llvm
128128
#LLVM_GOOGLE_DRIVE_ID="1uy7PNVlTQ-H56unXGOS6siRWtNcdS1J7"
129129
LLVM_ZIP_FILENAME=llvm-build.zip
130-
time curl -L "https://drive.usercontent.google.com/download?id=${LLVM_GOOGLE_DRIVE_ID}&confirm=xxx" -o $LLVM_ZIP_FILENAME
130+
time curl --insecure -L "https://drive.usercontent.google.com/download?id=${LLVM_GOOGLE_DRIVE_ID}&confirm=xxx" -o $LLVM_ZIP_FILENAME
131131
unzip $LLVM_ZIP_FILENAME > /dev/null
132132
export LLVM_ROOT=$PWD/llvm-build
133133
popd

0 commit comments

Comments
 (0)