From 81c9c5205c4efd0399f24c726499a5112faa93c0 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Wed, 24 May 2023 16:40:15 +0200 Subject: [PATCH] ci: explicitly disable cgo in golangci-lint (#1822) --- bazel/ci/golangci_lint.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/ci/golangci_lint.sh.in b/bazel/ci/golangci_lint.sh.in index 503407147..c1893ff4a 100644 --- a/bazel/ci/golangci_lint.sh.in +++ b/bazel/ci/golangci_lint.sh.in @@ -42,7 +42,7 @@ statuscode=0 echo "Linting the following Go modules with golangci-lint:" for mod in "${modules[@]}"; do echo " ${mod}" - PATH="$(dirname "${go}"):${PATH}" GOROOT=$(${go} env GOROOT) GOPATH=$(${go} env GOPATH) GOCACHE=$(${go} env GOCACHE) ${golangcilint} run --timeout=15m "${mod}/..." || statuscode=$? + PATH="$(dirname "${go}"):${PATH}" GOROOT=$(${go} env GOROOT) GOPATH=$(${go} env GOPATH) GOCACHE=$(${go} env GOCACHE) CGO_ENABLED=0 ${golangcilint} run --timeout=15m "${mod}/..." || statuscode=$? done exit "${statuscode}"