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}"