From f5913295d0fb1f0e3bd0446fb84f175e68a87f0b Mon Sep 17 00:00:00 2001 From: LD-RW Date: Fri, 10 Apr 2026 22:24:05 +0300 Subject: [PATCH] ci: fix AppVeyor MSYS2 keyring bootstrap failure The previous fix using pacman-key --populate hit a circular dependency: installing msys2-keyring requires verifying it, but verification requires the updated keyring. Break the cycle by temporarily setting SigLevel=Never in pacman.conf to allow the initial sync and keyring install, then restore the original SigLevel before the second update runs with proper verification. Note: Windows CI is also covered by .github/workflows/windows-ci.yml which uses msys2/setup-msys2@v2 and handles keyring setup automatically. --- .appveyor.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 3d3784cb..d5ba2b48 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -39,9 +39,10 @@ install: - set PATH=c:\msys64\%MSYSTEM%\bin;c:\msys64\usr\bin;%PATH% - if defined MSVC call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %MSVC% - if defined MSVC pacman --noconfirm -Rsc mingw-w64-%CPU%-gcc gcc - - pacman-key --init - - pacman-key --populate msys2 - - pacman -Sy --noconfirm msys2-keyring + - bash -c "sed -i 's/^SigLevel.*/SigLevel = Never/' /etc/pacman.conf" + - pacman --noconfirm -Syuu + - pacman --noconfirm -S msys2-keyring + - bash -c "sed -i 's/^SigLevel = Never/SigLevel = Required DatabaseOptional/' /etc/pacman.conf" - pacman --noconfirm -Syuu - pacman --noconfirm -S autoconf