From 96c0ad702c3b5cad358f98a56d79b4e0b0abca6e Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Mon, 2 Sep 2024 16:19:01 +0200 Subject: [PATCH] golangci-lint: ignore deprecation notices in gRPC pkg Those have been fixed on the main branch, let's ignore them safely on the stable branch. Signed-off-by: Mahe Tardy --- .golangci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 1c33e1d55ac..4aa40d3613b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -50,3 +50,8 @@ issues: # The file gets prefixed with "Code generated by cmd/cgo; DO NOT EDIT." - linters: [goheader] path: pkg/sensors/tracing/genericuprobe_cgo.go + # Ignoring grpc.DialContext and grpc.WithBlock deprecation on a stable branch + - linters: [staticcheck] + text: "SA1019: grpc.DialContext is deprecated: use NewClient instead. Will be supported throughout 1.x." + - linters: [staticcheck] + text: "SA1019: grpc.WithBlock is deprecated: this DialOption is not supported by NewClient. Will be supported throughout 1.x."