You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems protobuf tooling assumes that certain files are available to the compiler without being explicitly present in include paths, like google/protobuf/descriptor.proto.
ocaml-protoc is quite relaxed in terms of Proto options, but protoc plugin for Golang requires all options to be properly defined, and all required .proto files to be included in order to extend the options, but if I put the actual file in the include path - protobuf linters get confused about duplicate definitions.
Probably it makes sense to bundle this protobuf stdlib along with ocaml-protoc so that one could include google/protobuf/descriptor.proto without it being present explicitly on the file system. [ppx_blob] can be useful for this to lift the file contents during compilation to strings, and them some building some map out of those - at least that's what I'm going to do with my forked ocaml-protoc binary for now.
The text was updated successfully, but these errors were encountered:
It seems protobuf tooling assumes that certain files are available to the compiler without being explicitly present in include paths, like google/protobuf/descriptor.proto.
ocaml-protoc
is quite relaxed in terms of Proto options, but protoc plugin for Golang requires all options to be properly defined, and all required.proto
files to be included in order to extend the options, but if I put the actual file in the include path - protobuf linters get confused about duplicate definitions.Probably it makes sense to bundle this protobuf stdlib along with ocaml-protoc so that one could include
google/protobuf/descriptor.proto
without it being present explicitly on the file system. [ppx_blob] can be useful for this to lift the file contents during compilation to strings, and them some building some map out of those - at least that's what I'm going to do with my forked ocaml-protoc binary for now.The text was updated successfully, but these errors were encountered: