From c5136cb1af80c2b6d24420ef2aca14321a642c3c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 08:05:47 +0000 Subject: [PATCH 1/5] Build and release go-replace with Go 1.22.4 --- .github/workflows/release-assets.yaml | 4 ++-- Dockerfile | 2 +- go.mod | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-assets.yaml b/.github/workflows/release-assets.yaml index 9d38757..4275dda 100644 --- a/.github/workflows/release-assets.yaml +++ b/.github/workflows/release-assets.yaml @@ -15,9 +15,9 @@ jobs: with: swap-size-gb: 12 - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: - go-version: '1.19' + go-version: '1.22.4' check-latest: true - name: Build diff --git a/Dockerfile b/Dockerfile index 20988e2..34db521 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ############################################# # Build ############################################# -FROM --platform=$BUILDPLATFORM golang:1.19-alpine as build +FROM --platform=$BUILDPLATFORM golang:1.22.4-alpine as build RUN apk upgrade --no-cache --force RUN apk add --update build-base make git diff --git a/go.mod b/go.mod index afdc6b4..93831f8 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/webdevops/go-replace -go 1.19 +go 1.22.4 require ( github.com/Masterminds/sprig v2.22.0+incompatible From e39bab2cafa19328c1d5dc2edd789c965264b1f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 08:16:34 +0000 Subject: [PATCH 2/5] Fix CI lint failure on Go 1.22+ --- .golangci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 4496150..87edd3a 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -7,7 +7,7 @@ linters: - bidichk - bodyclose - errorlint - - exportloopref + - copyloopvar - gofmt - goimports - gosec From 009a43ce7712ecfa8cfc0f47b44da79c34891946 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 08:22:36 +0000 Subject: [PATCH 3/5] chore: update Go version from 1.22.4 to 1.26.5 --- .github/workflows/release-assets.yaml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-assets.yaml b/.github/workflows/release-assets.yaml index 4275dda..669f803 100644 --- a/.github/workflows/release-assets.yaml +++ b/.github/workflows/release-assets.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.22.4' + go-version: '1.26.5' check-latest: true - name: Build diff --git a/go.mod b/go.mod index 93831f8..7f437b6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/webdevops/go-replace -go 1.22.4 +go 1.26.5 require ( github.com/Masterminds/sprig v2.22.0+incompatible From a41a34c8fabdf9be916e43bcaf6002a16819177c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 08:27:14 +0000 Subject: [PATCH 4/5] fix: align Go toolchain versions to restore CI pipeline --- .github/workflows/release-assets.yaml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-assets.yaml b/.github/workflows/release-assets.yaml index 669f803..7bc4fcf 100644 --- a/.github/workflows/release-assets.yaml +++ b/.github/workflows/release-assets.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.26.5' + go-version: '1.24.x' check-latest: true - name: Build diff --git a/go.mod b/go.mod index 7f437b6..a82ccee 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/webdevops/go-replace -go 1.26.5 +go 1.24 require ( github.com/Masterminds/sprig v2.22.0+incompatible From 13cff23cd5a8889eab2226084f3a8bb297335aa1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Jul 2026 08:32:32 +0000 Subject: [PATCH 5/5] fix: keep Go 1.26.5 and update lint workflows for compatibility --- .github/workflows/ci-docker.yaml | 12 +++++++++--- .github/workflows/release-assets.yaml | 2 +- .github/workflows/release-docker.yaml | 12 +++++++++--- .github/workflows/scheduled-docker.yaml | 12 +++++++++--- go.mod | 2 +- 5 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-docker.yaml b/.github/workflows/ci-docker.yaml index 521d0d8..377e05d 100644 --- a/.github/workflows/ci-docker.yaml +++ b/.github/workflows/ci-docker.yaml @@ -14,10 +14,16 @@ jobs: swap-size-gb: 12 - name: Run Golangci lint - uses: golangci/golangci-lint-action@v2 + uses: actions/setup-go@v5 with: - version: latest - args: --print-resources-usage + go-version: '1.26.5' + check-latest: true + + - name: Install golangci-lint + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + + - name: Run golangci-lint + run: golangci-lint run --print-resources-usage - name: Docker meta id: docker_meta diff --git a/.github/workflows/release-assets.yaml b/.github/workflows/release-assets.yaml index 7bc4fcf..669f803 100644 --- a/.github/workflows/release-assets.yaml +++ b/.github/workflows/release-assets.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.24.x' + go-version: '1.26.5' check-latest: true - name: Build diff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yaml index ef6fa31..26e43d5 100644 --- a/.github/workflows/release-docker.yaml +++ b/.github/workflows/release-docker.yaml @@ -19,10 +19,16 @@ jobs: swap-size-gb: 12 - name: Run Golangci lint - uses: golangci/golangci-lint-action@v2 + uses: actions/setup-go@v5 with: - version: latest - args: --print-resources-usage + go-version: '1.26.5' + check-latest: true + + - name: Install golangci-lint + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + + - name: Run golangci-lint + run: golangci-lint run --print-resources-usage build: needs: lint diff --git a/.github/workflows/scheduled-docker.yaml b/.github/workflows/scheduled-docker.yaml index 9737bde..e2c3233 100644 --- a/.github/workflows/scheduled-docker.yaml +++ b/.github/workflows/scheduled-docker.yaml @@ -16,10 +16,16 @@ jobs: swap-size-gb: 12 - name: Run Golangci lint - uses: golangci/golangci-lint-action@v2 + uses: actions/setup-go@v5 with: - version: latest - args: --print-resources-usage + go-version: '1.26.5' + check-latest: true + + - name: Install golangci-lint + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + + - name: Run golangci-lint + run: golangci-lint run --print-resources-usage build: needs: lint diff --git a/go.mod b/go.mod index a82ccee..7f437b6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/webdevops/go-replace -go 1.24 +go 1.26.5 require ( github.com/Masterminds/sprig v2.22.0+incompatible