Skip to content

Commit 8858a43

Browse files
committed
Auto merge of rust-lang#72384 - mati865:ci-fix, r=pietroalbini
Workaround MSYS2/chocolatey issue again
2 parents f182c4a + 2d4d0db commit 8858a43

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/ci/scripts/install-msys2-packages.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ IFS=$'\n\t'
66
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
77

88
if isWindows; then
9-
# FIXME(mati865): hopefully temporary workaround for MSYS2 issue
10-
pacman -Sy --noconfirm pacman
9+
# FIXME(mati865): temporary workaround until chocolatey updates their MSYS2
10+
base_url='https://ci-mirrors.rust-lang.org/rustc/msys2-repo/msys/x86_64'
11+
curl ${base_url}/libzstd-1.4.4-2-x86_64.pkg.tar.xz -o libzstd-1.4.4-2-x86_64.pkg.tar.xz
12+
curl ${base_url}/pacman-5.2.1-6-x86_64.pkg.tar.xz -o pacman-5.2.1-6-x86_64.pkg.tar.xz
13+
curl ${base_url}/zstd-1.4.4-2-x86_64.pkg.tar.xz -o zstd-1.4.4-2-x86_64.pkg.tar.xz
14+
pacman -U --noconfirm libzstd-1.4.4-2-x86_64.pkg.tar.xz pacman-5.2.1-6-x86_64.pkg.tar.xz \
15+
zstd-1.4.4-2-x86_64.pkg.tar.xz
16+
rm libzstd-1.4.4-2-x86_64.pkg.tar.xz pacman-5.2.1-6-x86_64.pkg.tar.xz \
17+
zstd-1.4.4-2-x86_64.pkg.tar.xz
18+
pacman -Sy
1119

1220
pacman -S --noconfirm --needed base-devel ca-certificates make diffutils tar \
1321
binutils

src/ci/scripts/install-msys2.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if isWindows; then
1717
msys2.nupkg
1818
curl -sSL https://packages.chocolatey.org/chocolatey-core.extension.1.3.5.1.nupkg > \
1919
chocolatey-core.extension.nupkg
20-
# FIXME(mati865): remove `/NoUpdate` once MSYS2 issue is fixed
20+
# FIXME(mati865): remove `/NoUpdate` once chocolatey updates MSYS2
2121
choco install -s . msys2 \
2222
--params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath /NoUpdate" -y --no-progress
2323
rm msys2.nupkg chocolatey-core.extension.nupkg

0 commit comments

Comments
 (0)