Skip to content

Commit 0f0bf32

Browse files
ysyneuclaude
andauthored
fix(ci): bump golangci-lint to v2.4 + migrate buildkit-cache-dance to cache-map (#34)
* 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) <noreply@anthropic.com> * fix(ci): migrate buildkit-cache-dance v3 inputs (cache-source → cache-map) 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) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 24e9b27 commit 0f0bf32

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
cosign-release: "v2.2.4"
3131

3232
- name: Set up Docker Buildx
33+
id: setup-buildx
3334
uses: docker/setup-buildx-action@v4
3435

3536
- name: Log into registry ${{ env.REGISTRY }}
@@ -56,6 +57,7 @@ jobs:
5657
type=raw,value=latest,enable=${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') }}
5758
5859
- name: Go Build Cache for Docker
60+
id: cache
5961
uses: actions/cache@v5
6062
with:
6163
path: go-build-cache
@@ -64,7 +66,12 @@ jobs:
6466
- name: Inject go-build-cache
6567
uses: reproducible-containers/buildkit-cache-dance@1b8ab18fbda5ad3646e3fcc9ed9dd41ce2f297b4 # v3.3.2
6668
with:
67-
cache-source: go-build-cache
69+
builder: ${{ steps.setup-buildx.outputs.name }}
70+
cache-map: |
71+
{
72+
"go-build-cache": "/root/.cache/go-build"
73+
}
74+
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
6875

6976
- name: Build and push Docker image
7077
id: build-and-push

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@v9
2525
with:
26-
version: v2.1
26+
version: v2.4

0 commit comments

Comments
 (0)