From e2b612ac3bc3bf0ed3c0720bf1a26f9367eafdf4 Mon Sep 17 00:00:00 2001 From: Carsten Dietrich <3203968+carstendietrich@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:19:54 +0200 Subject: [PATCH] chore: bump minimum Go version to 1.22 (#98) --- .github/workflows/main.yml | 2 +- .golangci.yml | 4 ++-- frontend_test.go | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b913ca9..29afe77 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.21', '1.*' ] + go: [ '1.22', '1.*' ] name: Tests steps: - uses: actions/checkout@v4 diff --git a/.golangci.yml b/.golangci.yml index 6e31c30..1f3f61c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -20,13 +20,13 @@ linters: - bodyclose - containedctx - contextcheck + - copyloopvar - cyclop - durationcheck - errcheck - errname - errorlint - exhaustive - - exportloopref - forbidigo - forcetypeassert - gocognit @@ -77,7 +77,7 @@ issues: - containedctx - forcetypeassert - goconst - - goerr113 + - err113 - varnamelen - wrapcheck diff --git a/frontend_test.go b/frontend_test.go index ef8366c..6b23ce7 100644 --- a/frontend_test.go +++ b/frontend_test.go @@ -115,7 +115,6 @@ func TestFrontend_Get(t *testing.T) { } for _, test := range tests { - test := test t.Run(test.name, func(t *testing.T) { t.Parallel()