Skip to content

Commit faa8e90

Browse files
committed
Updated Golang version and protobuf compiler instructions in docs
Signed-off-by: VRamakrishna <[email protected]>
1 parent 00d54c4 commit faa8e90

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/docs/external/getting-started/test-network/setup-local-docker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Before starting, make sure you have the following software installed on your hos
3535
* Default method: Run the following with `sudo` if necessary. This will install both the protobuf compiler and the Go code generator plugins.
3636
```
3737
apt-get install protobuf-compiler
38-
go install google.golang.org/protobuf/cmd/protoc-gen-go
39-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
38+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
39+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
4040
```
4141
* If the above method installs an older version of `protoc` (check using `protoc --version`), say below 3.12.x, you should download pre-compiled binaries instead. (With an older version, you may see errors while attempting to launch and setup the Fabric networks).
4242
```
@@ -45,8 +45,8 @@ Before starting, make sure you have the following software installed on your hos
4545
sudo apt-get install unzip
4646
unzip protoc-3.15.6-linux-x86_64.zip -d <some-folder-path>
4747
export PATH="$PATH:<some-folder-path>/bin"
48-
go install google.golang.org/protobuf/cmd/protoc-gen-go
49-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
48+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
49+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
5050
```
5151
5252
| Notes |
@@ -162,7 +162,7 @@ For more information, refer to the associated [README](https://github.com/hyperl
162162

163163
**Troubleshooting Tips**:
164164
- If you see any errors during the launches, re-check the prerequisites (software installations and credentials). Ensure your network connection is working. As a safe bet, you can retry after cleanup: kill and remove all Docker containers and associated volumes.
165-
- If `protoc` or `protoc-gen-go` throws an error, reinstall `protoc` and `protoc-gen-go` using suggestions made in the Prerequisites section above.
165+
- If `protoc` or `protoc-gen-go` throws an error, reinstall `protoc`, `protoc-gen-go`, and `protoc-gen-go-grpc` using suggestions made in the Prerequisites section above.
166166

167167
### Fabric Relay
168168

docs/docs/external/getting-started/test-network/setup-local.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Before starting, make sure you have the following software installed on your hos
3737
* Default method: Run the following with `sudo` if necessary. This will install both the protobuf compiler and the Go code generator plugins.
3838
```
3939
apt-get install protobuf-compiler
40-
go install google.golang.org/protobuf/cmd/protoc-gen-go
41-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
40+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
41+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
4242
```
4343
* If the above method installs an older version of `protoc` (check using `protoc --version`), say below 3.12.x, you should download pre-compiled binaries instead. (With an older version, you may see errors while attempting to launch and setup the Fabric networks).
4444
```
@@ -47,8 +47,8 @@ Before starting, make sure you have the following software installed on your hos
4747
sudo apt-get install unzip
4848
unzip protoc-3.15.6-linux-x86_64.zip -d <some-folder-path>
4949
export PATH="$PATH:<some-folder-path>/bin"
50-
go install google.golang.org/protobuf/cmd/protoc-gen-go
51-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
50+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
51+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
5252
```
5353
5454
| Notes |
@@ -164,7 +164,7 @@ For more information, refer to the associated [README](https://github.com/hyperl
164164

165165
**Troubleshooting Tips**:
166166
- If you see any errors during the launches, re-check the prerequisites (software installations and credentials). Ensure your network connection is working. As a safe bet, you can retry after cleanup: kill and remove all Docker containers and associated volumes.
167-
- If `protoc` or `protoc-gen-go` throws an error, reinstall `protoc` and `protoc-gen-go` using suggestions made in the Prerequisites section above.
167+
- If `protoc` or `protoc-gen-go` throws an error, reinstall `protoc`, `protoc-gen-go`, and `protoc-gen-go-grpc` using suggestions made in the Prerequisites section above.
168168

169169
### Fabric Client (fabric-cli)
170170

0 commit comments

Comments
 (0)