I'm writing a protoc plugin
protoc-gen-protobufjs that is intended as a faster version of protobufjs-cli and which is a better fit for Bazel.
I have gotten it working, and am now trying to optimize the build rules a little bit. My understanding is that when compiling a proto file, protoc needs to locate all of the file's transitive dependencies, and gives an error if it can't find one of them.
Please correct me if I'm wrong (I'm not a proto expert), but my understanding is that I just need to know about the directly imported protos so that I can tell whether a particular type reference is a message or an enum. So I am wondering if there is a way to tell protoc to not fail if it can't find an indirect import, and instead continue code generation anyway.
Thanks!
Brandon