综合开发

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

微信扫一扫,分享到朋友圈

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

verifying github.com/gorilla/[email protected]/go.mod: github.com/gorilla/[email protected]/go.mod: Get https://sum.golang.org/lookup/gi
thub.com/gorilla/[email protected]: 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

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

applied soft computing 投稿填坑1

上一篇

移动自动化面试2

下一篇

你也可能喜欢

评论已经被关闭。

插入图片

热门栏目

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

长按储存图像,分享给朋友