File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ IFS=$'\n\t'
1212source " $( cd " $( dirname " $0 " ) " && pwd) /../shared.sh"
1313
1414if isWindows; then
15- for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do
16- choco install msys2 \
17- --params=" /InstallDir:$( ciCheckoutPath) /msys2 /NoPath" -y --no-progress \
18- && mkdir -p " $( ciCheckoutPath) /msys2/home/${USERNAME} " \
19- && ciCommandAddPath " $( ciCheckoutPath) /msys2/usr/bin" && break
20- done
15+ # Pre-followed the api/v2 URL to the CDN since the API can be a bit flakey
16+ curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg > \
17+ msys2.nupkg
18+ curl -sSL https://packages.chocolatey.org/chocolatey-core.extension.1.3.5.1.nupkg > \
19+ chocolatey-core.extension.nupkg
20+ choco install -s . msys2 \
21+ --params=" /InstallDir:$( ciCheckoutPath) /msys2 /NoPath" -y --no-progress
22+ rm msys2.nupkg chocolatey-core.extension.nupkg
23+ mkdir -p " $( ciCheckoutPath) /msys2/home/${USERNAME} "
24+ ciCommandAddPath " $( ciCheckoutPath) /msys2/usr/bin"
2125fi
You can’t perform that action at this time.
0 commit comments