docker - 错误 : hyperledger/fabric:make gotools: unrecognized import path "golang.org/x/tools/go/gcexportdata"

标签 docker go blockchain hyperledger hyperledger-fabric

当make peer时,它无法访问build/docker/gotools/bin/protoc-gen-go,所以我make gotools,但是失败了,这是日志:

mkdir -p build/bin
cd gotools && make install BINDIR=/root/gocode/bin
make[1]: Entering directory '/root/gocode/src/github.com/hyperledger/fabric/gotools'
make[2]: Entering directory '/root/gocode/src/github.com/hyperledger/fabric/gotools'
Building github.com/golang/lint/golint -> golint
package golang.org/x/tools/go/gcexportdata: unrecognized import path "golang.org/x/tools/go/gcexportdata" (https fetch: Get https://golang.org/x/tools/go/gcexportdata?go-get=1: net/http: TLS handshake timeout)
Makefile:47: recipe for target 'gotool.golint' failed

如何解决这个问题?请帮助我,谢谢!

最佳答案

尝试按照以下步骤操作:

#mkdir -p gotools/build/gopath/src/golang.org/x/

#cd gotools/build/gopath/src/golang.org/x/

#git clone https://github.com/golang/tools.git

#cd $GOPATH/src/github.com/hyperledger/fabric/

然后再制作

#make gotools

关于docker - 错误 : hyperledger/fabric:make gotools: unrecognized import path "golang.org/x/tools/go/gcexportdata",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44199052/

相关文章:

linux - 如何将文件从 dockerfile 复制到主机?

docker - 获取 docker daemon 未运行错误

go - 如何在 mux.Vars(request) 中设置一个值

regex - guid 的正则表达式

docker - Docker-machine:如何正确执行ssh命令?

windows-如何在golang中获取屏幕分辨率

node.js - 发送原始交易 Ethereum infura nodejs npm

node.js - Hyperledger - 编写 REST API 或提交交易来添加/修改 Assets ?

blockchain - super 账本结构在哪里存储区 block 链的数据库?

docker - 无法从NiFi发送到Kafka