Run protoc --proto_path=src/poset/ --go_out=paths=source_relative:./src/poset src/poset/*.proto to compile the protobuffer files
Try to compile: make build
See error
Expected behavior
The generation of go code should compile.
Additional context
The problem is that Event requires a protobuffer message in another package, Peer. In order to make it compile, it's necessary to add github.com/andrecronje/lachesis/src/peers as an import and then substitute all the Peer with peers.Peer in the file event.pb.go. Because Peer it's also sent, we have a peer.proto file, but it's in the poset package.
Possible solution to try:
Move the peer.proto file to src/peers.
Run protoc --proto_path=src/poset/ --proto_path=src/peers/ --go_out=paths=source_relative:./src/poset src/poset/*.proto.
To Reproduce Steps to reproduce the behavior:
protoc --proto_path=src/poset/ --go_out=paths=source_relative:./src/poset src/poset/*.proto
to compile the protobuffer filesmake build
Expected behavior The generation of go code should compile.
Additional context The problem is that
Event
requires a protobuffer message in another package,Peer
. In order to make it compile, it's necessary to addgithub.com/andrecronje/lachesis/src/peers
as an import and then substitute all thePeer
withpeers.Peer
in the fileevent.pb.go
. BecausePeer
it's also sent, we have apeer.proto
file, but it's in theposet
package.Possible solution to try:
peer.proto
file tosrc/peers
.protoc --proto_path=src/poset/ --proto_path=src/peers/ --go_out=paths=source_relative:./src/poset src/poset/*.proto
.