Skip to content

Commit 5413790

Browse files
bors[bot]Kay-Zee
andauthored
Merge #1509
1509: Update golangci, trying to fix lint r=Kay-Zee a=Kay-Zee This updates the golangci action to just use the latest v2 action, which is recommended for the action. Also, skipping the PKG cache because of all the File Exists error. Will have to follow: golangci/golangci-lint-action#244 to see when this is resolved. (though lint is one of the faster jobs, so it's fine even if we skip the cache) Lastly, I'm suggesting we skip the `unused` lint for TEST FILES ONLY, as there are many cases where we want to use `t.Skip()` to quarantine, but then it causes "unused" errors. This will resolve those cases and better allow us to use `t.Skip()` Co-authored-by: Kay-Zee <[email protected]>
2 parents 38702f7 + d395b15 commit 5413790

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ jobs:
2626
- name: Build relic
2727
run: make crypto/relic/build
2828
- name: Run golangci-lint
29-
uses: golangci/golangci-lint-action@v2.3.0
29+
uses: golangci/golangci-lint-action@v2
3030
with:
3131
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
3232
version: v1.41
3333
args: -v --build-tags relic
34+
# https://github.com/golangci/golangci-lint-action/issues/244
35+
skip-pkg-cache: true
3436
- name: Run ShellCheck
3537
uses: ludeeus/action-shellcheck@master
3638
with:

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ issues:
2727
exclude-rules:
2828
- path: _test\.go # disable some linters on test files
2929
linters:
30-
- unused
30+
- unused

0 commit comments

Comments
 (0)