goland下载etcd/clientv3包报错

报错内容如下:

错误信息:
go get go.etcd.io/etcd/clientv3: module go.etcd.io/etcd/clientv3: Get "https://proxy.golang.org/go.etcd.io/etcd/clientv3/@v/list": dial tcp 142.250.199.81: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.

proxy.golang.org为国外网站,直接访问会被防火墙屏蔽,可以改成如下的国内代理地址
解决方法:

go env -w GOPROXY=https://goproxy.cn
posted @ 2021-03-01 17:45  天下医者不自医  阅读(162)  评论(0编辑  收藏  举报