报错信息

今天在使用go编译EXE文件时,出现了以下报错提示,显示无法安装。查了一些资料后主要还是因为墙的原因,指定一下代理就可以解决。

go: github.com/logrusorgru/aurora@v2.0.3+incompatible……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.

配置代理

直接指定一个代理,这样就不需要翻墙了

go env -w GOSUMDB=off
go env -w GOPROXY=https://goproxy.cn,direct

再次编译正常

正文到此结束

本文标题:go编译时connection attempt failed because the connected party did not properly respond报错解决

本文链接:https://www.hantaosec.com/3326.html

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

声明:转载请注明文章来源及链接,不带链接禁止任何转载!访问任何网络安全相关文章,则视为默认接受网络安全文章免责声明 ,请认真阅读。

喜欢我的文章吗?
别忘了点赞或赞赏,让我知道创作的路上有你陪伴。