Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: go mod init doesn't recognize GOPROXY #35931

Closed
yaxinlx opened this issue Dec 2, 2019 · 3 comments
Labels
Milestone

Comments

@yaxinlx
Copy link

@yaxinlx yaxinlx commented Dec 2, 2019

What version of Go are you using (go version)?

$ go version
go version go1.13.4 linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

$ git clone https://github.com/heketi/heketi.git
$ cd heketi
$ go mod init github.com/heketi/heketi
go: creating new go.mod: module github.com/heketi/heketi
go: copying requirements from glide.lock
go: converting glide.lock: stat k8s.io/apiserver@c809cf8581e1e44c6174bf5ab4415e6ee39965ca: unrecognized import path "k8s.io/apiserver" (https fetch: Get https://k8s.io/apiserver?go-get=1: dial tcp 35.201.71.162:443: connect: connection refused)
go: converting glide.lock: stat golang.org/x/text@2910a502d2bf9e43193af9d68ca516529614eed3: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: connect: connection refused)
go: converting glide.lock: stat golang.org/x/crypto@d172538b2cfce0c13cee31e647d0367aa8cd2486: unrecognized import path "golang.org/x/crypto" (https fetch: Get https://golang.org/x/crypto?go-get=1: dial tcp 216.239.37.1:443: connect: connection refused)
go: converting glide.lock: stat k8s.io/client-go@3627aeb7d4f6ade38f995d2c923e459146493c7e: unrecognized import path "k8s.io/client-go" (https fetch: Get https://k8s.io/client-go?go-get=1: dial tcp 35.201.71.162:443: connect: connection refused)
...

What did you expect to see?

Use GOPROXY to fetch modules

What did you see instead?

But not, so many fetching fail.

@cagedmantis cagedmantis added this to the Backlog milestone Dec 2, 2019
@cagedmantis

This comment has been minimized.

Copy link
Contributor

@cagedmantis cagedmantis commented Dec 2, 2019

This error happens when a custom remote import path has been used and the user can't query the domain. I was able to recreate this issue by bypassing the domain name resolution for k8s.io and golang.org via an edit to a local /etc/hosts file.
@bcmills @jayconrod

@oiooj

This comment has been minimized.

Copy link
Contributor

@oiooj oiooj commented Dec 3, 2019

Yes, now ConvertLegacyConfig not use GOPROXY, I think we need fix this.

@oiooj oiooj modified the milestones: Backlog, Go1.15 Dec 3, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Dec 4, 2019

Duplicate of #33767

@bcmills bcmills marked this as a duplicate of #33767 Dec 4, 2019
@bcmills bcmills closed this Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.