From 927dce3ef65f0bbf9c595261e420d0b7066d0e92 Mon Sep 17 00:00:00 2001 From: Harry Felton Date: Thu, 18 Jan 2024 22:00:54 +1300 Subject: [PATCH] ci: skip-cache for golangci-lint task Workaround for: golangci/golangci-lint-action#807 --- .github/workflows/go.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 33f9a29..90cf467 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,12 +16,6 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.21.6' - # during the golangci-lint execution, many files are extracted - # which conflict with those which are cached by the go setup - # and cause an insane amount of log spam. - # This is an ongoing issue with the golangci-lint action, and - # so for now we won't cache the Go artifacts: - # https://github.com/golangci/golangci-lint-action/issues/807 cache: false - name: Verify Go Mod @@ -38,6 +32,14 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v3.7.0 + with: + # during the golangci-lint execution, many files are extracted + # which conflict with those which are cached by the go setup + # and cause an insane amount of log spam. + # This is an ongoing issue with the golangci-lint action, and + # so for now we won't cache the Go artifacts: + # https://github.com/golangci/golangci-lint-action/issues/807 + skip-cache: true # - name: Test # run: go test -v ./...