Skip to content

Commit

Permalink
[protoc-gen-go-jsonpb] Only emit output for requested files
Browse files Browse the repository at this point in the history
As the documentation of "CodeGenerationRequest" message says, the code
generator should generate code only for the files listed in the repeated
FileToGenerate field.  Generating code for other, imported protobuf files
will result in multiple bazel targets trying to write the same files
under bazel-genfiles, which is not good! (For example, if you have a.proto
and b.proto both importing c.proto, and we want to generate .pb.jsonpb.go
files for all of them, we don't want a.proto and b.proto generating
c.pb.jsonpb.go file).
  • Loading branch information
scele committed May 14, 2018
1 parent 4de2aa7 commit 01b33a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion protoc-gen-go-jsonpb/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01b33a9

Please sign in to comment.