Skip to content

Commit 2271ab0

Browse files
committed
chore: update golangci-lint configuration and workflow
- Add new linter for handling internal import errors in .golangci-ci.yml - Upgrade Go toolchain version to 1.24.5 in go.mod - Update Go version to 1.23 and golangci-lint version to latest in code quality workflow
1 parent 7558c61 commit 2271ab0

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@ jobs:
1010
lint:
1111
name: Linting
1212
runs-on: ubuntu-latest
13+
env:
14+
GOTOOLCHAIN: local
1315
steps:
1416
- uses: actions/checkout@v3
1517
with:
1618
submodules: recursive
1719
- name: Set up Go
1820
uses: actions/setup-go@v4
1921
with:
20-
go-version: "1.22"
22+
go-version: "1.23"
2123
cache: true
2224
- name: Run golangci-lint
2325
uses: golangci/golangci-lint-action@v3
26+
env:
27+
GOTOOLCHAIN: local
2428
with:
25-
version: v1.54.2
29+
version: latest
2630
args: --timeout=5m --out-format=colored-line-number --config=.golangci-ci.yml
2731
skip-cache: true
2832
skip-pkg-cache: true

.golangci-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ issues:
2828
- text: "unsupported version: 2"
2929
linters:
3030
- typecheck
31+
- text: "could not load export data: internal error in importing"
32+
linters:
33+
- goanalysis_metalinter
3134

3235
output:
3336
sort-results: true

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/theblitlabs/parity-client
22

33
go 1.23.0
44

5-
toolchain go1.24.0
5+
toolchain go1.24.5
66

77
replace github.com/theblitlabs/gologger => ./pkg/gologger
88

0 commit comments

Comments
 (0)