Re-vendors the org-standard .golangci.yml into backend/.golangci.yml for #41, as sneak/prompts#60 asks of every repo that vendors it.
golangci-lint v2.12 deprecates gomodguard, which the old file reached through default: all, so every backend lint run printed a deprecation warning. The new file, fetched unedited from sneak/prompts, disables gomodguard and enables gomodguard_v2 with the org block list (rs/zerolog, the pre-fork go-redis/redis, sergi/go-diff, hexops/gotextdiff). backend/script/lint now checks the new sha256.
What the diff does not show:
The new file also turns depguard on, with a test-support rule that forbids importing net/http/httptest outside test code. That rule's deny list is the one part a repo may extend. The old netwatch copy had no depguard rule and netwatch has no test-support packages of its own, so there is nothing to carry forward and the vendored file is byte-identical to the canonical one.
Neither new rule finds anything in the backend: no blocked module is required and no non-test file imports net/http/httptest, so no source change was needed.
The TODO.md Future Steps item that tracked this as an upstream problem is removed.
Model: opus-5-5
Re-vendors the org-standard `.golangci.yml` into `backend/.golangci.yml` for https://git.eeqj.de/sneak/netwatch/issues/41, as https://git.eeqj.de/sneak/prompts/issues/60 asks of every repo that vendors it.
golangci-lint v2.12 deprecates `gomodguard`, which the old file reached through `default: all`, so every backend lint run printed a deprecation warning. The new file, fetched unedited from `sneak/prompts`, disables `gomodguard` and enables `gomodguard_v2` with the org block list (`rs/zerolog`, the pre-fork `go-redis/redis`, `sergi/go-diff`, `hexops/gotextdiff`). `backend/script/lint` now checks the new sha256.
What the diff does not show:
- The new file also turns `depguard` on, with a `test-support` rule that forbids importing `net/http/httptest` outside test code. That rule's `deny` list is the one part a repo may extend. The old netwatch copy had no `depguard` rule and netwatch has no test-support packages of its own, so there is nothing to carry forward and the vendored file is byte-identical to the canonical one.
- Neither new rule finds anything in the backend: no blocked module is required and no non-test file imports `net/http/httptest`, so no source change was needed.
- The `TODO.md` Future Steps item that tracked this as an upstream problem is removed.
Model: opus-5-5
PASS: backend/.golangci.yml is byte-identical to the canonical file in sneak/prompts, backend/script/lint checks its sha256, the deprecation warning is gone, and the new rules hold with no source changes.
Model: opus-5-5
PASS: `backend/.golangci.yml` is byte-identical to the canonical file in `sneak/prompts`, `backend/script/lint` checks its sha256, the deprecation warning is gone, and the new rules hold with no source changes.
Model: opus-5-5
golangci-lint v2.12 deprecates gomodguard, which the org .golangci.yml
reached through "default: all", so every lint run printed a
deprecation warning. backend/.golangci.yml is now the current copy
from sneak/prompts, fetched unedited: gomodguard is disabled and
gomodguard_v2 enabled with the org block list. The new file also
turns depguard on with its test-support rule, which forbids
net/http/httptest outside test code. netwatch has no test-support
packages of its own to add to that rule, so the file is identical to
the canonical one. backend/script/lint checks the new sha256. The
backend raises no findings under the new rules.
Model: opus-5-5
PASS: After the rebase the change is identical to the reviewed commit except TODO.md, which keeps every entry on next plus this change's entry, and backend/.golangci.yml still matches the canonical file.
Model: opus-5-5
PASS: After the rebase the change is identical to the reviewed commit except `TODO.md`, which keeps every entry on `next` plus this change's entry, and `backend/.golangci.yml` still matches the canonical file.
Model: opus-5-5
clawbot
merged commit c226ceee01 into next2026-09-29 10:56:01 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Re-vendors the org-standard
.golangci.ymlintobackend/.golangci.ymlfor #41, as sneak/prompts#60 asks of every repo that vendors it.golangci-lint v2.12 deprecates
gomodguard, which the old file reached throughdefault: all, so every backend lint run printed a deprecation warning. The new file, fetched unedited fromsneak/prompts, disablesgomodguardand enablesgomodguard_v2with the org block list (rs/zerolog, the pre-forkgo-redis/redis,sergi/go-diff,hexops/gotextdiff).backend/script/lintnow checks the new sha256.What the diff does not show:
depguardon, with atest-supportrule that forbids importingnet/http/httptestoutside test code. That rule'sdenylist is the one part a repo may extend. The old netwatch copy had nodepguardrule and netwatch has no test-support packages of its own, so there is nothing to carry forward and the vendored file is byte-identical to the canonical one.net/http/httptest, so no source change was needed.TODO.mdFuture Steps item that tracked this as an upstream problem is removed.Model: opus-5-5
PASS:
backend/.golangci.ymlis byte-identical to the canonical file insneak/prompts,backend/script/lintchecks its sha256, the deprecation warning is gone, and the new rules hold with no source changes.Model: opus-5-5
a346837d34to074b7bde15PASS: After the rebase the change is identical to the reviewed commit except
TODO.md, which keeps every entry onnextplus this change's entry, andbackend/.golangci.ymlstill matches the canonical file.Model: opus-5-5