diff --git a/.github/env b/.github/env index 43ebdd36e..9a0c1ef4c 100644 --- a/.github/env +++ b/.github/env @@ -1,2 +1,2 @@ GOLANG_VERSION=1.26 -GOLANGCI_LINT_VERSION=v2.11.3 +GOLANGCI_LINT_VERSION=v2.12.2 diff --git a/.golangci.yml b/.golangci.yml index 59cdd76a7..b3c57e5bd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -27,7 +27,7 @@ linters: - exhaustive - fatcontext - gocritic - - gomodguard + - gomodguard_v2 - govet - ineffassign - misspell @@ -102,12 +102,11 @@ linters: - whyNoLint enable-all: true - gomodguard: + gomodguard_v2: blocked: - modules: - - github.com/evanphx/json-patch: - recommendations: - - github.com/evanphx/json-patch/v5 + - module: github.com/evanphx/json-patch + recommendations: + - github.com/evanphx/json-patch/v5 nolintlint: require-specific: true