Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Go 1.21 breaks 'go get' downloads
@ 2023-08-26  7:27 adrian-bl
  2023-08-26 13:52 ` Go 1.21 breaks 'go get' and 'go mod tidy' downloads sgn
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: adrian-bl @ 2023-08-26  7:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

New issue by adrian-bl on void-packages repository

https://github.com/void-linux/void-packages/issues/45775

Description:
### Is this a new report?

Yes

### System Info

Void 6.3.13_1 x86_64 GenuineIntel uptodate rrFFFFF

### Package(s) Affected

go-1.21.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

Since go-1.21.0_1, downloading modules via `go mod tidy` fails with:

```
        github.com/google/go-cmp/cmp: GOPROXY list is not the empty string, but contains no entries
```

This seems to be due to both `GOPROXY` and `GOSUMDB` being set to an empty value (due to `/usr/lib/go/go.env` not existing?)

```
$ go env|grep -E 'PROXY|SUM'
GONOPROXY=''
GONOSUMDB=''
GOPROXY=''
GOSUMDB=''
```


Upstream-go contains the following go.env file:
https://github.com/golang/go/blob/master/go.env

and setting the same values (either by `export ..` or `go env -w ...`) fixes the issue.

### Expected behaviour

go get and go mod tidy being able to download modules

### Actual behaviour

Fails due to empty GOPROXY setting

### Steps to reproduce

* Upgrade to go1.21
* cd $project
* rm go.*
* go mod init
* go mod tidy # <- fails

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-26 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2023-08-26 19:15 ` [ISSUE] [CLOSED] " Duncaen

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).