mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
bazel: use hermetic go in PATH for golangci-lint
This commit is contained in:
parent
66ff0b0b78
commit
4bffeefd70
@ -42,7 +42,7 @@ statuscode=0
|
||||
echo "Linting the following Go modules with golangci-lint:"
|
||||
for mod in "${modules[@]}"; do
|
||||
echo " ${mod}"
|
||||
GOROOT=$(${go} env GOROOT) ${golangcilint} run --timeout=15m "${mod}/..." || statuscode=$?
|
||||
PATH="$(dirname "${go}"):${PATH}" GOROOT=$(${go} env GOROOT) GOPATH=$(${go} env GOPATH) GOCACHE=$(${go} env GOCACHE) ${golangcilint} run --timeout=15m "${mod}/..." || statuscode=$?
|
||||
done
|
||||
|
||||
exit "${statuscode}"
|
||||
|
Loading…
Reference in New Issue
Block a user