Skip to content

Commit

Permalink
fix init_install
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Sep 4, 2024
1 parent fac983e commit 6fd442b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/init_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
fi

if ! command_exists yq; then
Expand Down

0 comments on commit 6fd442b

Please sign in to comment.