mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-07 06:03:05 -04:00
bazel: use hermetic go in PATH for golangci-lint
This commit is contained in:
parent
66ff0b0b78
commit
4bffeefd70
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||||
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
|
done
|
||||||
|
|
||||||
exit "${statuscode}"
|
exit "${statuscode}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue