Skip to content

Commit

Permalink
Update protobuf 21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed May 28, 2022
1 parent f09cc6e commit d2d9a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Add the proto schema as git submodule

Download the latest release of protoc and protoc-gen-go

export PROTOC_VER=3.19.4
export PROTOC_VER=21.1
export GITHUB_URL=https://github.com/protocolbuffers
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
wget $GITHUB_URL/protobuf/releases/download/v$PROTOC_VER/protoc-$PROTOC_VER-linux-x86_64.zip
Expand All @@ -98,6 +98,5 @@ Edit and past the following line in the dnsmessage.proto

Generate the golang package

git submodule update --remote dnsmessage
cd dnsmessage/
../bin/protoc --proto_path=. --go_out=../ --go_opt=paths=source_relative --plugin protoc-gen-go=${GOBIN}/protoc-gen-go dnsmessage.proto
4 changes: 2 additions & 2 deletions dnsmessage.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2d9a50

Please sign in to comment.