Browse Source

fix(ci): Pin msys2 to specific version otherwise install fails.

Fixes #3233
Stefan Profanter 4 years ago
parent
commit
ffb0afb041
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/azure-devops/win/install.ps1

+ 2 - 1
tools/azure-devops/win/install.ps1

@@ -7,7 +7,8 @@ try {
 
     if ($env:CC_SHORTNAME -eq "mingw" -or $env:CC_SHORTNAME -eq "clang-mingw") {
         Write-Host -ForegroundColor Green "`n### Installing msys64 ###`n"
-        & choco install -y msys2 --no-progress --params="/InstallDir:$env:MSYS2_ROOT /NoUpdate /NoPath"
+        # Install specific version of msys2. See https://github.com/open62541/open62541/issues/3233
+        & choco install -y msys2 --version 20180531.0.0 --no-progress --params="/InstallDir:$env:MSYS2_ROOT /NoUpdate /NoPath"
 
         Write-Host -ForegroundColor Green "`n### Installing mbedtls via PacMan ###`n"
         # pacman may complain that the directory does not exist, thus create it.