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

'go get' fails with "GOPROXY list is not the empty string, but contains no entries"

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.4
    • golang
    • None
    • golang-1.21.3-5.el9
    • sst_pt_llvm_rust_go
    • ssg_platform_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

      `go get` command fails on latest rhel-9.4.0 golang-1.21.3-3.el9 with the following:

      [root@ampere-mtsnow-altra-02-vm-24 test]# go get -v golang.org/x/net
      go: golang.org/x/net: GOPROXY list is not the empty string, but contains no entries
      

      go env output:

      [root@ampere-mtsnow-altra-02-vm-24 test]# go env
      GO111MODULE=''
      GOARCH='arm64'
      GOBIN=''
      GOCACHE='/root/.cache/go-build'
      GOENV='/root/.config/go/env'
      GOEXE=''
      GOEXPERIMENT=''
      GOFLAGS=''
      GOHOSTARCH='arm64'
      GOHOSTOS='linux'
      GOINSECURE=''
      GOMODCACHE='/root/go/pkg/mod'
      GONOPROXY=''
      GONOSUMDB=''
      GOOS='linux'
      GOPATH='/root/go'
      GOPRIVATE=''
      GOPROXY='https://proxy.golang.org'
      GOROOT='/usr/lib/golang'
      GOSUMDB='sum.golang.org'
      GOTMPDIR=''
      GOTOOLCHAIN=''
      GOTOOLDIR='/usr/lib/golang/pkg/tool/linux_arm64'
      GOVCS=''
      GOVERSION='go1.21.3'
      GCCGO='gccgo'
      AR='ar'
      CC='gcc'
      CXX='g++'
      CGO_ENABLED='1'
      GOMOD='/root/test/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 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3049761151=/tmp/go-build -gno-record-gcc-switches'
      

      It used to work on previous rhel-9.3.0 golang-1.20.10-1.el9_3.

            dbenoit@redhat.com David Benoit
            rhn-support-emachado Edjunior Machado
            David Benoit David Benoit
            Edjunior Machado Edjunior Machado
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: