From 22b7896d5f383bd1fba83f4ba661ef50ba656b13 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 3 Jul 2024 21:43:06 +0800 Subject: [PATCH] fix the way to install protoc-gen-go-grpc Signed-off-by: Wei Liu --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 91ae27ea53922..81f81afca9860 100644 --- a/Makefile +++ b/Makefile @@ -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/protoc-gen-go@v1.33.0) || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0) + @which protoc-gen-go 1>/dev/null || (echo "Installing protoc-gen-go" && go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.33.0) + @which protoc-gen-go-grpc 1>/dev/null || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0) @(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/protoc-gen-go@v1.33.0) || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0) + @which protoc-gen-go 1>/dev/null || (echo "Installing protoc-gen-go" && go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.33.0) + @which protoc-gen-go-grpc 1>/dev/null || (echo "Installing protoc-gen-go-grpc" && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0) @(env bash $(PWD)/scripts/generate_proto.sh) build-cpp: generated-proto