Description
I'm trying to change some of the gRPC API. So I modified some .proto files and follow the steps in BUILDING.md. I installed dependencies and invoke make generate. I got following error message:
+ bin/protoc-gen-gogoctrd
+ protos
/public/development/containerd/api/events/container.proto: File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).
2021/08/02 17:29:40 protoc -I/public/development/go/src/github.com/gogo/protobuf:/public/development/go/src/github.com/gogo/googleapis:/public/development/go/src:/usr/local/include --gogoctrd_out=plugins=grpc+fieldpath,import_path=github.com/containerd/containerd/api/events,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/rpc/status.proto=github.com/gogo/googleapis/google/rpc:/public/development/go/src /public/development/containerd/api/events/container.proto /public/development/containerd/api/events/content.proto /public/development/containerd/api/events/image.proto /public/development/containerd/api/events/namespace.proto /public/development/containerd/api/events/snapshot.proto /public/development/containerd/api/events/task.proto
make: *** [Makefile:164: protos] Error 1
Steps to reproduce the issue:
- clone a fresh containerd repo
- invoke
make generate
Describe the results you received:
Describe the results you expected:
What version of containerd are you using:
Description
I'm trying to change some of the gRPC API. So I modified some .proto files and follow the steps in BUILDING.md. I installed dependencies and invoke
make generate. I got following error message:Steps to reproduce the issue:
make generateDescribe the results you received:
Describe the results you expected:
What version of containerd are you using: