Skip to content

Commit

Permalink
Merge pull request #10 from dmachard/add_go1_23
Browse files Browse the repository at this point in the history
Add go1.23
  • Loading branch information
dmachard authored Sep 14, 2024
2 parents effe95e + ab9a545 commit 69e5725
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 179 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
go-version: ['1.19', '1.20', '1.21']
go-version: ['1.21', '1.22', '1.23']

steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<img src="https://img.shields.io/badge/go%20version-min%201.21-green" alt="Go version"/>

# go-powerdns-protobuf

PowerDNS encoder and decoder protobuf implementation in Golang
Expand Down Expand Up @@ -79,25 +81,17 @@ Add the proto schema as git submodule
git submodule add https://github.com/PowerDNS/dnsmessage
```

Export GOBIN

```bash
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
```

Update golang version

```bash
go mod edit -go=1.21
go mod edit -go=1.23
go mod tidy
```

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

```bash
export PROTOC_VER=25.2
export PROTOC_VER=28.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 @@ -114,5 +108,5 @@ Generate the golang package

```bash
cd dnsmessage/
../bin/protoc --proto_path=. --go_out=../ --go_opt=paths=source_relative --plugin protoc-gen-go=${GOBIN}/protoc-gen-go dnsmessage.proto
../bin/protoc --proto_path=. --go_out=../ --go_opt=paths=source_relative --plugin protoc-gen-go=$(go env GOPATH)/bin/protoc-gen-go dnsmessage.proto
```
2 changes: 1 addition & 1 deletion dnsmessage
Submodule dnsmessage updated 1 files
+5 −1 dnsmessage.proto
Loading

0 comments on commit 69e5725

Please sign in to comment.