Skip to content

Commit 0c5bbdc

Browse files
authored
*: upgrade to go1.23 (#264)
close #263
1 parent 78151ff commit 0c5bbdc

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.golangci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ linters:
66
- misspell
77
- ineffassign
88
- typecheck
9-
- varcheck
9+
# - varcheck
1010
- unused
11-
- structcheck
12-
- deadcode
11+
# - structcheck
12+
# - deadcode
1313
- gosimple
1414
- goimports
1515
- errcheck
@@ -18,7 +18,8 @@ linters:
1818
- gosec
1919
- asciicheck
2020
- bodyclose
21-
- exportloopref
21+
# - exportloopref
22+
- copyloopvar
2223
- rowserrcheck
2324
- unconvert
2425
- makezero
@@ -38,3 +39,6 @@ issues:
3839
- gosec
3940
- rowserrcheck
4041
- makezero
42+
- linters:
43+
- gosec
44+
text: "G115:"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ lint: tools/bin/golangci-lint
4848
GO111MODULE=on tools/bin/golangci-lint run -v $$($(PACKAGE_DIRECTORIES)) --config .golangci.yml
4949

5050
tools/bin/golangci-lint:
51-
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ./tools/bin v1.55.2
51+
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ./tools/bin v1.61.0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pingcap/ng-monitoring
22

3-
go 1.21
3+
go 1.23
44

55
require (
66
github.com/BurntSushi/toml v1.3.2

0 commit comments

Comments
 (0)