From fc13e44ea205bec5f7bde83151423bc57e43c7ca Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 15 Mar 2026 12:05:13 +0100 Subject: [PATCH 1/4] build: update go.mod minimum Go version to 1.25 Co-Authored-By: Claude Opus 4.6 (1M context) --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index d09dc9b..516565d 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/andygrunwald/vdf -go 1.15 +go 1.25 require github.com/stretchr/testify v1.11.1 From 6faf46f41e07c46c5fafc3355c61fd831169eea9 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 15 Mar 2026 12:05:20 +0100 Subject: [PATCH 2/4] build: update Go module dependencies Co-Authored-By: Claude Opus 4.6 (1M context) --- go.mod | 6 ++++++ go.sum | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 516565d..241ff44 100644 --- a/go.mod +++ b/go.mod @@ -3,3 +3,9 @@ module github.com/andygrunwald/vdf go 1.25 require github.com/stretchr/testify v1.11.1 + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum index 1cd876d..c4c1710 100644 --- a/go.sum +++ b/go.sum @@ -1,19 +1,10 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From ea14bf55339aa2e8af53a1a9f9a4602d4d49acd8 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 15 Mar 2026 12:05:34 +0100 Subject: [PATCH 3/4] ci: update testing workflow to Go 1.25/1.26, ubuntu-24.04, and staticcheck 2026.1 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/testing.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 602e23b..d0aa169 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -11,55 +11,64 @@ on: jobs: gofmt: - name: go fmt - runs-on: ubuntu-22.04 + name: go fmt (Go ${{ matrix.go }}) + runs-on: ubuntu-24.04 + strategy: + matrix: + go: [ '1.25', '1.26' ] steps: - uses: actions/checkout@v6 - uses: actions/setup-go@v6 with: - go-version: '1.20' + go-version: ${{ matrix.go }} - name: Run go fmt if: runner.os != 'Windows' run: diff -u <(echo -n) <(gofmt -d -s .) govet: - name: go vet - runs-on: ubuntu-22.04 + name: go vet (Go ${{ matrix.go }}) + runs-on: ubuntu-24.04 + strategy: + matrix: + go: [ '1.25', '1.26' ] steps: - uses: actions/checkout@v6 - uses: actions/setup-go@v6 with: - go-version: '1.20' + go-version: ${{ matrix.go }} - name: Run go vet run: make vet staticcheck: - name: staticcheck - runs-on: ubuntu-22.04 + name: staticcheck (Go ${{ matrix.go }}) + runs-on: ubuntu-24.04 + strategy: + matrix: + go: [ '1.25', '1.26' ] steps: - uses: actions/checkout@v6 - uses: actions/setup-go@v6 with: - go-version: '1.20' + go-version: ${{ matrix.go }} - name: Run staticcheck uses: dominikh/staticcheck-action@v1.4.1 with: - version: "2023.1.3" + version: "2026.1" install-go: false cache-key: staticcheck unittesting: name: unit testing (Go ${{ matrix.go }}) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: - go: [ '1.20', '1.19' ] + go: [ '1.25', '1.26' ] steps: - uses: actions/checkout@v6 From 78902bbb1b2d82d29b509f8ef08979f51dcc150c Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 15 Mar 2026 12:05:48 +0100 Subject: [PATCH 4/4] ci: update fuzzing workflow to Go 1.25/1.26 matrix and ubuntu-24.04 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/fuzzing-tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fuzzing-tests.yml b/.github/workflows/fuzzing-tests.yml index e536a2a..a8e15ea 100644 --- a/.github/workflows/fuzzing-tests.yml +++ b/.github/workflows/fuzzing-tests.yml @@ -8,15 +8,18 @@ on: jobs: fuzzing: - name: Fuzzing - runs-on: ubuntu-22.04 + name: Fuzzing (Go ${{ matrix.go }}) + runs-on: ubuntu-24.04 + strategy: + matrix: + go: [ '1.25', '1.26' ] steps: # Checkout this repository - uses: actions/checkout@v6 - uses: actions/setup-go@v6 with: - go-version: '1.20' + go-version: ${{ matrix.go }} # Checkout the Fuzzing seed and generated corpus - uses: actions/checkout@v6