Skip to content

Commit cf1db12

Browse files
Pin protoc version to v1.3.0 (#1174)
Signed-off-by: Rashmi Gottipati <[email protected]>
1 parent e5dca1a commit cf1db12

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ $(LOCALBIN):
148148
## Tool Binaries
149149
GORELEASER ?= $(LOCALBIN)/goreleaser
150150
GINKGO ?= $(LOCALBIN)/ginkgo
151+
PROTOC_VERSION ?= $(LOCALBIN)/protoc-gen-go-grpc
151152

152153
## Tool Versions
153154
GORELEASER_VERSION ?= v1.8.3
154155
GINKGO_VERSION ?= v2.1.3
156+
PROTOC_VERSION ?= v1.3.0
155157

156158
.PHONY: goreleaser
157159
goreleaser: $(GORELEASER) ## Download goreleaser locally if necessary.
@@ -162,3 +164,8 @@ $(GORELEASER): $(LOCALBIN)
162164
ginkgo: $(GINKGO) ## Download ginkgo locally if necessary.
163165
$(GINKGO): $(LOCALBIN)
164166
GOBIN=$(LOCALBIN) go install $(GO_INSTALL_OPTS) github.com/onsi/ginkgo/v2/ginkgo@$(GINKGO_VERSION)
167+
168+
.PHONY: protoc-gen-go-grpc
169+
protoc-gen-go-grpc: $(protoc-gen-go-grpc) ## Download protoc-gen-go-grpc locally if necessary.
170+
$(protoc-gen-go-grpc): $(LOCALBIN)
171+
GOBIN=$(LOCALBIN) go install $(GO_INSTALL_OPTS) google.golang.org/grpc/cmd/protoc-gen-go-grpc@$(PROTOC_VERSION)

0 commit comments

Comments
 (0)