運行文件時報錯 verifying github.com/mattn/go-isatty@v0.0.10-0.20190818123653-bf9a1dea1961/go.mod: github.com/mattn/go-isatty@v0.0.10-0.20190818123653-bf9a1dea1961/go.mod: Get https://sum.golang.org/lookup/github.com/mattn/go-isatty@v0.0.10-0.20190818123653-bf9a1dea1961: dial tcp 216.58.200.49:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
verifying github.com/onsi/gomega@v1.8.1/go.mod: github.com/onsi/gomega@v1.8.1/go.mod: Get https://sum.golang.org/lookup/github.com/onsi/gomega@v1.8.1: dial tcp 216.58.200.49:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
verifying github.com/mattn/go-colorable@v0.1.3-0.20190818022642-388941e3ea99/go.mod: github.com/mattn/go-colorable@v0.1.3-0.20190818022642-388941e3ea99/go.mod: Get https://sum.golang.org/lookup/github.com/mattn/go-colorable@v0.1.3-0.20190818022642-388941e3ea99: dial tcp 216.58.200.49:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.git
在Go 1.13中,咱們能夠經過GOPROXY來控制代理github
注意 : 經過 GOPRIVATE 控制私有庫不走代理golang
這個網站是被牆了的,用於驗證包的有效性,能夠經過以下命令關閉:tcp
go env -w GOSUMDB=off網站
私有倉庫自動忽略驗證google
能夠設置 go env -w GOSUMDB="sum.golang.google.cn", 這個是專門爲國內提供的sum 驗證服務代理