We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi : 我go get 的时候发现超时,已经持续两天了,想知道是我网络的问题还是服务端的问题?� 深圳电信。。。
$ go get github.com/google/wire/cmd/wire package golang.org/x/tools/go/ast/astutil: unrecognized import path "golang.org/x/tools/go/ast/astutil" (https fetch: Get https://golang.org/x/tools/go/ast/astutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) package golang.org/x/tools/go/packages: unrecognized import path "golang.org/x/tools/go/packages" (https fetch: Get https://golang.org/x/tools/go/packages?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) package golang.org/x/tools/go/types/typeutil: unrecognized import path "golang.org/x/tools/go/types/typeutil" (https fetch: Get https://golang.org/x/tools/go/types/typeutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
下面是我的go env,系统是macOS
$ go env GO111MODULE="auto" GOARCH="amd64" GOBIN="" GOCACHE="/Users/hyk/Library/Caches/go-build" GOENV="/Users/hyk/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/hyk/Documents/code/gopath" GOPRIVATE="" GOPROXY="https://goproxy.cn,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/c8/wwjlz_7n5kxbdfsgjxj09kx00000gn/T/go-build636543512=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOPROXY="https://goproxy.cn,direct" 我试过GOPROXY="https://goproxy.cn" 也是一样的超时
go version go1.13 darwin/amd64
The text was updated successfully, but these errors were encountered:
你好,这说明你并没有在使用 Go modules 呢,你还是走的传统 GOPATH 的路线在进行 go get,所以也就并没有 Go module proxy 一说。
你现在需要做的是把你的 GO111MODULE 环境变量设置为 on 然后再试一次。
Sorry, something went wrong.
GO111MODULE="auto" -> "on" 已解决,谢谢。似乎不能使用auto
关于 auto 你要是感兴趣的话可以去看一下我之前的这条回复:#17 (comment)
No branches or pull requests
hi :
我go get 的时候发现超时,已经持续两天了,想知道是我网络的问题还是服务端的问题?�
深圳电信。。。
下面是我的go env,系统是macOS
GOPROXY="https://goproxy.cn,direct"
我试过GOPROXY="https://goproxy.cn" 也是一样的超时
go version go1.13 darwin/amd64
The text was updated successfully, but these errors were encountered: