From 8ef15184db2258fffcc0d3b843a68da58725d0c2 Mon Sep 17 00:00:00 2001 From: esengine <359807859@qq.com> Date: Tue, 13 Oct 2026 08:49:14 -0700 Subject: [PATCH] chore(lint): keep recognising x/net's deprecated GoAwayError x/net v0.60.0 marks http2.GoAwayError deprecated while its Transport still returns it, so the transport classifier must keep matching it. Scope the SA1019 exclusion to that file. --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index f9bcc8b593..8d0b13b458 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -64,6 +64,12 @@ linters: linters: - staticcheck text: SA5011 + # x/net's Transport still returns GoAwayError although the type is marked + # deprecated, so the classifier has to keep recognising it. + - path: internal/provider/transport_diagnostic + linters: + - staticcheck + text: SA1019 # SA4023 is trivially true on GOOS=windows: dialAgent's Windows stub # (agent_windows.go) always returns a non-nil error until named-pipe # transport lands. Suppress only this call site; the comparison stays