Skip to content

Commit e72e2b4

Browse files
fix(ci): pin golangci-lint to v1.64.8 and add config
'version: latest' was pulling golangci-lint v2.x which requires a config file and has breaking changes from v1.x, causing the lint job to fail after ~20s before any code was checked. - Pin to v1.64.8 (last stable v1 release, matches local tooling) - Add .golangci.yml with explicit linter set (errcheck, govet, staticcheck, unused, ineffassign, gosimple) - Exclude errcheck from test files to avoid noise on t.Log etc. Co-authored-by: Ona <no-reply@ona.com>
1 parent 8847f14 commit e72e2b4

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
- name: golangci-lint
4040
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
4141
with:
42-
version: latest
42+
version: v1.64.8

.golangci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
linters:
2+
enable:
3+
- errcheck
4+
- gosimple
5+
- govet
6+
- ineffassign
7+
- staticcheck
8+
- unused
9+
10+
linters-settings:
11+
errcheck:
12+
check-type-assertions: false
13+
check-blank: false
14+
15+
issues:
16+
exclude-rules:
17+
# Test files: allow unchecked errors on t.Log, t.Error etc.
18+
- path: _test\.go
19+
linters:
20+
- errcheck

0 commit comments

Comments
 (0)