Downgrade MinGW in Windows setup scripts.

After the switch to MinGW 11.2.0 in #6888, the containerd client
integration tests were crashing with an apparent  memory allocation
error as described in golang/go#46099.

This patch reverts MinGW to 10.3.0 to bypass the issue.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
This commit is contained in:
Nashwan Azhari 2022-06-15 12:04:27 +03:00
parent fbf76c201f
commit 0b3c31dd7c

View File

@ -5,7 +5,7 @@
# lived test environment.
Set-MpPreference -DisableRealtimeMonitoring:$true
$PACKAGES= @{ mingw = "11.2.0"; git = ""; golang = "1.18.3"; make = ""; nssm = "" }
$PACKAGES= @{ mingw = "10.3.0"; git = ""; golang = "1.18.3"; make = ""; nssm = "" }
Write-Host "Downloading chocolatey package"
curl.exe -L "https://packages.chocolatey.org/chocolatey.0.10.15.nupkg" -o 'c:\choco.zip'
@ -41,6 +41,10 @@ Write-Host $env:PATH
# Prepare Log dir
mkdir c:\Logs
# Log go env for future reference:
go env > c:\Logs\go-env.txt
cat c:\Logs\go-env.txt
# Pull junit conversion tool
go install github.com/jstemmer/go-junit-report@v0.9.1