-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the way to install protoc-gen-go-grpc
Signed-off-by: Wei Liu <[email protected]>
- Loading branch information
1 parent
f5028e7
commit 22b7896
Showing
1 changed file
with
4 additions
and
2 deletions.
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 |
---|---|---|
|
@@ -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 | ||
|