Skip to content

Commit 32b3e09

Browse files
committed
build-and-deploy: work around curl v8.11.0 bug
In order to deploy the bug fix for curl, we need to work around the bug that this fix addresses... because the bug breaks the deployment of all MSYS2-packages, including `libcurl`. Let's work around this by downgrading `libcurl` specifically for this deployment. See git-for-windows/MSYS2-packages#199 for more details. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f91558b commit 32b3e09

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,30 @@ jobs:
104104
architecture: ${{ env.ARCHITECTURE || 'x86_64' }}
105105
msys: ${{ env.REPO == 'MSYS2-packages' || env.PACKAGE_TO_BUILD == 'git-for-windows-keyring' }}
106106

107+
- name: work around curl v8.11.0-1 problem
108+
if: env.PACKAGE_TO_BUILD == 'curl' && env. REF == 'd58b04ae4163fe6c6c25b330bea0930d7bb627ac'
109+
shell: bash
110+
run: |
111+
# `git fetch` does not work with that libcurl version. For details,
112+
# see https://github.com/git-for-windows/MSYS2-packages/pull/199
113+
test ! -f /var/lib/pacman/local/libcurl-8.11.0-1/desc ||
114+
for pkg in libcurl curl
115+
do
116+
case "$ARCHITECTURE" in
117+
i686) url=https://wingit.blob.core.windows.net/i686/$pkg-8.10.1-1-i686.pkg.tar.xz;;
118+
x86_64) url=https://wingit.blob.core.windows.net/x86-64/$pkg-8.10.1-1-x86_64.pkg.tar.xz;;
119+
esac
120+
for suffix in '' .sig
121+
do
122+
curl --retry 5 -fLO $url$suffix || exit 1
123+
done
124+
pacman -U --noconfirm ${url##*/} || exit 1
125+
done
126+
127+
# Sadly, this does not work because the Pacman repository's index only
128+
# ever lists the latest package version:
129+
# pacman -S --noconfirm libcurl=8.10.1-1 curl=8.10.1-1
130+
107131
- name: Clone ${{ env.REPO }}
108132
shell: bash
109133
run: |

0 commit comments

Comments
 (0)