Skip to content

Commit

Permalink
fix(docs): update installation command (#3075)
Browse files Browse the repository at this point in the history
* fix(docs): add  protoc-gen-openapiv2 to tutorial

* fix(docs): change get to install

* Update docs/docs/tutorials/introduction.md

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

* Update docs/docs/tutorials/introduction.md

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
  • Loading branch information
Fahmadi and johanbrandhorst committed Dec 21, 2022
1 parent 492703c commit acba3f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/tutorials/introduction.md
Expand Up @@ -27,12 +27,12 @@ Before we start coding, we have to install some tools.

We will be using a Go gRPC server in the examples, so please install Go first from [https://golang.org/dl/](https://golang.org/dl/).

After installing Go, use `go get` to download the following packages:
After installing Go, use `go install` to download and build the following binaries:

```sh
$ go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
$ go get google.golang.org/protobuf/cmd/protoc-gen-go
$ go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
$ go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
```

This installs the `protoc` generator plugins we need to generate the stubs. Make sure to add `$GOPATH/bin` to your `$PATH` so that executables installed via `go get` are available on your `$PATH`.
Expand Down

0 comments on commit acba3f5

Please sign in to comment.