From 0b3c31dd7c75186ad53f22ff0ccc6738412097ab Mon Sep 17 00:00:00 2001 From: Nashwan Azhari Date: Wed, 15 Jun 2022 12:04:27 +0300 Subject: [PATCH] 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 --- script/setup/prepare_env_windows.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/setup/prepare_env_windows.ps1 b/script/setup/prepare_env_windows.ps1 index d88a87c05..eddf11dec 100644 --- a/script/setup/prepare_env_windows.ps1 +++ b/script/setup/prepare_env_windows.ps1 @@ -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