Skip to content

Commit

Permalink
Windows: downgrade MinGW version to work around CGO issue
Browse files Browse the repository at this point in the history
see golang/go#51007
see docker#293 (comment)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Oct 24, 2022
1 parent f4f1c98 commit addfa70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dockerfiles/win.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit addfa70

Please sign in to comment.