protoc --gogofaster_out=. image.proto
I get this error message
/home/abc/src/github.com/gogo/protobuf/gogoproto/gogo.proto: File not found.
image.proto: Import "/home/abc/src/github.com/gogo/protobuf/gogoproto/gogo.proto" was not found or had errors.
The file is definitely there. I can reach it from the reported path in the error.
My proto file looks like this:
package image;
import "/home/abc/src/github.com/gogo/protobuf/gogoproto/gogo.proto";
message Frame {
required bool fragment = 1;
required int32 fragmentID = 2;
required bool lastFragment = 3;
required bytes data = 4;
}
I have a Makefile
in the dir where the proto file is. Looks like this:
regenerate:
--proto_path=../../github.com/gogo/protobuf/gogoproto:../../github.com/gogo/protobuf/protobuf/google/protobuf:. --gogofaster_out=. *.proto
What can I do to resolve the path error?