Skip to content

Commit cf98d83

Browse files
Merge pull request #1000 from thockin/master
Bump golang.org/x/sys to latest
2 parents 5badec7 + 1e98577 commit cf98d83

356 files changed

Lines changed: 48318 additions & 13690 deletions

File tree

Some content is hidden

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

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up go
2020
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2121
with:
22-
go-version: '1.24.1'
22+
go-version: '1.25.12'
2323

2424
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up go
3737
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
3838
with:
39-
go-version: '1.24.1'
39+
go-version: '1.25.12'
4040

4141
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4242
with:
@@ -61,7 +61,7 @@ jobs:
6161
- name: Set up go
6262
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
6363
with:
64-
go-version: '1.24.1'
64+
go-version: '1.25.12'
6565

6666
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6767
with:
@@ -75,7 +75,7 @@ jobs:
7575
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9
7676
with:
7777
working-directory: git-sync
78-
version: v2.1.0
78+
version: v2.12.2
7979

8080
- name: make lint
8181
working-directory: git-sync

.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linters:
2424
- cyclop
2525
- depguard
2626
- dupl
27+
- embeddedstructfieldcheck
2728
- err113
2829
- exhaustruct
2930
- funcorder
@@ -40,6 +41,8 @@ linters:
4041
- musttag
4142
- nestif
4243
- nlreturn
44+
- noctx
45+
- noinlineerr
4346
- paralleltest
4447
- perfsprint
4548
- promlinter
@@ -50,6 +53,7 @@ linters:
5053
- varnamelen
5154
- wrapcheck
5255
- wsl
56+
- wsl_v5
5357

5458
settings: # please keep this alphabetized
5559
staticcheck:

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,20 @@ bin-clean:
295295
rm -rf .go bin
296296

297297
lint-golangci-lint:
298-
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.0 run -v
298+
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2 run -v
299299

300300
lint-shellcheck:
301+
@img="docker.io/koalaman/shellcheck-alpine:v0.9.0"; \
302+
for i in `seq 1 5`; do \
303+
docker pull "$$img" && break; \
304+
echo "shellcheck image pull failed (attempt $$i), retrying..."; \
305+
sleep $$((i * 2)); \
306+
done; \
301307
docker run \
302308
--rm \
303309
-v `pwd`:`pwd` \
304310
-w `pwd` \
305-
docker.io/koalaman/shellcheck-alpine:v0.9.0 \
311+
"$$img" \
306312
shellcheck \
307313
$$(git ls-files ':!:vendor' '*.sh')
308314

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/prometheus/client_golang v1.14.0
77
github.com/spf13/pflag v1.0.5
88
go.uber.org/goleak v1.2.1
9-
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
9+
golang.org/x/sys v0.47.0
1010
)
1111

1212
require (
@@ -20,4 +20,4 @@ require (
2020
google.golang.org/protobuf v1.33.0 // indirect
2121
)
2222

23-
go 1.23
23+
go 1.25.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBc
335335
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
336336
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k=
337337
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
338+
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
339+
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
338340
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
339341
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
340342
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ func sleepForever() {
13001300
// exits the process with the exit code.
13011301
//
13021302
//nolint:unparam
1303-
func fatalConfigErrorf(log *logging.Logger, printUsage bool, format string, a ...interface{}) {
1303+
func fatalConfigErrorf(log *logging.Logger, printUsage bool, format string, a ...any) {
13041304
s := fmt.Sprintf(format, a...)
13051305
fmt.Fprintln(os.Stderr, s)
13061306
if printUsage {
@@ -2164,7 +2164,7 @@ func (git *repoSync) CallAskPassURL(ctx context.Context) error {
21642164

21652165
username := ""
21662166
password := ""
2167-
for _, line := range strings.Split(string(authData), "\n") {
2167+
for line := range strings.SplitSeq(string(authData), "\n") {
21682168
keyValues := strings.SplitN(line, "=", 2)
21692169
if len(keyValues) != 2 {
21702170
continue

pkg/cmd/cmd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ type Runner struct {
3636

3737
// Just the logr methods we need in this package.
3838
type logintf interface {
39-
Info(msg string, keysAndValues ...interface{})
40-
Error(err error, msg string, keysAndValues ...interface{})
39+
Info(msg string, keysAndValues ...any)
40+
Error(err error, msg string, keysAndValues ...any)
4141
V(level int) logr.Logger
4242
WithCallDepth(depth int) logr.Logger
4343
}

pkg/hook/hook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ type HookRunner struct {
114114

115115
// Just the logr methods we need in this package.
116116
type logintf interface {
117-
Info(msg string, keysAndValues ...interface{})
118-
Error(err error, msg string, keysAndValues ...interface{})
117+
Info(msg string, keysAndValues ...any)
118+
Error(err error, msg string, keysAndValues ...any)
119119
V(level int) logr.Logger
120120
}
121121

pkg/logging/logging.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ func New(root string, errorFile string, verbosity int) *Logger {
4646
}
4747

4848
// Error implements logr.Logger.Error.
49-
func (l *Logger) Error(err error, msg string, kvList ...interface{}) {
49+
func (l *Logger) Error(err error, msg string, kvList ...any) {
5050
l.Logger.WithCallDepth(1).Error(err, msg, kvList...)
5151
if l.errorFile == "" {
5252
return
5353
}
5454
payload := struct {
5555
Msg string
5656
Err string
57-
Args map[string]interface{}
57+
Args map[string]any
5858
}{
5959
Msg: msg,
60-
Args: map[string]interface{}{},
60+
Args: map[string]any{},
6161
}
6262
if err != nil {
6363
payload.Err = err.Error()

test_e2e.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4021,7 +4021,6 @@ for arg; do
40214021
print_tests
40224022
exit 1
40234023
fi
4024-
tests_to_run+=("${matches[@]}")
40254024
done
40264025
set -- "${tests_to_run[@]}"
40274026

0 commit comments

Comments
 (0)