From 6fc7d04037df956abeb6bb0b646f83bb1530dbff Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Tue, 20 Aug 2024 10:22:35 -0500 Subject: [PATCH] Update GolangCI-lint to v1.60.1 --- scripts/golangci-lint.sh | 2 +- tests/globalhelper/helper.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/golangci-lint.sh b/scripts/golangci-lint.sh index 9a6141251..893df5d1d 100755 --- a/scripts/golangci-lint.sh +++ b/scripts/golangci-lint.sh @@ -13,7 +13,7 @@ else else DEPLOY_PATH=${GOPATH}/bin fi - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${DEPLOY_PATH}" v1.59.1 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${DEPLOY_PATH}" v1.60.1 fi PATH=${PATH}:${DEPLOY_PATH} golangci-lint run -v diff --git a/tests/globalhelper/helper.go b/tests/globalhelper/helper.go index fa00a5d14..10da7f307 100644 --- a/tests/globalhelper/helper.go +++ b/tests/globalhelper/helper.go @@ -168,7 +168,7 @@ func defineCertifiedContainersInfo(config *globalparameters.CertsuiteConfig, cer } if len(repositoryRegistryTagDigest) != 4 { - return fmt.Errorf(fmt.Sprintf("certified container info %s is invalid", certifiedContainerFields)) + return fmt.Errorf("certified container info %s is invalid", certifiedContainerFields) } repo := strings.TrimSpace(repositoryRegistryTagDigest[0]) @@ -219,7 +219,7 @@ func definePodUnderTestLabels(config *globalparameters.CertsuiteConfig, podsUnde for _, podsUnderTestLabel := range podsUnderTestLabels { prefixNameValue := strings.Split(podsUnderTestLabel, ":") if len(prefixNameValue) != 2 { - return fmt.Errorf(fmt.Sprintf("podUnderTest label %s is invalid", podsUnderTestLabel)) + return fmt.Errorf("podUnderTest label %s is invalid", podsUnderTestLabel) } config.PodsUnderTestLabels = append(config.PodsUnderTestLabels, prefixNameValue[0]+":"+prefixNameValue[1])