Skip to content

Commit 8845bf1

Browse files
committed
Install specific version of protoc-gen-go before generating protobuf code
1 parent 55833fe commit 8845bf1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generateProto.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ if ! protoc --version | grep "${PB_VERSION}" >/dev/null; then
1919
export PATH="${LOCAL_DIR}/bin:$PATH"
2020
fi
2121

22+
# install a specific version of protoc-gen-go
23+
go install "google.golang.org/protobuf/...@${PB_GO_VERSION}"
24+
2225
###
2326

2427
if ! protoc --version | grep "${PB_VERSION}"; then

0 commit comments

Comments
 (0)