From 2d1f123e65fa37cc191edc2e6388015d6a7d38b8 Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 10 Aug 2026 14:16:21 +0000 Subject: [PATCH] config: migrate gomodguard to gomodguard_v2 in canonical .golangci.yml golangci-lint v2.12.0 deprecated `gomodguard` in favour of `gomodguard_v2`. Because the canonical config uses `default: all`, the deprecated linter is auto-enabled and every lint run in every consuming Go repo emits a deprecation warning. `gomodguard` and `gomodguard_v2` are two independently registered linters in v2.12.2, so `gomodguard_v2` is already enabled by `default: all`; only the deprecated one needs disabling. This mirrors the existing `wsl` entry, which was disabled for the same reason when `wsl_v5` superseded it. No settings migration was required: the canonical config configures no gomodguard settings at all. Refs: https://git.eeqj.de/sneak/prompts/issues/25 --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 26b1610..8a90995 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,6 +16,7 @@ linters: - depguard # Dependency allow/block lists - godot # Requires comments to end with periods - wsl # Deprecated, replaced by wsl_v5 + - gomodguard # Deprecated, replaced by gomodguard_v2 - wrapcheck # Too verbose for internal packages - varnamelen # Short names like db, id are idiomatic Go settings: -- 2.49.1