Downgrade MinGW in Windows setup scripts.
After the switch to MinGW 11.2.0 in 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.
# 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
