From 9166499752dce603997c58353addc6c1b348881c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 16 Aug 2024 23:22:25 +0100 Subject: [PATCH] add Go 1.23.x, drop 1.21.x --- .github/workflows/test.yml | 6 +++--- README.md | 2 +- go.mod | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5eb4db9..d7da490 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.21.x, 1.22.x] + go-version: [1.22.x, 1.23.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -17,7 +17,7 @@ jobs: # Static checks from this point forward. Only run on one Go version and on # Linux, since it's the fastest platform, and the tools behave the same. - - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x' + - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x' run: diff <(echo -n) <(gofmt -s -d .) - - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x' + - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x' run: go vet ./... diff --git a/README.md b/README.md index 6db44b6..beaf1ed 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # benchinit Benchmark the initialization cost of your packages or programs. -Requires Go 1.21 or later. +Requires Go 1.22 or later. go install mvdan.cc/benchinit@latest diff --git a/go.mod b/go.mod index 9b8dcd5..c8a34d4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module mvdan.cc/benchinit -go 1.21 +go 1.22 require ( github.com/rogpeppe/go-internal v1.12.0