From a1bd9fcda686506e9f80e72f4d3e993dae2bd5b3 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Thu, 1 Oct 2026 10:24:33 +0800 Subject: [PATCH 1/2] Bump Go to 1.27.1 - go.mod: go 1.26.4 -> 1.27.1 - Dockerfile.release: golang:1.26.4 -> golang:1.27.1 - README.md: from-source Go requirement >= 1.27 - .github/copilot-instructions.md: refresh stale Go version note Signed-off-by: yxxhero --- .github/copilot-instructions.md | 2 +- Dockerfile.release | 2 +- README.md | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ac3f88c3..72d74983 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -7,7 +7,7 @@ Always reference these instructions first and fallback to search or bash command ## Working Effectively **Prerequisites:** -- Go >= 1.21 (currently uses Go 1.24.5) +- Go >= 1.27 (currently uses Go 1.27.1) - Helm v3 (tested with v3.17.4 and v3.18.6) **Build Process:** diff --git a/Dockerfile.release b/Dockerfile.release index b325fbe2..e7cfd8ce 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -1,4 +1,4 @@ -FROM golang:1.26.4 +FROM golang:1.27.1 # See https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt # for the latest gh install instructions when the below didn't work diff --git a/README.md b/README.md index a5c341df..492ff14e 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ curl -L $TARBALL_URL | tar -C $(helm home)/plugins/diff --strip-components=1 -xz ### From Source #### Prerequisites - - GoLang `>= 1.21` + - GoLang `>= 1.27` Make sure you do not have a version of `helm-diff` installed. You can remove it by running `helm plugin uninstall diff` diff --git a/go.mod b/go.mod index 208663da..6cf56575 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/databus23/helm-diff/v3 -go 1.26.4 +go 1.27.1 require ( github.com/Masterminds/semver/v3 v3.5.0 From 7fb855dd4b6a312098f82f5326314a9016f69b92 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Thu, 1 Oct 2026 10:26:52 +0800 Subject: [PATCH 2/2] Bump golangci-lint to v2.14.0 for Go 1.27 support v2.12.2 was built with go1.26 and fails with: "the Go language version (go1.26) used to build golangci-lint is lower than the targeted Go version (1.27.1)" v2.14.0 is built with go1.27.0 and lints the module cleanly. Signed-off-by: yxxhero --- .github/workflows/lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ae351ce9..6a0975fa 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -21,4 +21,4 @@ jobs: go-version-file: 'go.mod' - uses: golangci/golangci-lint-action@v9 with: - version: v2.12.2 + version: v2.14.0