码迷,mamicode.com
首页 > Web开发 > 详细

go mod下载依赖错误Get https://sum.golang.org

时间:2020-01-27 13:51:13      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:ebs   http   执行   nbsp   websocket   ril   git   lang   time   

 

 

verifying github.com/gorilla/websocket@v1.4.1/go.mod: github.com/gorilla/websocket@v1.4.1/go.mod: Get https://sum.golang.org/lookup/gi
thub.com/gorilla/websocket@v1.4.1: dial tcp 172.217.24.17: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.13之后设置了默认的GOSUMDB=sum.golang.org,由于墙的原因无法访问,执行以下命令关闭即可:

go env -w GOSUMDB=off

go mod下载依赖错误Get https://sum.golang.org

标签:ebs   http   执行   nbsp   websocket   ril   git   lang   time   

原文地址:https://www.cnblogs.com/dfsxh/p/12235687.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!