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
Fix -module option for protoc-gen-grpc-gateway (#1754)
When option module=... is used, protoc-gen-grpc-gateway removes the module
prefix a first time, then uses protogen, which tries to remove the prefix
a second time.
Fixes#1753
Copy file name to clipboardExpand all lines: protoc-gen-grpc-gateway/main.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ var (
28
28
allowDeleteBody=flag.Bool("allow_delete_body", false, "unless set, HTTP DELETE methods may not have a body")
29
29
grpcAPIConfiguration=flag.String("grpc_api_configuration", "", "path to gRPC API Configuration in YAML format")
30
30
pathType=flag.String("paths", "", "specifies how the paths of generated files are structured")
31
-
modulePath=flag.String("module", "", "specifies a module prefix that will be stripped from the go package to determine the output directory")
31
+
_=flag.String("module", "", "specifies a module prefix that will be stripped from the go package to determine the output directory")
32
32
allowRepeatedFieldsInBody=flag.Bool("allow_repeated_fields_in_body", false, "allows to use repeated field in `body` and `response_body` field of `google.api.http` annotation option")
33
33
repeatedPathParamSeparator=flag.String("repeated_path_param_separator", "csv", "configures how repeated fields should be split. Allowed values are `csv`, `pipes`, `ssv` and `tsv`.")
34
34
allowPatchFeature=flag.Bool("allow_patch_feature", true, "determines whether to use PATCH feature involving update masks (using google.protobuf.FieldMask).")
0 commit comments