cockroachdb / cockroachdb/cockroach

mirror: conflicts between Bazel-installed and globally-installed `go` can create confusing errors

Open
#113,156 0 comments 0 reactions 0 assignees View on GitHub
A-build-system C-enhancement T-dev-inf
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.