From 60bab7633c872100c993933c273a15bf067b4cbe Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Tue, 25 Aug 2026 09:43:39 +0000 Subject: [PATCH] golangci-lint: disable canonicalheader canonicalheader v1.1.2 nil-derefs on a package that has both a generic method and an http.Header.Set call, which aborts the whole lint run. --- .golangci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 298f390fe..daa86c31b 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -3,6 +3,10 @@ version: "2" linters: default: all disable: + # canonicalheader v1.1.2 panics (nil deref) on a generic method in a + # package that also calls http.Header.Set. Re-enable once golangci-lint + # ships a version that parses Go 1.27 generic methods. + - canonicalheader - cyclop - depguard - dupl