From b5bad6882971a39f5341c06b48efc01a2f149d40 Mon Sep 17 00:00:00 2001 From: Kay-Zee Date: Wed, 20 Oct 2021 17:00:35 -0700 Subject: [PATCH 1/2] 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 8503a6a145ca67e6bf6de5f80cf43a7c7daa7834 Mon Sep 17 00:00:00 2001 From: Kay-Zee Date: Wed, 20 Oct 2021 23:02:44 -0700 Subject: [PATCH 2/2] Update golangci.yml --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 44cd7d72dfe..bbd162cb64f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,3 +22,9 @@ linters: enable: - goimports - gosec + +issues: + exclude-rules: + - path: _test\.go # disable some linters on test files + linters: + - unused