bazel: use hermetic go in PATH for golicenses

This commit is contained in:
Malte Poll 2023-05-17 17:28:52 +02:00 committed by Malte Poll
parent 4bffeefd70
commit 15d51c3a3f

View File

@ -31,7 +31,11 @@ ${go} mod download
err=0
GOROOT=$(${go} env GOROOT) ${golicenses} csv ./... | {
PATH="$(dirname "${go}"):${PATH}" \
GOROOT=$(${go} env GOROOT) \
GOPATH=$(${go} env GOPATH) \
GOCACHE=$(${go} env GOCACHE) \
${golicenses} csv ./... | {
while read -r line; do
pkg=${line%%,*}