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
x/website: go-import meta tags not served for golang.org/x subrepos in china #47905
Comments
I believe they are migrating to a new domain, not sure if this helps but this is the new domain https://pkg.go.dev/golang.org/x/sys |
Thank for your apply, michaelolson. I see When I executed the And I think this is a big problem if open-source library which import the |
It may because of the IP detection in the China region, since the go-imports tag is still in the HTML response (https://golang.org/x/sys):
Are you using a VPN? |
I am not using VPN. I agree this problem may because of the IP detection.The HTML response of the url
And the HTML response of this url |
golang.org/x/sys
dependency
CL 344289 will fix the problem due to redirection. |
Now it looks working fine, I can find the Thanks a lot. |
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 xxx
to create a mod file.PS: My go env variable
GOPROXY
setting 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=1
again, and then got the erroropen _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
The text was updated successfully, but these errors were encountered: