ci: setup-go cache:false (bind-mount corruption sweep) #16
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user