Skip to content

proto imports #155

Answered by AnWeber
anaxaim asked this question in Q&A
Discussion options

You must be logged in to vote

I can't recreate the behavior. I have made up the following example.

  • card.http
proto < cards.proto
GRPC grpcb.in:9000/hello.HelloService/sayHello
{
  "greeting": "world"
}
  • card.proto
import "test/hello.proto";
  • test/hello.proto
syntax = "proto2";
package hello;
service HelloService {
  rpc SayHello(HelloRequest) returns (HelloResponse);
}
message HelloRequest {
  optional string greeting = 1;
}
message HelloResponse {
  required string reply = 1;
}

prototest.zip

Is the annotations.proto present in the right place? Is the relative path to it correct? Can you possibly adjust my example so that it doesn't work. Maybe you must provide includeDirs to proto import.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anaxaim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants