关于go语言下载“https://proxy.golang.org/相关包报错问题
一、问题描述
在用windows10搭建tendermint框架时报错“go: github.com/BurntSushi/toml@v0.3.1: Get "https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod": dial tcp 172.217.27.145: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.”
大概的意思就是无法下载https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod包超时了。
二、解决方法
通过网上查找资料,了解可能是需要终端打开代理,因此执行下面两个指令就可以打开:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
成功界面:

最终还是把tendermint框架搭建成功了。
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)