-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
fi | ||
|
||
if ! command_exists yq; then | ||
|