问题截图:

问题应该出现在这里:
go: github.com/mitchellh/mapstructure@v1.4.2: Get "https://proxy.golang.org/github.com/mitchellh/mapstructure/@v/v1.4.2.mod": dial tcp 142.251.42.241:443: i/o timeout
上网搜索得到的结论直接是扶墙
https://www.cnblogs.com/wutou/p/16000756.html

扶你妹啊扶
最后通过搜索这个IP地址,找到比较好的解决方案
参考:https://blog.csdn.net/fanjufei123456/article/details/124660294
其实就是go语言模块下载加上代理,类似国内镜像的东西吧我理解
用的这个代理 https://goproxy.cn/
$ echo "export GO111MODULE=on" >> ~/.profile
$ echo "export GOPROXY=https://goproxy.cn" >> ~/.profile
$ source ~/.profile
问题都是在特定环境下出现的
最后说一下 我的编译环境
腾讯的轻量应用服务器
Ubuntu Server 20.04 LTS 64bit
没有扶墙,也没有换源,是默认的腾讯云的源

1548

被折叠的 条评论
为什么被折叠?



