Yaak Logo
Yaak
Feedback/Set gRPC proto file import root path

Set gRPC proto file import root path

Jingyu ·a year ago
ReleasedFeature RequestQuestion

If a proto file import another proto file, there is no way to set the import root path for protoc.

Mac

Comments (3)

Sign in to leave a comment.

Andy Bao

Just wanted to add that protoc supports multiple root paths, so preferably Yaak should too.

Also, until this feature is implemented, you can use this workaround instead:

Create an empty file with the .proto extension inside the root path you wish to add, then add the empty proto file to Yaak.

For example, if you want to add /foo/bar as a root, you can create an empty file at: /foo/bar/whatever.proto, then go into the Protobuf schema configuration page in Yaak, hit “Add Proto File(s)” and selectwhatever.proto.

Gregory Schier
Gregory Schier
Type to search feedback...