Skip to content

Commit

Permalink
ci: work around libcurl v8.11.0 problem
Browse files Browse the repository at this point in the history
With libcurl v8.11.0, `git fetch` fails (curiously only with the MSYS
version, the MINGW version seems to have no problems in Git for Windows'
CI builds).

This would cause problems e.g. in the `CI-Build` step of the PR builds
in MSYS2-packages, which by itself would prevent an upgrade of libcurl
to a working version! Catch 22.

Work around that by detecting the situation and force-downgrading in
that case.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Nov 14, 2024
1 parent 47b8964 commit d58b04a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ jobs:
- name: install pactoys (needed for `saneman`)
shell: bash
run: bash -lc "pacman -S --noconfirm pactoys"
- name: work around curl v8.11.0-1 problem
shell: bash
run: |
# `git fetch` does not work with that libcurl version. For details,
# see https://github.com/git-for-windows/MSYS2-packages/pull/199
test ! -f /var/lib/pacman/local/libcurl-8.11.0-1/desc ||
for pkg in libcurl curl
do
for suffix in '' .sig
do
curl --retry 5 -fLO \
https://wingit.blob.core.windows.net/x86-64/$pkg-8.10.1-1-x86_64.pkg.tar.xz$suffix ||
exit 1
done
pacman -U --noconfirm $pkg-8.10.1-1-x86_64.pkg.tar.xz || exit 1
done
# Sadly, this does not work because the Pacman repository's index only
# ever lists the latest package version:
# pacman -S --noconfirm libcurl=8.10.1-1 curl=8.10.1-1
- name: CI-Build
shell: bash
run: bash -l .ci/ci-build.sh
Expand Down

0 comments on commit d58b04a

Please sign in to comment.