1
2
3
4
|
config\create_config.go:5:2: github.com/cihub/seelog@v0.0.0-20170130134532-f561c5e57575: Get "https://proxy.golang.org/github.com/cihub/seelog/@v/v0.0.0-20170130134532-f561c5e57575.zip": dial tcp 172.217.163.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.
utils\calc_stack.go:4:2: github.com/pingcap/tidb/pkg/parser@v0.0.0-20231124053542-069631e2ecfe: Get "https://proxy.golang.org/github.com/pingcap/tidb/pkg/parser/@v/v0.0.0-20231124053542-069631e2ecfe.zip": dial tcp 172.217.163.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.
config\db_config.go:7:2: github.com/daiguadaidai/peep@v0.0.0-20190219071421-bba423eced85: Get "https://proxy.golang.org/github.com/daiguadaidai/peep/@v/v0.0.0-20190219071421-bba423eced85.zip": dial tcp 172.217.163.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.
config\db_config.go:8:2: github.com/go-mysql-org/go-mysql@v1.7.0: Get "https://proxy.golang.org/github.com/go-mysql-org/go-mysql/@v/v1.7.0.zip": dial tcp 172.217.163.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.
|
这主要是国内访问的问题,我没有科学上网工具,所以也只能借助国内可用的其他方法。
在搜了不少方法,并且尝试了多次以后,以下方法有效:
1
2
|
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
|