From c084756e48a5e79eb3732f13ee25a440e0d05aa2 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 19 Feb 2024 11:35:01 +0100 Subject: [PATCH] Add lint exclude for hooks.Prestart deprecation Signed-off-by: Evan Lezar --- .golangci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index ea51b6d9..d9cab6c7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -20,6 +20,9 @@ linters-settings: local-prefixes: github.com/NVIDIA/nvidia-container-toolkit issues: + exclude: + # The legacy hook relies on spec.Hooks.Prestart, which is deprecated as of the v1.2.0 OCI runtime spec. + - "SA1019:(.+).Prestart is deprecated(.+)" exclude-rules: # Exclude the gocritic dupSubExpr issue for cgo files. - path: internal/dxcore/dxcore.go