ci: setup-go cache:false (bind-mount corruption sweep) #16

Open
devops-engineer wants to merge 1 commits from fix/setup-go-cache-vs-bind-mount into main
2 changed files with 21 additions and 3 deletions
+7 -1
View File
@@ -30,7 +30,13 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
# cache:false — the self-hosted runner bind-mounts a persistent
# GOCACHE/GOMODCACHE (/var/cache/ci-go-{build,mod}); actions/cache is
# redundant and corrupts it by untarring over the bind mount ("File
# exists" -> "Failed to restore" -> partial cache -> linker/typecheck
# errors on heavy jobs, e.g. test -race link "too many errors" and
# go-arch-lint "without types"). Fleet sweep after the cp ci.yml find.
cache: false
- name: Tidy
run: go mod tidy && git diff --exit-code go.sum
- name: Vet
+14 -2
View File
@@ -33,7 +33,13 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
# cache:false — the self-hosted runner bind-mounts a persistent
# GOCACHE/GOMODCACHE (/var/cache/ci-go-{build,mod}); actions/cache is
# redundant and corrupts it by untarring over the bind mount ("File
# exists" -> "Failed to restore" -> partial cache -> linker/typecheck
# errors on heavy jobs, e.g. test -race link "too many errors" and
# go-arch-lint "without types"). Fleet sweep after the cp ci.yml find.
cache: false
- name: Tidy
run: go mod tidy && git diff --exit-code go.sum
# Vet covers the whole module — was previously scoped to three
@@ -60,7 +66,13 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
# cache:false — the self-hosted runner bind-mounts a persistent
# GOCACHE/GOMODCACHE (/var/cache/ci-go-{build,mod}); actions/cache is
# redundant and corrupts it by untarring over the bind mount ("File
# exists" -> "Failed to restore" -> partial cache -> linker/typecheck
# errors on heavy jobs, e.g. test -race link "too many errors" and
# go-arch-lint "without types"). Fleet sweep after the cp ci.yml find.
cache: false
- name: Validate goreleaser config
uses: goreleaser/goreleaser-action@v6
with: