Skip to content

Commit fe00e0a

Browse files
author
nchika
committed
Support go 1.24 or later
1 parent f6fe270 commit fe00e0a

File tree

5 files changed

+34
-34
lines changed

5 files changed

+34
-34
lines changed

.github/workflows/unit_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
go:
2121
- "1"
2222
- "1.24"
23-
- "1.23"
2423
fail-fast: false
2524
runs-on: ${{ matrix.os }}
2625

.golangci.yml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,59 @@
1+
version: "2"
12
run:
23
go: "1.20"
3-
4-
issues:
5-
exclude-use-default: false
6-
74
linters:
8-
disable-all: true
5+
default: none
96
enable:
10-
- deadcode
11-
- errcheck
12-
- gosimple
13-
- govet
14-
- ineffassign
15-
- staticcheck
16-
- structcheck
17-
- typecheck
18-
- unused
19-
- varcheck
207
- asciicheck
218
- bodyclose
229
- dogsled
2310
- durationcheck
11+
- errcheck
2412
- errorlint
2513
- exhaustive
26-
- exportloopref
2714
- forcetypeassert
2815
- gochecknoglobals
2916
- gochecknoinits
3017
- goconst
3118
- gocritic
32-
- goimports
33-
- gomnd
3419
- gosec
35-
- ifshort
20+
- govet
21+
- ineffassign
3622
- misspell
23+
- mnd
3724
- nakedret
3825
- noctx
3926
- nolintlint
4027
- paralleltest
4128
- prealloc
4229
- rowserrcheck
4330
- sqlclosecheck
44-
- stylecheck
31+
- staticcheck
4532
- tagliatelle
4633
- thelper
4734
- unconvert
4835
- unparam
36+
- unused
4937
- wastedassign
5038
- whitespace
51-
linters-settings:
52-
tagliatelle:
53-
case:
54-
use-field-name: true
55-
rules:
56-
json: snake
39+
settings:
40+
tagliatelle:
41+
case:
42+
rules:
43+
json: snake
44+
use-field-name: true
45+
exclusions:
46+
generated: lax
47+
paths:
48+
- third_party$
49+
- builtin$
50+
- examples$
51+
formatters:
52+
enable:
53+
- goimports
54+
exclusions:
55+
generated: lax
56+
paths:
57+
- third_party$
58+
- builtin$
59+
- examples$

cmd/root_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ subaru = github.com/nao1215/subaru
383383
})
384384

385385
if !file.IsFile(config.FilePath()) {
386-
t.Errorf(config.FilePath() + " does not exist. failed to generate")
386+
t.Error(config.FilePath() + " does not exist. failed to generate")
387387
continue
388388
}
389389

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/nao1215/gup
22

3-
go 1.23.0
4-
5-
toolchain go1.24.0
3+
go 1.24.0
64

75
require (
86
github.com/adrg/xdg v0.5.3
@@ -16,7 +14,7 @@ require (
1614
github.com/shogo82148/pointer v1.3.0
1715
github.com/spf13/cobra v1.9.1
1816
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
19-
golang.org/x/sync v0.12.0
17+
golang.org/x/sync v0.13.0
2018
)
2119

2220
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af h1:6yITBqGTE2lEeTPG0
4444
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af/go.mod h1:4F09kP5F+am0jAwlQLddpoMDM+iewkxxt6nxUQ5nq5o=
4545
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 h1:k/i9J1pBpvlfR+9QsetwPyERsqu1GIbi967PQMq3Ivc=
4646
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
47-
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
48-
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
47+
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
48+
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
4949
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5050
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5151
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=

0 commit comments

Comments
 (0)