fix: gen scripts

This commit is contained in:
Nex 2020-09-22 16:27:50 +08:00
parent bd3165747c
commit 0845a71aba
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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