您当前的位置: 首页 >  git
  • 1浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Get “https://proxy.golang.org/github.com/“: dial tcp 216.58.200.49:443: connect: connection refused

软件工程小施同学 发布时间:2021-05-27 09:11:11 ,浏览量:1

go项目编译报错

+ go build -o xchain-cli -gcflags '' -ldflags '-X main.buildVersion=master -X main.buildDate=2021-05-27-09:03:34 -X main.commitHash=b2d6bd2' github.com/xuperchain/xuperchain/core/cmd/cli 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 216.58.200.49:443: connect: connection refused Makefile:22: recipe for target 'build-release' failed

解决方法:

换一个国内能访问的代理地址:https://goproxy.cn

执行命令:

go env -w GOPROXY=https://goproxy.cn

重新执行命令,完美通过!

 

https://www.cnblogs.com/haojile/p/13144030.html

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.1666s