diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8cae493..ef51319 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 7bcb818..0e13d09 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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: