New comment by adrian-bl on void-packages repository https://github.com/void-linux/void-packages/issues/45775#issuecomment-1694403195 Comment: > Which project are you talking about? Any (Go) project: This is an issue with the Go installation itself, not an individual Go project. Another way to reproduce is to attempt a simple `go install`, eg: ``` $ env | grep GO $ which go /usr/bin/go $ go version go version go1.21.0 linux/amd64 $ go install golang.org/x/tools/gopls@latest go: golang.org/x/tools/gopls@latest: GOPROXY list is not the empty string, but contains no entries ``` Note that the same works out-of-the-box if i use a go-binary from https://go.dev/dl/: ``` $ wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz $ tar -xvf go1.21.0.linux-amd64.tar.gz $ cd go $ ./bin/go version go version go1.21.0 linux/amd64 $ ./bin/go install golang.org/x/tools/gopls@latest # works ``` Difference in go-env between the 2 installations: ``` $ /usr/bin/go env > 1 $ ./bin/go env > 2 $ diff -u 1 2 --- 1 2023-08-26 18:24:43.101796155 +0200 +++ 2 2023-08-26 18:24:45.258804051 +0200 @@ -15,12 +15,12 @@ GOOS='linux' GOPATH='/home/wurstli/go' GOPRIVATE='' -GOPROXY='' -GOROOT='/usr/lib/go' -GOSUMDB='' +GOPROXY='https://proxy.golang.org,direct' +GOROOT='/tmp/go/go' +GOSUMDB='sum.golang.org' GOTMPDIR='' -GOTOOLCHAIN='' -GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64' +GOTOOLCHAIN='auto' +GOTOOLDIR='/tmp/go/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.21.0' GCCGO='gccgo' @@ -37,4 +37,4 @@ CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' -GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3057310618=/tmp/go-build -gno-record-gcc-switches' +GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1981408560=/tmp/go-build -gno-record-gcc-switches' ``` > GOPROXY list is not the empty string which is obviously not empty string, which conflicts with what you said. Can you elaborate? This is the error as-is printed out from the go toolchain: Where/how does it conflict with what i said? (For reference, the error seems to come from https://github.com/golang/go/blob/master/src/cmd/go/internal/modfetch/proxy.go#L123)