From d0f084c4401620bd5149addb7a8aa8417312f4d2 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Wed, 21 Aug 2024 02:44:01 +0300 Subject: [PATCH] Disable setup-go cache to avoid warnings When cache is enabled we always get warnings from tar: usr/bin/tar: ../../../go/pkg/mod/golang.org/x/telemetry/config@v0.29.0/doc.go: Cannot open: File exists /usr/bin/tar: ../../../go/pkg/mod/golang.org/x/telemetry/config@v0.29.0/LICENSE: Cannot open: File exists /usr/bin/tar: ../../../go/pkg/mod/golang.org/x/telemetry/config@v0.29.0/config.json: Cannot open: File exists /usr/bin/tar: ../../../go/pkg/mod/golang.org/x/telemetry/config@v0.29.0/go.mod: Cannot open: File exists /usr/bin/tar: Exiting with failure status due to previous errors Warning: Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2 According to setup-go issue[1] the mitigation is to disable the cache. [1] https://github.com/actions/setup-go/issues/403 --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f192ccb..b6798ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,5 +47,6 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache: false - name: Build binary run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build