chore: upgrade Go toolchain to 1.25 and bump helm to v3.20.2 (#679)

* chore: upgrade Go toolchain to 1.25 and bump helm to v3.20.2

Upgrades Go from 1.24 to 1.25 in go.mod and CI workflow to fix
golangci-lint compatibility. Includes helm.sh/helm/v3 bump to v3.20.2.

Supersedes #678.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(ci): upgrade golangci-lint-action to v7 for Go 1.25 support

Action v4 installs golangci-lint v1.x which was built with Go 1.24
and refuses to lint Go 1.25 code. Action v7 uses golangci-lint v2.x
built with Go 1.25+.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: resolve golangci-lint v2 warnings

Handle Body.Close error returns and remove redundant embedded field
selector to satisfy stricter golangci-lint v2 defaults.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrey Pokhilko
2026-04-11 09:27:15 +01:00
committed by GitHub
parent cbbe941761
commit d8411ae0dc
6 changed files with 151 additions and 193 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func QueryArtifactHub(chartName string) ([]*ArtifactHubResult, error) {
if err != nil {
return nil, err
}
defer res.Body.Close()
defer func() { _ = res.Body.Close() }()
if res.StatusCode != 200 {
return nil, fmt.Errorf("failed to fetch %s : %s", p.String(), res.Status)