update golangci-lint to 1.60.1

Fixes new spotted issues around printf() formats and using os.Setenv()
in tests.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-08-14 13:14:02 +02:00
parent 5f069d8742
commit c17daf2b09
10 changed files with 16 additions and 15 deletions

View File

@ -1,6 +1,7 @@
package annotations
import (
"errors"
"fmt"
"regexp"
"strings"
@ -41,7 +42,7 @@ func isDNS1123Subdomain(value string) error {
}
if !dns1123SubdomainRegexp.MatchString(value) {
return fmt.Errorf(regexErrorMsg(dns1123SubdomainErrorMsg, dns1123SubdomainFmt, "example.com"))
return errors.New(regexErrorMsg(dns1123SubdomainErrorMsg, dns1123SubdomainFmt, "example.com"))
}
return nil