What version of Go are you using (go version)?
go version go1.17 darwin/amd64
Does this issue reproduce with the latest release?
yes.
What operating system and processor architecture are you using (go env)?
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
What did you do?
- use
go mod init xxx to create a mod file.
- go get golang.org/x/sys
PS: My go env variable GOPROXY setting is direct, and my IP address is in Hong Kong. When I curl this link https://golang.org/x/sys?go-get=1, I got this response: <a href="https://golang.google.cn/x/sys?go-get=1">Found</a>.
So I curl https://golang.google.cn/x/sys?go-get=1 again, and then got the error open _content/x/sys: no such file or directory in html response.
What did you expect to see?
Dependencies can be downloaded normally
What did you see instead?
Got error message: go get: unrecognized import path "golang.org/x/sys": reading https://golang.org/x/sys?go-get=1: 404 Not Found
What version of Go are you using (
go version)?go version go1.17 darwin/amd64
Does this issue reproduce with the latest release?
yes.
What operating system and processor architecture are you using (
go env)?GOHOSTARCH="amd64"
GOHOSTOS="darwin"
What did you do?
go mod init xxxto create a mod file.PS: My go env variable
GOPROXYsetting isdirect, and my IP address is in Hong Kong. When I curl this linkhttps://golang.org/x/sys?go-get=1, I got this response:<a href="https://golang.google.cn/x/sys?go-get=1">Found</a>.So I curl
https://golang.google.cn/x/sys?go-get=1again, and then got the erroropen _content/x/sys: no such file or directoryin html response.What did you expect to see?
Dependencies can be downloaded normally
What did you see instead?
Got error message:
go get: unrecognized import path "golang.org/x/sys": reading https://golang.org/x/sys?go-get=1: 404 Not Found