]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA: work around Homebrew `ca-certificates` install error
authorViktor Szakats <commit@vsz.me>
Wed, 29 Jul 2026 23:46:15 +0000 (01:46 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 30 Jul 2026 00:21:09 +0000 (02:21 +0200)
Working around:
```
==> Installing libngtcp2 dependency: ca-certificates
==> Pouring ca-certificates--2026-07-16.all.bottle.1.tar.gz
Warning: The post-install step did not complete successfully
[...]
Error: Process completed with exit code 1.
```

Refs:
https://github.com/Homebrew/homebrew-core/pull/295934
https://github.com/Homebrew/brew/pull/23357

Bug: https://github.com/curl/curl/pull/22437#issuecomment-5124151490

Closes #22438

.github/workflows/codeql.yml
.github/workflows/linux.yml

index c1fb8f6b92fc49a1116026cf1faef17f93a928bc..16f30b44cca0c28610af8575612fe8400005bd1d 100644 (file)
@@ -80,6 +80,7 @@ jobs:
           sudo apt-get -o Dpkg::Use-Pty=0 install \
             libpsl-dev libbrotli-dev libidn2-dev libssh2-1-dev libssh-dev \
             libnghttp2-dev libldap-dev libkrb5-dev libgnutls28-dev libwolfssl-dev
+          /home/linuxbrew/.linuxbrew/bin/brew install ca-certificates || true
           /home/linuxbrew/.linuxbrew/bin/brew install c-ares gsasl libnghttp3 libngtcp2 mbedtls rustls-ffi
 
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
index e1add7cbe004a6e7eaf59e19ac14ffc2d8c721fb..8622caa2d0a744cfff41c579a5cd6d144d02a1e9 100644 (file)
@@ -481,6 +481,7 @@ jobs:
             ${INSTALL_PACKAGES} \
             ${MATRIX_INSTALL_PACKAGES}
           if [ -n "${INSTALL_PACKAGES_BREW}" ]; then
+            /home/linuxbrew/.linuxbrew/bin/brew install ca-certificates || true
             /home/linuxbrew/.linuxbrew/bin/brew install ${INSTALL_PACKAGES_BREW}
           fi