From addfa700708e11632cff3b2e5841b1f6366cde89 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 24 Oct 2022 16:27:19 -0400 Subject: [PATCH] Windows: downgrade MinGW version to work around CGO issue see https://github.com/golang/go/issues/51007 see https://github.com/docker/containerd-packaging/pull/293#issuecomment-1289529251 Signed-off-by: Sebastiaan van Stijn --- dockerfiles/win.dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dockerfiles/win.dockerfile b/dockerfiles/win.dockerfile index d997e6d4..988b639b 100644 --- a/dockerfiles/win.dockerfile +++ b/dockerfiles/win.dockerfile @@ -18,6 +18,9 @@ ARG GO111MODULE=auto ENV GO111MODULE=$GO111MODULE \ chocolateyUseWindowsCompression=false # Install make and gcc +# We install an older version of MinGW to workaround issues in CGO; +# see https://github.com/golang/go/issues/51007 RUN iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \ choco feature disable --name showDownloadProgress; \ - choco install -y make mingw + choco install -y make; \ + choco install -y mingw --version 10.2.0 --allow-downgrade