From 1ef4bda43301ef1de059346a9c37a0876eb635f3 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Mon, 27 Jun 2022 22:11:16 +0300 Subject: [PATCH] Downgrade MinGW to version 10.2.0 There is currently an issue in the race detector in Go on Windows when used with a newer version of GCC. The issue was first reported here: https://github.com/golang/go/issues/46099 Fixes #7104 Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2418a4c44..189afaf22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -281,6 +281,14 @@ jobs: - run: script/setup/install-dev-tools + # There is currently an issue in the race detector in Go on Windows when + # used with a newer version of GCC. The issue was first reported here: + # https://github.com/golang/go/issues/46099 + - name: Downgrade MinGW + shell: bash + run: | + choco install mingw --version 10.2.0 --allow-downgrade + - name: Binaries env: CGO_ENABLED: 1