From b7f7539e693c3bc68a02b90cf9c229b68ec6a1da Mon Sep 17 00:00:00 2001 From: Kay-Zee Date: Wed, 20 Oct 2021 17:00:35 -0700 Subject: [PATCH 1/3] Update golangci Use more up-to-date v2 for golang lint Skip pkg cache --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92258ed744a..834f5ea4129 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,11 +26,12 @@ jobs: - name: Build relic run: make crypto/relic/build - name: Run golangci-lint - uses: golangci/golangci-lint-action@v2.3.0 + uses: golangci/golangci-lint-action@v2 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.41 args: -v --build-tags relic + skip-pkg-cache: true - name: Run ShellCheck uses: ludeeus/action-shellcheck@master with: From a33f2c4e74d8e36cb8455739ab27d05a2de1c32c Mon Sep 17 00:00:00 2001 From: Kay-Zee Date: Wed, 20 Oct 2021 23:02:44 -0700 Subject: [PATCH 2/3] Update golangci.yml --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 6782e609d95..bbd162cb64f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -27,4 +27,4 @@ issues: exclude-rules: - path: _test\.go # disable some linters on test files linters: - - unused \ No newline at end of file + - unused From d395b156301ff6623c10c77138e22c488519286e Mon Sep 17 00:00:00 2001 From: Kay-Zee Date: Wed, 20 Oct 2021 23:05:22 -0700 Subject: [PATCH 3/3] Add link to issue for skip cache --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 834f5ea4129..3c8dda76f96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,7 @@ jobs: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.41 args: -v --build-tags relic + # https://github.com/golangci/golangci-lint-action/issues/244 skip-pkg-cache: true - name: Run ShellCheck uses: ludeeus/action-shellcheck@master