From 793c01f7bb1f87d8c1481f805d977630180ff881 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 20 Sep 2018 16:51:30 -0700 Subject: [PATCH] rename plugin to go_gapic so that we call protoc with --go_gapic_out and be consistent with other languages. --- .../main.go | 0 test.sh | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename cmd/{protoc-gen-gogapic => protoc-gen-go_gapic}/main.go (100%) diff --git a/cmd/protoc-gen-gogapic/main.go b/cmd/protoc-gen-go_gapic/main.go similarity index 100% rename from cmd/protoc-gen-gogapic/main.go rename to cmd/protoc-gen-go_gapic/main.go diff --git a/test.sh b/test.sh index 6216d9cf946..e424ad17236 100755 --- a/test.sh +++ b/test.sh @@ -39,10 +39,10 @@ OUT=${OUT:-testdata/out} mkdir -p "$OUT" generate() { - protoc --gogapic_out "$OUT" -I "$COMMON_PROTO" -I "$GOOGLEAPIS" $* + protoc --go_gapic_out "$OUT" -I "$COMMON_PROTO" -I "$GOOGLEAPIS" $* } -generate --gogapic_opt 'cloud.google.com/go/vision/apiv1;vision' $GOOGLEAPIS/google/cloud/vision/v1/*.proto -generate --gogapic_opt 'cloud.google.com/go/speech/apiv1;speech' $GOOGLEAPIS/google/cloud/speech/v1/*.proto -generate --gogapic_opt 'cloud.google.com/go/pubsub/apiv1;pubsub' $GOOGLEAPIS/google/pubsub/v1/*.proto -generate --gogapic_opt 'cloud.google.com/go/logging/apiv2;logging' $GOOGLEAPIS/google/logging/v2/*.proto +generate --go_gapic_opt 'cloud.google.com/go/vision/apiv1;vision' $GOOGLEAPIS/google/cloud/vision/v1/*.proto +generate --go_gapic_opt 'cloud.google.com/go/speech/apiv1;speech' $GOOGLEAPIS/google/cloud/speech/v1/*.proto +generate --go_gapic_opt 'cloud.google.com/go/pubsub/apiv1;pubsub' $GOOGLEAPIS/google/pubsub/v1/*.proto +generate --go_gapic_opt 'cloud.google.com/go/logging/apiv2;logging' $GOOGLEAPIS/google/logging/v2/*.proto