Skip to content

Commit

Permalink
update protobuf to v1.30 and protoc 22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Mar 28, 2023
1 parent 2b94293 commit 92ba29d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ Download some tools
```bash
wget https://raw.githubusercontent.com/dnstap/dnstap.pb/master/dnstap.proto
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go get google.golang.org/protobuf@v1.28.1
go get google.golang.org/protobuf@v1.30.0
go mod tidy
go mod edit -go=1.20

export PROTOC_VER=21.12
export PROTOC_VER=22.2
export GITHUB_URL=https://github.com/protocolbuffers
wget $GITHUB_URL/protobuf/releases/download/v$PROTOC_VER/protoc-$PROTOC_VER-linux-x86_64.zip
unzip protoc-$PROTOC_VER-linux-x86_64.zip
Expand All @@ -118,3 +118,5 @@ Generate protobuf file
```bash
bin/protoc --proto_path=. --go_out=. --go_opt=paths=source_relative --plugin protoc-gen-go=${GOBIN}/protoc-gen-go dnstap.proto
```

Rename the dnstap.pb.go file to dnstap.go
4 changes: 2 additions & 2 deletions dnstap.go

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

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/dmachard/go-dnstap-protobuf

go 1.19
go 1.20

require google.golang.org/protobuf v1.30.0

0 comments on commit 92ba29d

Please sign in to comment.