mirror of https://github.com/status-im/consul.git
Update build-support/scripts/proto-gen.sh
This commit is contained in:
parent
0fb088aac3
commit
24198cfc7f
|
@ -17,15 +17,14 @@ cat <<-EOF
|
||||||
Usage: ${SCRIPT_NAME} [<options ...>] <proto filepath>
|
Usage: ${SCRIPT_NAME} [<options ...>] <proto filepath>
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
This script will build generate the Go files from protobuf files. In addition to
|
Generate the Go files from protobuf definitions. In addition to
|
||||||
just running the correct protoc generator it will also fixup build tags in the
|
running the protoc generator it will also fixup build tags in the
|
||||||
generated code.
|
generated code.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--import-replace Replace imports of google types with those from the gogo/protobuf repo.
|
--import-replace Replace imports of google types with those from the gogo/protobuf repo.
|
||||||
--grpc Enable the gRPC plugin
|
--grpc Enable the gRPC plugin
|
||||||
|
-h | --help Print this help text.
|
||||||
-h | --help Print this help text.
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +73,7 @@ function main {
|
||||||
local gogo_proto_imp_replace="Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types"
|
local gogo_proto_imp_replace="Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types"
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types"
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types"
|
||||||
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types"
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/api/annotations.proto=github.com/gogo/googleapis/google/api"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/api/annotations.proto=github.com/gogo/googleapis/google/api"
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue