From 85c94116ce6c6c6d5fe7cd0f3a6330d7d2db515b Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Tue, 8 Apr 2025 12:42:35 -0700 Subject: [PATCH] ignore a new lint warning --- internal/plog/config_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/plog/config_test.go b/internal/plog/config_test.go index be4ff9c9f..55208e29f 100644 --- a/internal/plog/config_test.go +++ b/internal/plog/config_test.go @@ -1,4 +1,4 @@ -// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2025 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package plog @@ -135,7 +135,8 @@ func TestFormat(t *testing.T) { %s/config_test.go:%d testing.tRunner %s/src/testing/testing.go:%d`, - wd, getLineNumberOfCaller()-19, runtime.GOROOT(), getLineNumberOfCaller(2), + //nolint:staticcheck // runtime.GOROOT() is deprecated but good enough for this unit test. + wd, getLineNumberOfCaller()-20, runtime.GOROOT(), getLineNumberOfCaller(2), ), ), ), scanner.Text())