cockroachdb / cockroachdb/cockroach
mirror: conflicts between Bazel-installed and globally-installed `go` can create confusing errors
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Here's [one](https://cockroachlabs.slack.com/archives/C019A8NANH0/p1698337565975419) example from failing to update to Go 1.21 globally when `go.mod` moved to 1.21:
```
INFO: Running command line: _bazel/bin/pkg/cmd/mirror/go/mirror_/mirror
panic: failed to run `go list -mod=readonly -m -json all`; got stdout , stderr go: G
OPROXY list is not the empty string, but contains no entries
go: GOPROXY list is not the empty string, but contains no entries
go: GOPROXY list is not the empty string, but contains no entries
go: GOPROXY list is not the empty string, but contains no entries
go: GOPROXY list is not the empty string, but contains no entries
go: GOPROXY list is not the empty string, but contains no entries
```
Jira issue: CRDB-32779
Epic CRDB-17171
Contributor guide
Assessment
This issue has not been assessed yet.