From: adrian-bl <adrian-bl@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Go 1.21 breaks 'go get' and 'go mod tidy' downloads
Date: Sat, 26 Aug 2023 18:28:11 +0200 [thread overview]
Message-ID: <20230826162811.0Xa4W1wzZXEbrSCyX7oA0CPdXwIR-E_i3W_kfrAQWks@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45775@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2284 bytes --]
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)
next prev parent reply other threads:[~2023-08-26 16:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-26 7:27 [ISSUE] Go 1.21 breaks 'go get' downloads adrian-bl
2023-08-26 13:52 ` Go 1.21 breaks 'go get' and 'go mod tidy' downloads sgn
2023-08-26 13:53 ` sgn
2023-08-26 16:28 ` adrian-bl [this message]
2023-08-26 19:15 ` [ISSUE] [CLOSED] " Duncaen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230826162811.0Xa4W1wzZXEbrSCyX7oA0CPdXwIR-E_i3W_kfrAQWks@z \
--to=adrian-bl@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).