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