Skip to content

Commit f7e61e1

Browse files
committed
[dev] Set plugins=grpc when generating testdata protos.
Change-Id: I57a5edf2e9e0c4f70efc4d4fa97b79cd97925757
1 parent 025a21d commit f7e61e1

File tree

3 files changed

+361
-1
lines changed

3 files changed

+361
-1
lines changed

protoc-gen-go/golden_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestGolden(t *testing.T) {
5656
"protoc",
5757
"--plugin=protoc-gen-go="+os.Args[0],
5858
"-Itestdata",
59-
"--go_out="+workdir,
59+
"--go_out=plugins=grpc:"+workdir,
6060
)
6161
cmd.Args = append(cmd.Args, sources...)
6262
cmd.Env = append(os.Environ(), "RUN_AS_PROTOC_GEN_GO=1")

protoc-gen-go/testdata/deprecated/deprecated.pb.go

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protoc-gen-go/testdata/grpc/grpc.pb.go

Lines changed: 276 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)