From a0aa79ba1303802ab1f33bc1073bc946ab740b38 Mon Sep 17 00:00:00 2001 From: Nex Zhu <4370605+NexZhu@users.noreply.github.com> Date: Wed, 14 Jul 2021 17:33:28 +0800 Subject: [PATCH] docs: update tool versions in README.md --- grpc/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/grpc/README.md b/grpc/README.md index 22632ef..2d496d4 100644 --- a/grpc/README.md +++ b/grpc/README.md @@ -10,19 +10,20 @@ See [API documentation](..\docs\apis.md) ##### Installling tools -Download the [Protocol Buffers compiler](https://github.com/protocolbuffers/protobuf/releases) (protoc-3.15.0-*) for your platform and add `protoc` to `PATH` environment variable +Download the [Protocol Buffers compiler](https://github.com/protocolbuffers/protobuf/releases) (protoc-3.17.3-*)+ for +your platform and add `protoc` to `PATH` environment variable -For generating Go code, install `protoc-gen-go` (v1.4.3): +For generating Go code, install `protoc-gen-go` (v1.27.1+): ```bash -GIT_TAG="v1.4.3" +GIT_TAG="v1.27.1" go get -d -u google.golang.org/protobuf/cmd/protoc-gen-go git -C "$(go env GOPATH)"/src/google.golang.org/protobuf checkout $GIT_TAG go install google.golang.org/protobuf/cmd/protoc-gen-go ``` -Also install `protoc-gen-go-grpc`: +Also install `protoc-gen-go-grpc` v1.1.0+: ```bash -go get -u google.golang.org/protobuf/cmd/protoc-gen-go +go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc ``` Or install using [gobin](https://github.com/myitcv/gobin):