From a072284e5bd756aedbd43a0a7541c2bb39ad9931 Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Tue, 5 May 2026 16:49:18 +0300 Subject: [PATCH] lint: upgrade gomodguard to v2 ``` WARN The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2. WARN Suggested new configuration: linters: enable: - gomodguard_v2 settings: gomodguard_v2: blocked: - module: github.com/pkg/errors reason: Obsolete after the 1.13 release; use the standard `errors` package ``` Signed-off-by: Andrey Butusov --- .golangci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 249e675..b12f576 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,11 +26,10 @@ linters: # 'default' case is present, even if all enum members aren't listed in the # switch default-signifies-exhaustive: true - gomodguard: + gomodguard_v2: blocked: - modules: - - github.com/pkg/errors: - reason: Obsolete after the 1.13 release; use the standard `errors` package + - module: github.com/pkg/errors + reason: Obsolete after the 1.13 release; use the standard `errors` package revive: rules: - name: duplicated-imports @@ -72,7 +71,7 @@ linters: - durationcheck - errorlint - exhaustive - - gomodguard + - gomodguard_v2 - intrange - misspell - predeclared