From 92ba29dc29330ab7dcebfe1b9ddba734c7cd8bfd Mon Sep 17 00:00:00 2001 From: dmachard <5562930+dmachard@users.noreply.github.com> Date: Tue, 28 Mar 2023 21:01:10 +0200 Subject: [PATCH] update protobuf to v1.30 and protoc 22.2 --- README.md | 6 ++++-- dnstap.go | 4 ++-- go.mod | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ec9dbb4..23f5a02 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 \ No newline at end of file diff --git a/dnstap.go b/dnstap.go index 82576aa..5c0766d 100644 --- a/dnstap.go +++ b/dnstap.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.5 +// protoc-gen-go v1.30.0 +// protoc v4.22.2 // source: dnstap.proto package dnstap diff --git a/go.mod b/go.mod index 42b6e57..4e4332c 100644 --- a/go.mod +++ b/go.mod @@ -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