From b02e3dfda4f37b03862ec08c24cedfb3b0b5313b Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 10 Apr 2023 12:26:42 -0700 Subject: [PATCH] gha: disable setup-go cache for golangci job Since commit e3cf217cf1fa9248d153 actions/setup-go@v4 uses caching implicitly, and olangci/golangci-lint-action also uses caching. These two caches clash, resulting in multiple warnings in CI logs. The official golangci-lint-action solution is to disable caching for setup-go job (see [1]). Do the same. [1] https://github.com/golangci/golangci-lint-action/pull/704 Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 270cbf38808..ea4c0da32fb 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -26,6 +26,7 @@ jobs: - uses: actions/setup-go@v4 with: go-version: "${{ env.GO_VERSION }}" + cache: false # golangci-lint-action does its own caching - name: install deps run: | sudo apt -q update