From e62a67a4f0dbf168dbb56966e13332ed575a72be Mon Sep 17 00:00:00 2001 From: Anton Telyshev Date: Thu, 21 May 2026 15:31:40 +0300 Subject: [PATCH] Go 1.26 --- .github/workflows/ci.yml | 4 ++-- .golangci.yml | 8 +++++++- go.mod | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40f29fc..c3f025e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,8 @@ on: branches: [ master ] env: - GO_VERSION: ^1.25 - GOLANGCI_LINT_VERSION: v2.4.0 + GO_VERSION: ^1.26 + GOLANGCI_LINT_VERSION: v2.12.2 permissions: contents: read diff --git a/.golangci.yml b/.golangci.yml index e03c097..f6c6b34 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -43,20 +43,23 @@ linters: - goconst - gocritic - gocyclo + - godoclint - godot - godox - goheader - gomoddirectives - - gomodguard + - gomodguard_v2 - goprintffuncname - gosec - govet - importas - ineffassign + - iotamixing - lll - makezero - mirror - misspell + - modernize - musttag - nakedret - nestif @@ -93,6 +96,9 @@ linters: - std-error-handling settings: + goconst: + ignore-string-values: ["error"] + gocritic: enable-all: true disabled-checks: diff --git a/go.mod b/go.mod index a628212..2fa881d 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/Antonboom/errname go 1.24.0 -toolchain go1.25.0 +toolchain go1.26.0 require golang.org/x/tools v0.41.0