From 154b17056d543e63386fdc3dca6a9083ba6deafc 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 2e54e648b9f..55777d912e4 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -32,6 +32,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