From f9a67ca961f7a5d0b0d7ccbbe559849fecb5b70d Mon Sep 17 00:00:00 2001 From: Nicholas Wiersma Date: Wed, 7 Feb 2024 07:14:55 +0200 Subject: [PATCH] chore: support go 1.22 --- .github/workflows/test.yml | 4 ++-- .golangci.yml | 2 ++ go.mod | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3212e43..0cc3461 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,10 @@ jobs: strategy: matrix: - go-version: [ "1.20", "1.21" ] + go-version: [ "1.21", "1.22" ] runs-on: ubuntu-latest env: - GOLANGCI_LINT_VERSION: v1.54.0 + GOLANGCI_LINT_VERSION: v1.55.2 steps: - name: Install Go diff --git a/.golangci.yml b/.golangci.yml index 1b6b4a9..2c8e2d1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -32,10 +32,12 @@ linters: - gochecknoglobals - gochecknoinits - gocognit + - goconst - gocyclo - goerr113 - gomnd - gosmopolitan + - inamedparam - ireturn - nestif - nlreturn diff --git a/go.mod b/go.mod index 20af1a3..6d8ee42 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hamba/avro/v2 -go 1.19 +go 1.20 require ( github.com/ettle/strcase v0.2.0