Skip to content

Commit cdc5667

Browse files
divyansh42tekton-robot
authored andcommitted
Fix golang CI lint failures
- Updated golangci-lint to use v2 version - Fixed regex to ignore the files like third_party in lint
1 parent 3fa15bb commit cdc5667

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
fi
4444
echo "$gofmt_out"
4545
- name: golangci-lint
46-
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
46+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4747
with:
48-
version: v1.64.6
48+
version: v2.1.6
4949
only-new-issues: true
5050
args: --timeout=10m
5151
- name: yamllint

.golangci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ linters:
3636
path: _test\.go
3737
paths:
3838
- vendor
39-
- third_party$
40-
- builtin$
41-
- examples$
39+
- third_party
40+
- builtin
41+
- examples
4242
formatters:
4343
enable:
4444
- gofmt
@@ -47,6 +47,6 @@ formatters:
4747
generated: lax
4848
paths:
4949
- vendor
50-
- third_party$
51-
- builtin$
52-
- examples$
50+
- third_party
51+
- builtin
52+
- examples

0 commit comments

Comments
 (0)