Skip to content

Commit

Permalink
ci: Workaround MSYS2 update breakage
Browse files Browse the repository at this point in the history
Also kill all MSYS2 processes after the first update, and constantly
print update status.
  • Loading branch information
nirbheek committed Jun 25, 2020
1 parent e9dbe82 commit 6aabc20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ jobs:
displayName: Install MSYS2
- script: |
set PATH=%MSYS2_ROOT%\usr\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
%MSYS2_ROOT%\usr\bin\pacman --noconfirm -Syyuu
# Remove this line when https://github.com/msys2/MSYS2-packages/pull/2022 is merged
%MSYS2_ROOT%\usr\bin\pacman --noconfirm -Sy dash
echo Updating msys2
%MSYS2_ROOT%\usr\bin\pacman --noconfirm -Syuu || echo system update failed, ignoring
echo Killing all msys2 processes
taskkill /F /FI "MODULES eq msys-2.0.dll"
echo Updating msys2 (again)
%MSYS2_ROOT%\usr\bin\pacman --noconfirm -Syuu
displayName: Update MSYS2
- script: |
Expand Down

0 comments on commit 6aabc20

Please sign in to comment.