gpt4 book ai didi

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

转载 作者:数据小太阳 更新时间:2023-10-29 03:13:32 25 4
gpt4 key购买 nike

当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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com