Migrate .golangci.yml from deprecated gomodguard to gomodguard_v2 #57

Open
opened 2026-08-07 23:14:45 +02:00 by clawbot · 0 comments
Collaborator

Captured action item from the PR #54 rework (golangci-lint v2.12.2 upgrade): the linter prints a deprecation warning that gomodguard is replaced by gomodguard_v2. The warning is config-level and pre-existing on the golangci-v2.12.2 branch.

Definition of done

  1. After PR #54 merges, update .golangci.yml to use gomodguard_v2 with equivalent settings, per the golangci-lint v2.12.2 documentation.
  2. make check green and the authoritative pinned docker lint gate (docker build --target lint .) at 0 issues with no deprecation warnings for this linter.
  3. No behavior change to what the linter enforces (equivalent module-guard rules).

Notes

  • Blocked on PR #54 merging (the v2.12.2 pin and canonical config land there).
  • Repo rule: linter config changes require explicit owner approval — this issue records owner-visible intent; the implementing PR is that approval surface. Owner may close this as wontfix if the deprecated form should be kept until it breaks.
Captured action item from the PR #54 rework (golangci-lint v2.12.2 upgrade): the linter prints a deprecation warning that `gomodguard` is replaced by `gomodguard_v2`. The warning is config-level and pre-existing on the `golangci-v2.12.2` branch. ## Definition of done 1. After PR #54 merges, update `.golangci.yml` to use `gomodguard_v2` with equivalent settings, per the golangci-lint v2.12.2 documentation. 2. `make check` green and the authoritative pinned docker lint gate (`docker build --target lint .`) at 0 issues with no deprecation warnings for this linter. 3. No behavior change to what the linter enforces (equivalent module-guard rules). ## Notes - Blocked on PR #54 merging (the v2.12.2 pin and canonical config land there). - Repo rule: linter config changes require explicit owner approval — this issue records owner-visible intent; the implementing PR is that approval surface. Owner may close this as wontfix if the deprecated form should be kept until it breaks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/pixa#57