Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-34008

'go get' fails with "GOPROXY list is not the empty string, but contains no entries" [rhel-10]

    • golang-1.22.3-2.el10
    • 3
    • sst_pt_llvm_rust_go
    • ssg_platform_tools
    • 1
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Sprint 3, Sprint 4, Sprint 5
    • All
    • None

      Similarly to RHEL-15361, `go get` command fails on latest rhel-10 golang-1.22.2-1.el10 with the following:

      [root@prereserve-1mt-rhel-10 tmp]# go get golang.org/x/net
      go: golang.org/x/net: GOPROXY list is not the empty string, but contains no entries
      

      go env output:

      [root@prereserve-1mt-rhel-10 tmp]# go env
      GO111MODULE=''
      GOARCH='amd64'
      GOBIN=''
      GOCACHE='/root/.cache/go-build'
      GOENV='/root/.config/go/env'
      GOEXE=''
      GOEXPERIMENT=''
      GOFLAGS=''
      GOHOSTARCH='amd64'
      GOHOSTOS='linux'
      GOINSECURE=''
      GOMODCACHE='/root/go/pkg/mod'
      GONOPROXY=''
      GONOSUMDB=''
      GOOS='linux'
      GOPATH='/root/go'
      GOPRIVATE=''
      GOPROXY=''
      GOROOT='/usr/lib/golang'
      GOSUMDB=''
      GOTMPDIR=''
      GOTOOLCHAIN=''
      GOTOOLDIR='/usr/lib/golang/pkg/tool/linux_amd64'
      GOVCS=''
      GOVERSION='go1.22.2'
      GCCGO='gccgo'
      GOAMD64='v1'
      AR='ar'
      CC='gcc'
      CXX='g++'
      CGO_ENABLED='1'
      GOMOD='/root/tmp/go.mod'
      GOWORK=''
      CGO_CFLAGS='-O2 -g'
      CGO_CPPFLAGS=''
      CGO_CXXFLAGS='-O2 -g'
      CGO_FFLAGS='-O2 -g'
      CGO_LDFLAGS='-O2 -g'
      PKG_CONFIG='pkg-config'
      GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1187781368=/tmp/go-build -gno-record-gcc-switches'
      

      This is possibly related to the missing go.env mentioned in RHEL-32660 and RHEL-32658.

            asaezmor Alejandro Saez Morollon
            rhn-support-emachado Edjunior Machado
            David Benoit David Benoit
            Edjunior Machado Edjunior Machado
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: