[MacPorts] #67961: Go fails to fetch modules due to empty GOPROXY env var

MacPorts noreply at macports.org
Tue Aug 15 02:53:06 UTC 2023


#67961: Go fails to fetch modules due to empty GOPROXY env var
-------------------------+-------------------------
 Reporter:  herbygillot  |      Owner:  herbygillot
     Type:  defect       |     Status:  assigned
 Priority:  High         |  Milestone:
Component:  ports        |    Version:  2.8.1
 Keywords:               |       Port:  go
-------------------------+-------------------------
 This is observed with Go 1.21.0; Go is failing to fetch modules due to
 GOPROXY not being set.

 {{{
 $ go get golang.org/x/exp/rand
 go: golang.org/x/exp/rand: GOPROXY list is not the empty string, but
 contains no entries
 }}}

 Also covered in comments here: https://github.com/macports/macports-
 ports/pull/19815#issuecomment-1678107325

 It looks that Go now includes a `go.env` file which sets GOPROXY to
 expected defaults, along with a few other environment variables.

-- 
Ticket URL: <https://trac.macports.org/ticket/67961>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list