ci: explicitly disable cgo in golangci-lint (#1822)

This commit is contained in:
Malte Poll 2023-05-24 16:40:15 +02:00 committed by GitHub
parent 0eeb1d2ceb
commit 81c9c5205c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ statuscode=0
echo "Linting the following Go modules with golangci-lint:" echo "Linting the following Go modules with golangci-lint:"
for mod in "${modules[@]}"; do for mod in "${modules[@]}"; do
echo " ${mod}" 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 done
exit "${statuscode}" exit "${statuscode}"