From b59c5f39d62d1bcf258a53aabc954679fea934ee Mon Sep 17 00:00:00 2001 From: ysyneu Date: Fri, 24 Apr 2026 09:58:09 +0800 Subject: [PATCH 1/2] chore(ci): bump golangci-lint-action version to v2.4 Pin v2.1 (binary built with Go 1.24) refused to load configs targeting Go 1.25.0, blocking dependabot PRs #28 and #29 which bump go.mod's go directive. v2.4 is built with Go 1.25 and lints both 1.24 and 1.25 targets. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 18f0232..f334388 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,4 +23,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v9 with: - version: v2.1 + version: v2.4 From 3d50c5c00077646257f4afd919883daa1fea0165 Mon Sep 17 00:00:00 2001 From: ysyneu Date: Fri, 24 Apr 2026 10:07:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(ci):=20migrate=20buildkit-cache-dance?= =?UTF-8?q?=20v3=20inputs=20(cache-source=20=E2=86=92=20cache-map)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v3 deprecated cache-source and now requires explicit cache-map. Without this, v3 falls back to auto-discovery defaults that try to mkdir /var/cache/apk on the runner and fail with EACCES, breaking every Docker Publish run on main since #21 landed. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/docker-publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4586738..37cb9b9 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -30,6 +30,7 @@ jobs: cosign-release: "v2.2.4" - name: Set up Docker Buildx + id: setup-buildx uses: docker/setup-buildx-action@v4 - name: Log into registry ${{ env.REGISTRY }} @@ -56,6 +57,7 @@ jobs: type=raw,value=latest,enable=${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') }} - name: Go Build Cache for Docker + id: cache uses: actions/cache@v5 with: path: go-build-cache @@ -64,7 +66,12 @@ jobs: - name: Inject go-build-cache uses: reproducible-containers/buildkit-cache-dance@1b8ab18fbda5ad3646e3fcc9ed9dd41ce2f297b4 # v3.3.2 with: - cache-source: go-build-cache + builder: ${{ steps.setup-buildx.outputs.name }} + cache-map: | + { + "go-build-cache": "/root/.cache/go-build" + } + skip-extraction: ${{ steps.cache.outputs.cache-hit }} - name: Build and push Docker image id: build-and-push