I am compiling an open source project written in go (openblockchain). I get the following error when I do go build. Can anyone help me with this issue
> go build
../go/src/github.com/openblockchain/obc-peer/openchain/util/utils.go:28:2: cannot find package "google/protobuf" in any of:
/usr/src/pkg/google/protobuf (from $GOROOT)
/home/vichu/go/src/google/protobuf (from $GOPATH)
I referred the question here in Stack Overflow but still no luck in solving the issue. Here is some more information about what all I have:
Protoc version is up to date.
> protoc --version
My environment variables
> echo $GOPATH
> echo $GOBIN
Protobuf has been built using the README.
AUTHORS CONTRIBUTORS jsonpb LICENSE Makefile Make.protobuf proto protoc-gen-go proto.pb.go ptypes README.md
I did the following Util.go in source code as mentioned in answer. The source code is open source and here is the link
- gp "google/protobuf"
+ gp "github.com/google/protobuf"
When I do go get, the below is the error
go get github.com/google/protobuf
can't load package: package github.com/google/protobuf: no buildable Go source files in /home/vichu/go/src/github.com/google/protobuf