Open Adol1111 opened 6 years ago
I see, when I run glide install, it calls NormalizeName method to get package name and extra data. If pacakge is special which like golang.org/x/net, it will call https://golang.org/x/net?go-get=1 to get a meta tag with the name go-import. Is it necessary?
It can be solved temporarily, by setting the mirror and modifying the local hosts configuration.
glide mirror set https://golang.org/x/net https://github.com/golang/net --vcs git
0.0.0.0 golang.org
golang.org is always unreachable in China. So I add repo like this:
when I run glide install , it wait for 30 seconds - 1 minutes, then output "[INFO] Downloading dependencies. Please wait..."
Then I remove import golang.org/x/time in glide.yaml. ( just remove in glide.yaml, not glide.lock) When I run glide install, it output immediately.
If golang.org is sub dependencies not in current glide.yaml, run glide install also very quickly