From 18a3b9ff9eee8c605b68046c8a78d2cd42a1de50 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 20 Sep 2026 02:54:01 +1000 Subject: [PATCH] docs(build): record why goimports is absent from the formatter set Completes 856c6a8f. The measurement belongs next to the omission: without it the next person to notice goimports missing re-adds it and pays ~135s per gate run. --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 250399b87..48be55265 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -114,6 +114,12 @@ linters: - maintidx formatters: + # goimports is deliberately absent. golangci-lint's goimports formatter + # builds a fresh x/tools ProcessEnv per file, so internal/imports re-reads + # and re-parses $GOMODCACHE's module index once per file -- 63 MiB here, + # ~155ms each, ~135s across this tree, and again on a cold `golangci-lint + # run`. gofumpt and gci cover formatting and grouping; a missing or unused + # import is a compile error, and formatter drift is reported by run itself. enable: - gofumpt - gci