about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMateusz Mikuła <mati865@gmail.com>2020-05-20 16:56:05 +0200
committerMateusz Mikuła <mati865@gmail.com>2020-05-20 17:40:58 +0200
commit2d4d0dbaa72396e1781f3a3f9d6115e9e3abfdd2 (patch)
treeb71e917e56cae46ec70301a1715123f1595748ed
parent081daf609c585e70d6c2299c7869c7d4f215b844 (diff)
downloadrust-2d4d0dbaa72396e1781f3a3f9d6115e9e3abfdd2.tar.gz
rust-2d4d0dbaa72396e1781f3a3f9d6115e9e3abfdd2.zip
Workaround MSYS2/chocolatey issue again
-rwxr-xr-xsrc/ci/scripts/install-msys2-packages.sh12
-rwxr-xr-xsrc/ci/scripts/install-msys2.sh2
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ci/scripts/install-msys2-packages.sh b/src/ci/scripts/install-msys2-packages.sh
index 3b25e329a2d..8fefddd959c 100755
--- a/src/ci/scripts/install-msys2-packages.sh
+++ b/src/ci/scripts/install-msys2-packages.sh
@@ -6,8 +6,16 @@ IFS=$'\n\t'
 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
 
 if isWindows; then
-    # FIXME(mati865): hopefully temporary workaround for MSYS2 issue
-    pacman -Sy --noconfirm pacman
+    # FIXME(mati865): temporary workaround until chocolatey updates their MSYS2
+    base_url='https://ci-mirrors.rust-lang.org/rustc/msys2-repo/msys/x86_64'
+    curl ${base_url}/libzstd-1.4.4-2-x86_64.pkg.tar.xz -o libzstd-1.4.4-2-x86_64.pkg.tar.xz
+    curl ${base_url}/pacman-5.2.1-6-x86_64.pkg.tar.xz -o pacman-5.2.1-6-x86_64.pkg.tar.xz
+    curl ${base_url}/zstd-1.4.4-2-x86_64.pkg.tar.xz -o zstd-1.4.4-2-x86_64.pkg.tar.xz
+    pacman -U --noconfirm libzstd-1.4.4-2-x86_64.pkg.tar.xz pacman-5.2.1-6-x86_64.pkg.tar.xz \
+        zstd-1.4.4-2-x86_64.pkg.tar.xz
+    rm libzstd-1.4.4-2-x86_64.pkg.tar.xz pacman-5.2.1-6-x86_64.pkg.tar.xz \
+        zstd-1.4.4-2-x86_64.pkg.tar.xz
+    pacman -Sy
 
     pacman -S --noconfirm --needed base-devel ca-certificates make diffutils tar \
         binutils
diff --git a/src/ci/scripts/install-msys2.sh b/src/ci/scripts/install-msys2.sh
index 952a0d3de45..b94eb5fc6dd 100755
--- a/src/ci/scripts/install-msys2.sh
+++ b/src/ci/scripts/install-msys2.sh
@@ -17,7 +17,7 @@ if isWindows; then
         msys2.nupkg
     curl -sSL https://packages.chocolatey.org/chocolatey-core.extension.1.3.5.1.nupkg > \
         chocolatey-core.extension.nupkg
-    # FIXME(mati865): remove `/NoUpdate` once MSYS2 issue is fixed
+    # FIXME(mati865): remove `/NoUpdate` once chocolatey updates MSYS2
     choco install -s . msys2 \
         --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath /NoUpdate" -y --no-progress
     rm msys2.nupkg chocolatey-core.extension.nupkg