How to “unrecognized import path error” while using go for hyperledger fabric?

0 votes

The command I am running and the error is as follows:

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

How to solve this?

Jul 27, 2018 in Blockchain by digger
• 27,620 points
226 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The solution to this problem is as follows:

#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
answered Jul 27, 2018 by slayer
• 29,040 points

Related Questions In Blockchain

0 votes
1 answer

Hyperledger Fabric: "No go in PATH" error.

The error is because the go path ...READ MORE

answered Jun 27, 2018 in Blockchain by Omkar
• 65,850 points
196 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 27,620 points
41 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.