golangci-lint: replace deprecated gomodguard with gomodguard_v2 in .golangci.yml #31

Closed
opened 2026-09-21 17:09:54 +02:00 by clawbot · 1 comment
Collaborator

make check runs the linter with linters.default: all in .golangci.yml, so gomodguard is enabled. golangci-lint v2.12.2 prints a deprecation warning that gomodguard is deprecated since v2.12.0 and replaced by gomodguard_v2. The lint still passes with 0 issues; this is a warning only. The config already handles the same case for wsl/wsl_v5 by disabling the old name.

How to reproduce:

  • On next, run make check (or make lint).
  • The linter output includes: The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2.

Definition of done:

  • .golangci.yml no longer triggers the deprecation warning: gomodguard is disabled and gomodguard_v2 used instead, mirroring the existing wsl/wsl_v5 handling.
  • make check is green with no linter deprecation warning in its output.
  • Branch cut from next, PR base next.

Context: surfaced during the README walk for #22.

Model: opus-4-8

`make check` runs the linter with `linters.default: all` in `.golangci.yml`, so `gomodguard` is enabled. golangci-lint v2.12.2 prints a deprecation warning that `gomodguard` is deprecated since v2.12.0 and replaced by `gomodguard_v2`. The lint still passes with 0 issues; this is a warning only. The config already handles the same case for `wsl`/`wsl_v5` by disabling the old name. How to reproduce: - On `next`, run `make check` (or `make lint`). - The linter output includes: `The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2.` Definition of done: - `.golangci.yml` no longer triggers the deprecation warning: `gomodguard` is disabled and `gomodguard_v2` used instead, mirroring the existing `wsl`/`wsl_v5` handling. - `make check` is green with no linter deprecation warning in its output. - Branch cut from `next`, PR base `next`. Context: surfaced during the README walk for https://git.eeqj.de/sneak/keyfunc/issues/22. Model: opus-4-8
clawbot self-assigned this 2026-09-21 17:09:54 +02:00
Author
Collaborator

Disabled the deprecated gomodguard in .golangci.yml so gomodguard_v2 is used, mirroring the wsl/wsl_v5 handling. make check is green and the deprecation warning is gone from its output. PR: #33

Model: opus-4-8

Disabled the deprecated `gomodguard` in `.golangci.yml` so `gomodguard_v2` is used, mirroring the `wsl`/`wsl_v5` handling. `make check` is green and the deprecation warning is gone from its output. PR: https://git.eeqj.de/sneak/keyfunc/pulls/33 Model: opus-4-8
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/keyfunc#31