Hello, I am trying to compile a proto file. I used this script on the command line: protoc --elixir_out=. --plugin=./googleapis:. rpc.proto and got the following error:
google/api/annotations.proto: File not found.
rpc.proto: Import "google/api/annotations.proto" was not found or had errors.
The annotations.proto is part of the googleapis repo … many projects just copy the .proto files they need/want into their tree, and you can as well. You can also pop the googleapis files into your local fs so they can be used many all your projects, e.g. under /usr/local/google or wherever your install of protobuf looks by default (or use a -I directive in your protoc command line that points to where they are).
Some python and go projects “just work” because they are part of those “many projects” which include a local copy of those proto defs in their packages directly.