diff --git a/scripts/init_install.sh b/scripts/init_install.sh index 369d44c894..6d91bc2735 100755 --- a/scripts/init_install.sh +++ b/scripts/init_install.sh @@ -40,6 +40,18 @@ if ! $jq_installed; then fi ############################# BUF INSTALLATION ###################################### +if ! command_exists protoc-gen-grpc-gateway; then + git clone https://github.com/grpc-ecosystem/grpc-gateway -b v1.16.0 + cd grpc-gateway + go mod download + go install \ + github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \ + github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \ + github.com/golang/protobuf/protoc-gen-go + cd .. + rm -rf grpc-gateway +fi + if ! command_exists buf; then if [[ "$OSTYPE" == "darwin"* ]]; then @@ -79,7 +91,6 @@ if ! command_exists protoc-gen-gocosmos; then make install cd .. rm -rf gogoproto - go get github.com/grpc-ecosystem/grpc-gateway/v2@v2.22.0 fi if ! command_exists yq; then