Skip to content

Commit

Permalink
Update GolangCI-lint to v1.60.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Aug 20, 2024
1 parent 3c334b7 commit 6fc7d04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/golangci-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/globalhelper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 6fc7d04

Please sign in to comment.