mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
ci: explicitly disable cgo in golangci-lint (#1822)
This commit is contained in:
parent
0eeb1d2ceb
commit
81c9c5205c
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user