Skip to content

Commit

Permalink
fix the way to install protoc-gen-go-grpc
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
weiliu1031 committed Jul 4, 2024
1 parent 75e184f commit 48096ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,15 @@ build-3rdparty:
generated-proto-without-cpp: download-milvus-proto
@echo "Generate proto ..."
@mkdir -p ${GOPATH}/bin
@which protoc-gen-go 1>/dev/null || (echo "Installing protoc-gen-go" && go install google.golang.org/protobuf/cmd/[email protected]) || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/[email protected])
@which protoc-gen-go 1>/dev/null || (echo "Installing protoc-gen-go" && go install google.golang.org/protobuf/cmd/[email protected])
@which protoc-gen-go-grpc 1>/dev/null || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/[email protected])
@(env bash $(PWD)/scripts/generate_proto.sh)

generated-proto: download-milvus-proto build-3rdparty
@echo "Generate proto ..."
@mkdir -p ${GOPATH}/bin
@which protoc-gen-go 1>/dev/null || (echo "Installing protoc-gen-go" && go install google.golang.org/protobuf/cmd/[email protected]) || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/[email protected])
@which protoc-gen-go 1>/dev/null || (echo "Installing protoc-gen-go" && go install google.golang.org/protobuf/cmd/[email protected])
@which protoc-gen-go-grpc 1>/dev/null || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/[email protected])
@(env bash $(PWD)/scripts/generate_proto.sh)

build-cpp: generated-proto
Expand Down

0 comments on commit 48096ec

Please sign in to comment.