From 0845a71abad8aee67f858f491c715e4a24106865 Mon Sep 17 00:00:00 2001 From: Nex Date: Tue, 22 Sep 2020 16:27:50 +0800 Subject: [PATCH] fix: gen scripts --- grpc/scripts/gen.bat | 2 +- grpc/scripts/gen.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grpc/scripts/gen.bat b/grpc/scripts/gen.bat index bf9046f..1c2e3ec 100644 --- a/grpc/scripts/gen.bat +++ b/grpc/scripts/gen.bat @@ -18,7 +18,7 @@ for %%A in (%*) do ( set out=%gen%\go if not exist !out! mkdir !out! echo Generating Go code - !exec! --go-grpc_out=!out! --govalidators_out=!out! %pbs% + !exec! --go_out=!out! --go-grpc_out=!out! --govalidators_out=!out! %pbs% ) if "%%A"=="gohttp" ( set plugin=protoc-gen-grpc-gateway diff --git a/grpc/scripts/gen.sh b/grpc/scripts/gen.sh index 9925e19..46e6954 100755 --- a/grpc/scripts/gen.sh +++ b/grpc/scripts/gen.sh @@ -46,7 +46,7 @@ do mkdir -p $out fi echo "Generating Go code" - $exec --go-grpc_out=$out --govalidators_out=$out $pb_files $async_tag + $exec --go_out=$out --go-grpc_out=$out --govalidators_out=$out $pb_files $async_tag fi if [ $aug == "gohttp" ]; then plugin=protoc-gen-grpc-gateway