ci: bump golangci-lint to v2.11.3 for go 1.26

golangci-lint v2.5.0 is built with go1.25 and refuses to lint a module targeting go 1.26.0. Bump to v2.11.3 (matching main) and apply the new staticcheck QF1012 fixes it surfaces in jsonschema.go.

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
pull/32168/head
Terry Howe 1 week ago
parent c678c0c9c0
commit 0ed92f0696
No known key found for this signature in database

2
.github/env vendored

@ -1,2 +1,2 @@
GOLANG_VERSION=1.26
GOLANGCI_LINT_VERSION=v2.5.0
GOLANGCI_LINT_VERSION=v2.11.3

@ -78,7 +78,7 @@ func ValidateAgainstSchema(chrt *chart.Chart, values map[string]interface{}) err
err := ValidateAgainstSingleSchema(values, chrt.Schema)
if err != nil {
sb.WriteString(fmt.Sprintf("%s:\n", chrt.Name()))
fmt.Fprintf(&sb, "%s:\n", chrt.Name())
sb.WriteString(err.Error())
}
}
@ -92,10 +92,10 @@ func ValidateAgainstSchema(chrt *chart.Chart, values map[string]interface{}) err
subchartValues, ok := raw.(map[string]any)
if !ok {
sb.WriteString(fmt.Sprintf(
fmt.Fprintf(&sb,
"%s:\ninvalid type for values: expected object (map), got %T\n",
subchart.Name(), raw,
))
)
continue
}
if err := ValidateAgainstSchema(subchart, subchartValues); err != nil {

Loading…
Cancel
Save