Skip to content

Commit 93e5fe8

Browse files
authored
Merge pull request #163 from Vincent056/go1.23
update go version to 1.23
2 parents 1dfaf01 + 7920222 commit 93e5fe8

File tree

945 files changed

+35433
-39106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

945 files changed

+35433
-39106
lines changed

.golangci.yml

Lines changed: 76 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,35 @@
1-
---
1+
version: "2"
22
run:
3+
concurrency: 6
34
build-tags:
45
- netgo
56
- e2e
6-
concurrency: 6
7-
deadline: 5m
87
linters:
9-
disable-all: true
8+
default: none
109
enable:
1110
- asciicheck
1211
- bodyclose
13-
- deadcode
14-
- depguard
1512
- dogsled
1613
- dupl
14+
- err113
1715
- errcheck
1816
- errorlint
1917
- exhaustive
20-
- exportloopref
21-
- gci
2218
- gochecknoinits
2319
- gocognit
2420
- goconst
2521
- gocritic
2622
- gocyclo
27-
# TODO(jaosorior): Re-Add later
28-
#- godot
2923
- godox
30-
- goerr113
31-
- gofmt
32-
- gofumpt
3324
- goheader
34-
- goimports
35-
- golint
36-
- gomnd
3725
- gomodguard
3826
- goprintffuncname
3927
- gosec
40-
- gosimple
4128
- govet
4229
- ineffassign
43-
- interfacer
4430
- lll
45-
- maligned
4631
- misspell
32+
- mnd
4733
- nakedret
4834
- nestif
4935
- noctx
@@ -52,101 +38,80 @@ linters:
5238
- rowserrcheck
5339
- sqlclosecheck
5440
- staticcheck
55-
- structcheck
56-
- stylecheck
5741
- tparallel
58-
- typecheck
5942
- unconvert
6043
- unparam
6144
- unused
62-
- varcheck
6345
- whitespace
6446
- wrapcheck
65-
# - exhaustivestruct
66-
# - funlen
67-
# - gochecknoglobals
68-
# - nlreturn
69-
# - scopelint
70-
# - testpackage
71-
# - wsl
72-
linters-settings:
73-
gci:
74-
local-prefixes: containers/selinuxd
75-
errcheck:
76-
check-type-assertions: true
77-
check-blank: true
78-
godox:
79-
keywords:
80-
- BUG
81-
- FIXME
82-
- HACK
83-
gocritic:
84-
enabled-checks:
85-
# Diagnostic
86-
- appendAssign
87-
- argOrder
88-
- badCond
89-
- caseOrder
90-
- codegenComment
91-
- commentedOutCode
92-
- deprecatedComment
93-
- dupArg
94-
- dupBranchBody
95-
- dupCase
96-
- dupSubExpr
97-
- exitAfterDefer
98-
- flagDeref
99-
- flagName
100-
- nilValReturn
101-
- offBy1
102-
- sloppyReassign
103-
- weakCond
104-
- octalLiteral
105-
106-
# Performance
107-
- appendCombine
108-
- equalFold
109-
- hugeParam
110-
- indexAlloc
111-
- rangeExprCopy
112-
- rangeValCopy
113-
114-
# Style
115-
- assignOp
116-
- boolExprSimplify
117-
- captLocal
118-
- commentFormatting
119-
- commentedOutImport
120-
- defaultCaseOrder
121-
- docStub
122-
- elseif
123-
- emptyFallthrough
124-
- emptyStringTest
125-
- hexLiteral
126-
- ifElseChain
127-
- methodExprCall
128-
- regexpMust
129-
- singleCaseSwitch
130-
- sloppyLen
131-
- stringXbytes
132-
- switchTrue
133-
- typeAssertChain
134-
- typeSwitchVar
135-
- underef
136-
- unlabelStmt
137-
- unlambda
138-
- unslice
139-
- valSwap
140-
- wrapperFunc
141-
- yodaStyleExpr
142-
143-
# Opinionated
144-
- builtinShadow
145-
- importShadow
146-
- initClause
147-
- nestingReduce
148-
- paramTypeCombine
149-
- ptrToRefParam
150-
- typeUnparen
151-
- unnamedResult
152-
- unnecessaryBlock
47+
settings:
48+
errcheck:
49+
check-type-assertions: true
50+
check-blank: true
51+
gocritic:
52+
enabled-checks:
53+
- commentedOutCode
54+
- nilValReturn
55+
- sloppyReassign
56+
- weakCond
57+
- octalLiteral
58+
- appendCombine
59+
- equalFold
60+
- hugeParam
61+
- indexAlloc
62+
- rangeExprCopy
63+
- rangeValCopy
64+
- boolExprSimplify
65+
- commentedOutImport
66+
- docStub
67+
- emptyFallthrough
68+
- emptyStringTest
69+
- hexLiteral
70+
- methodExprCall
71+
- stringXbytes
72+
- typeAssertChain
73+
- unlabelStmt
74+
- yodaStyleExpr
75+
- builtinShadow
76+
- importShadow
77+
- initClause
78+
- nestingReduce
79+
- paramTypeCombine
80+
- ptrToRefParam
81+
- typeUnparen
82+
- unnamedResult
83+
- unnecessaryBlock
84+
godox:
85+
keywords:
86+
- BUG
87+
- FIXME
88+
- HACK
89+
exclusions:
90+
generated: lax
91+
presets:
92+
- comments
93+
- common-false-positives
94+
- legacy
95+
- std-error-handling
96+
paths:
97+
- third_party$
98+
- builtin$
99+
- examples$
100+
formatters:
101+
enable:
102+
- gci
103+
- gofmt
104+
- gofumpt
105+
- goimports
106+
settings:
107+
gci:
108+
sections:
109+
- Standard
110+
- Default
111+
- Prefix(containers/selinuxd)
112+
exclusions:
113+
generated: lax
114+
paths:
115+
- third_party$
116+
- builtin$
117+
- examples$

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GO_PROJECT := github.com/containers/$(PROJECT)
1111

1212
# External Helper variables
1313

14-
GOLANGCI_LINT_VERSION=1.50.1
14+
GOLANGCI_LINT_VERSION=2.1.2
1515
GOLANGCI_LINT_OS=linux
1616
ifeq ($(OS_NAME), Darwin)
1717
GOLANGCI_LINT_OS=darwin

go.mod

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,46 @@
11
module github.com/containers/selinuxd
22

3-
go 1.19
3+
go 1.23.0
4+
5+
toolchain go1.23.8
46

57
require (
68
github.com/cenkalti/backoff/v4 v4.2.1
7-
github.com/fsnotify/fsnotify v1.6.0
8-
github.com/go-chi/chi/v5 v5.0.8
9-
github.com/go-logr/logr v1.2.4
10-
github.com/go-logr/zapr v1.2.4
9+
github.com/fsnotify/fsnotify v1.9.0
10+
github.com/go-chi/chi/v5 v5.2.1
11+
github.com/go-logr/logr v1.4.2
12+
github.com/go-logr/zapr v1.3.0
1113
github.com/mitchellh/go-homedir v1.1.0
1214
github.com/olekukonko/tablewriter v0.0.5
13-
github.com/onsi/ginkgo/v2 v2.11.0
14-
github.com/onsi/gomega v1.27.8
15-
github.com/spf13/cobra v1.7.0
16-
github.com/spf13/viper v1.17.0
17-
go.etcd.io/bbolt v1.3.7
18-
go.uber.org/zap v1.24.0
15+
github.com/onsi/ginkgo/v2 v2.23.4
16+
github.com/onsi/gomega v1.37.0
17+
github.com/spf13/cobra v1.9.1
18+
github.com/spf13/viper v1.20.1
19+
go.etcd.io/bbolt v1.4.0
20+
go.uber.org/zap v1.27.0
1921
)
2022

2123
require (
22-
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
23-
github.com/google/go-cmp v0.5.9 // indirect
24-
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
25-
github.com/hashicorp/hcl v1.0.0 // indirect
24+
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
25+
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
26+
github.com/google/go-cmp v0.7.0 // indirect
27+
github.com/google/pprof v0.0.0-20250418163039-24c5476c6587 // indirect
2628
github.com/inconshreveable/mousetrap v1.1.0 // indirect
27-
github.com/magiconair/properties v1.8.7 // indirect
28-
github.com/mattn/go-runewidth v0.0.14 // indirect
29-
github.com/mitchellh/mapstructure v1.5.0 // indirect
30-
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
31-
github.com/rivo/uniseg v0.4.2 // indirect
32-
github.com/sagikazarmark/locafero v0.3.0 // indirect
33-
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
29+
github.com/mattn/go-runewidth v0.0.16 // indirect
30+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
31+
github.com/rivo/uniseg v0.4.7 // indirect
32+
github.com/sagikazarmark/locafero v0.9.0 // indirect
3433
github.com/sourcegraph/conc v0.3.0 // indirect
35-
github.com/spf13/afero v1.10.0 // indirect
36-
github.com/spf13/cast v1.5.1 // indirect
37-
github.com/spf13/pflag v1.0.5 // indirect
34+
github.com/spf13/afero v1.14.0 // indirect
35+
github.com/spf13/cast v1.7.1 // indirect
36+
github.com/spf13/pflag v1.0.6 // indirect
3837
github.com/subosito/gotenv v1.6.0 // indirect
39-
go.uber.org/atomic v1.10.0 // indirect
40-
go.uber.org/multierr v1.9.0 // indirect
41-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
42-
golang.org/x/net v0.15.0 // indirect
43-
golang.org/x/sys v0.12.0 // indirect
44-
golang.org/x/text v0.13.0 // indirect
45-
golang.org/x/tools v0.13.0 // indirect
38+
go.uber.org/automaxprocs v1.6.0 // indirect
39+
go.uber.org/multierr v1.11.0 // indirect
40+
golang.org/x/net v0.39.0 // indirect
41+
golang.org/x/sys v0.32.0 // indirect
42+
golang.org/x/text v0.24.0 // indirect
43+
golang.org/x/tools v0.32.0 // indirect
4644
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
47-
gopkg.in/ini.v1 v1.67.0 // indirect
4845
gopkg.in/yaml.v3 v3.0.1 // indirect
4946
)

0 commit comments

Comments
 (0)