(14:16:19) ERROR: /home/markus/Projects/github.com/ecosia/core/heimdall/client-go/BUILD.bazel:17:1: error executing shell command: '/bin/bash -c
source <($PWD/external/go_sdk/bin/go env) &&
export PATH=$GOROOT/bin:$PWD/external/go_sdk/bin:$PATH &&
export GOPATH=$(pwd)/bazel-out/k8-fastbuild/bin...' failed (Exit 1) bash failed: error executing command
(cd /home/markus/.cache/bazel/_bazel_markus/c83dd5dc66625baf386a59b750f50a10/sandbox/linux-sandbox/1/execroot/__main__ && \
exec env - \
/bin/bash -c '
source <($PWD/external/go_sdk/bin/go env) &&
export PATH=$GOROOT/bin:$PWD/external/go_sdk/bin:$PATH &&
export GOPATH=$(pwd)/bazel-out/k8-fastbuild/bin/heimdall/client-go/mock_client_gomock_gopath &&
$(pwd)/bazel-out/host/bin/external/com_github_golang_mock/mockgen/linux_amd64_stripped/mockgen -package client -destination $(pwd)/bazel-out/k8-fastbuild/bin/heimdall/client-go/mock_client_test.go github.com/ecosia/core/ext/proto/heimdall HeimdallClient
')
Execution platform: @bazel_tools//platforms:host_platform
Use --sandbox_debug to see verbose messages from the sandbox: bash failed: error executing command
(cd /home/markus/.cache/bazel/_bazel_markus/c83dd5dc66625baf386a59b750f50a10/sandbox/linux-sandbox/1/execroot/__main__ && \
exec env - \
/bin/bash -c '
source <($PWD/external/go_sdk/bin/go env) &&
export PATH=$GOROOT/bin:$PWD/external/go_sdk/bin:$PATH &&
export GOPATH=$(pwd)/bazel-out/k8-fastbuild/bin/heimdall/client-go/mock_client_gomock_gopath &&
$(pwd)/bazel-out/host/bin/external/com_github_golang_mock/mockgen/linux_amd64_stripped/mockgen -package client -destination $(pwd)/bazel-out/k8-fastbuild/bin/heimdall/client-go/mock_client_test.go github.com/ecosia/core/ext/proto/heimdall HeimdallClient
')
Execution platform: @bazel_tools//platforms:host_platform
Use --sandbox_debug to see verbose messages from the sandbox
build cache is required, but could not be located: GOCACHE is not defined and neither $XDG_CACHE_HOME nor $HOME are defined
build cache is required, but could not be located: GOCACHE is not defined and neither $XDG_CACHE_HOME nor $HOME are defined
build cache is required, but could not be located: GOCACHE is not defined and neither $XDG_CACHE_HOME nor $HOME are defined
I am seeing:
I assume the error is probably similarly to https://github.com/bazelbuild/bazel-gazelle/issues/461 - I will take a look at fixing this.