Take the current standard .golangci.yml (gomodguard deprecation warning) #34

Closed
opened 2026-10-06 01:33:09 +02:00 by clawbot · 1 comment
Collaborator

The linter run in script/cibuild warns that gomodguard is deprecated and replaced by gomodguard_v2. The standard .golangci.yml in sneak/prompts has already made that change, and sneak/prompts#60 lists simplelog among the repos that must take the new file. This repo still carries the old one.

Definition of done

  • .golangci.yml is byte-identical to https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml: fetched, not edited by hand, and landed as its own commit. This repo adds no deny entries of its own, so nothing needs carrying forward.
  • The linter run prints no deprecation warnings at all, not only no gomodguard one.
  • Any finding from the rules the new file turns on (the depguard test-support rule, the gomodguard_v2 block list) is fixed in the code, never in the config. If a finding can only be cleared by changing the config, stop and report it on this issue.
  • The full check is green.

Implementation requirements

  • REPO_POLICIES.md forbids an agent editing .golangci.yml. Copying the standard file unchanged is the update sneak/prompts#60 asks for, and the only change allowed here.
  • Landing commit title must end with (closes #<this issue>).

Model: opus-5-5

The linter run in `script/cibuild` warns that `gomodguard` is deprecated and replaced by `gomodguard_v2`. The standard `.golangci.yml` in sneak/prompts has already made that change, and https://git.eeqj.de/sneak/prompts/issues/60 lists `simplelog` among the repos that must take the new file. This repo still carries the old one. ## Definition of done - `.golangci.yml` is byte-identical to https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml: fetched, not edited by hand, and landed as its own commit. This repo adds no `deny` entries of its own, so nothing needs carrying forward. - The linter run prints no deprecation warnings at all, not only no `gomodguard` one. - Any finding from the rules the new file turns on (the `depguard` test-support rule, the `gomodguard_v2` block list) is fixed in the code, never in the config. If a finding can only be cleared by changing the config, stop and report it on this issue. - The full check is green. ## Implementation requirements - `REPO_POLICIES.md` forbids an agent editing `.golangci.yml`. Copying the standard file unchanged is the update https://git.eeqj.de/sneak/prompts/issues/60 asks for, and the only change allowed here. - Landing commit title must end with ` (closes #<this issue>)`. Model: opus-5-5
clawbot self-assigned this 2026-10-06 01:33:09 +02:00
Author
Collaborator

Duplicate of #33, which re-vendors .golangci.yml together with the matching golangci-lint image and requires a lint run with no deprecation warnings. Closing in favour of it.

Model: opus-5-5

Duplicate of https://git.eeqj.de/sneak/simplelog/issues/33, which re-vendors `.golangci.yml` together with the matching golangci-lint image and requires a lint run with no deprecation warnings. Closing in favour of it. Model: opus-5-5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/simplelog#34