Skip to content

Commit 2117100

Browse files
committed
Merge pull request #83 from kuzmik/kuzmik/upgrade-dependencies
chore: upgrade dependencies
2 parents d5d1309 + 44cb72b commit 2117100

File tree

7 files changed

+156
-106
lines changed

7 files changed

+156
-106
lines changed

.devcontainer/devcontainer.json

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/go
31
{
42
"name": "Go",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
63
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
74
"features": {
8-
"ghcr.io/devcontainers/features/go:1": {
9-
"version": "latest"
10-
},
11-
"ghcr.io/guiyomh/features/golangci-lint:0": {
12-
"version": "latest"
13-
},
14-
"ghcr.io/marcozac/devcontainer-features/gofumpt:1": {
15-
"version": "latest"
16-
}
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
6+
"ghcr.io/marcozac/devcontainer-features/gofumpt:1": {}
177
},
188
"remoteUser": "root"
199
}

.github/workflows/golangci-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-go@v5
2121
with:
22-
go-version: '1.22.1'
22+
go-version: '1.23.4'
2323
cache: false
2424

2525
- name: golangci-lint
@@ -28,7 +28,7 @@ jobs:
2828
# Require: The version of golangci-lint to use.
2929
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
3030
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
31-
version: v1.57.1
31+
version: v1.62.2
3232

3333
# Optional: working directory, useful for monorepos
3434
# working-directory: somedir

.github/workflows/test.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v5
1414
with:
15-
go-version: '1.22.1'
16-
17-
- name: Vet
18-
run: go vet ./...
15+
go-version: '1.23.4'
1916

2017
- name: Test
2118
run: go test -v ./...

.golangci.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ linters:
88
disable-all: true
99
enable:
1010
- copyloopvar
11-
- decorder
1211
- dupl
1312
- dupword
1413
- durationcheck
@@ -17,10 +16,11 @@ linters:
1716
- errorlint
1817
- forcetypeassert
1918
# - forbidigo
20-
- gochecknoglobals
21-
- goconst
19+
- decorder
2220
- gocritic
2321
- godot
22+
- goconst
23+
- gochecknoglobals
2424
# - godox
2525
- gofmt
2626
- gofumpt
@@ -30,23 +30,23 @@ linters:
3030
- govet
3131
- ineffassign
3232
- makezero
33-
- misspell
33+
- nilnil
3434
- musttag
35+
- misspell
3536
- nilerr
36-
- nilnil
3737
- predeclared
38+
- staticcheck
3839
- reassign
3940
- revive
40-
- sloglint
41-
- staticcheck
4241
- tenv
43-
# - testifylint
4442
- unconvert
4543
- unparam
44+
- sloglint
4645
- unused
47-
- whitespace
46+
# - testifylint
4847
# - wrapcheck
4948
- wsl
49+
- whitespace
5050

5151
linters-settings:
5252
goconst:

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.3
2+
3+
- Basic devcontainers setup, will include more later
4+
- Go updated to 1.22.3 and updated all of the deps
5+
16
## 1.1.0
27

38
- More Go module updates
@@ -9,8 +14,7 @@
914
- Go module updates, fixed a breaking change that Viper introduced
1015
- Followed some guides on go project layouts to redo the project layout
1116
- Enabled some extra golangci checks and addressed as many of the findings as possible
12-
- fix: add a configurable namespace to the core pod selector. We have several proxysql namespaces,
13-
so being able to configure it at runtime is important
17+
- Add a configurable namespace to the core pod selector. We have several proxysql namespaces, so being able to configure it at runtime is important
1418
- Add goreleaser config and workflow
1519
- Added a config flag for logging format, defaults to json structured logs
1620
- Added restapi for proxysql healthcheck endpoints

go.mod

+33-34
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,73 @@
11
module github.com/persona-id/proxysql-agent
22

3-
go 1.22.0
3+
go 1.23.0
44

5-
toolchain go1.22.2
5+
toolchain go1.23.5
66

77
require (
88
github.com/go-sql-driver/mysql v1.8.1
99
github.com/spf13/pflag v1.0.6
1010
github.com/spf13/viper v1.19.0
11-
k8s.io/apimachinery v0.31.3
12-
k8s.io/client-go v0.31.3
11+
github.com/stretchr/testify v1.10.0
12+
gopkg.in/DATA-DOG/go-sqlmock.v2 v2.0.0-20180914054222-c19298f520d0
13+
k8s.io/api v0.32.1
14+
k8s.io/apimachinery v0.32.1
15+
k8s.io/client-go v0.32.1
1316
)
1417

1518
require (
1619
filippo.io/edwards25519 v1.1.0 // indirect
17-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
18-
github.com/x448/float16 v0.8.4 // indirect
19-
)
20-
21-
require (
2220
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
23-
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
24-
github.com/fsnotify/fsnotify v1.7.0 // indirect
21+
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
22+
github.com/fsnotify/fsnotify v1.8.0 // indirect
23+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
2524
github.com/go-logr/logr v1.4.2 // indirect
2625
github.com/go-openapi/jsonpointer v0.21.0 // indirect
2726
github.com/go-openapi/jsonreference v0.21.0 // indirect
2827
github.com/go-openapi/swag v0.23.0 // indirect
2928
github.com/gogo/protobuf v1.3.2 // indirect
3029
github.com/golang/protobuf v1.5.4 // indirect
31-
github.com/google/gnostic-models v0.6.8 // indirect
30+
github.com/google/gnostic-models v0.6.9 // indirect
3231
github.com/google/go-cmp v0.6.0 // indirect
3332
github.com/google/gofuzz v1.2.0 // indirect
3433
github.com/google/uuid v1.6.0 // indirect
3534
github.com/hashicorp/hcl v1.0.0 // indirect
3635
github.com/josharian/intern v1.0.0 // indirect
3736
github.com/json-iterator/go v1.1.12 // indirect
38-
github.com/magiconair/properties v1.8.7 // indirect
39-
github.com/mailru/easyjson v0.7.7 // indirect
37+
github.com/magiconair/properties v1.8.9 // indirect
38+
github.com/mailru/easyjson v0.9.0 // indirect
4039
github.com/mitchellh/mapstructure v1.5.0 // indirect
4140
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4241
github.com/modern-go/reflect2 v1.0.2 // indirect
4342
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
44-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
43+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
44+
github.com/pkg/errors v0.9.1 // indirect
4545
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
46-
github.com/sagikazarmark/locafero v0.4.0 // indirect
46+
github.com/sagikazarmark/locafero v0.7.0 // indirect
4747
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
4848
github.com/sourcegraph/conc v0.3.0 // indirect
49-
github.com/spf13/afero v1.11.0 // indirect
50-
github.com/spf13/cast v1.6.0 // indirect
51-
github.com/stretchr/testify v1.10.0
49+
github.com/spf13/afero v1.12.0 // indirect
50+
github.com/spf13/cast v1.7.1 // indirect
5251
github.com/subosito/gotenv v1.6.0 // indirect
52+
github.com/x448/float16 v0.8.4 // indirect
53+
go.uber.org/atomic v1.11.0 // indirect
5354
go.uber.org/multierr v1.11.0 // indirect
54-
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect
55-
golang.org/x/net v0.33.0 // indirect
56-
golang.org/x/oauth2 v0.21.0 // indirect
57-
golang.org/x/sys v0.28.0 // indirect
58-
golang.org/x/term v0.27.0 // indirect
59-
golang.org/x/text v0.21.0 // indirect
60-
golang.org/x/time v0.5.0 // indirect
61-
google.golang.org/protobuf v1.34.2 // indirect
62-
gopkg.in/DATA-DOG/go-sqlmock.v2 v2.0.0-20180914054222-c19298f520d0
55+
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac // indirect
56+
golang.org/x/net v0.35.0 // indirect
57+
golang.org/x/oauth2 v0.26.0 // indirect
58+
golang.org/x/sys v0.30.0 // indirect
59+
golang.org/x/term v0.29.0 // indirect
60+
golang.org/x/text v0.22.0 // indirect
61+
golang.org/x/time v0.10.0 // indirect
62+
google.golang.org/protobuf v1.36.5 // indirect
63+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
6364
gopkg.in/inf.v0 v0.9.1 // indirect
6465
gopkg.in/ini.v1 v1.67.0 // indirect
65-
gopkg.in/yaml.v2 v2.4.0 // indirect
6666
gopkg.in/yaml.v3 v3.0.1 // indirect
67-
k8s.io/api v0.31.3
6867
k8s.io/klog/v2 v2.130.1 // indirect
69-
k8s.io/kube-openapi v0.0.0-20240322212309-b815d8309940 // indirect
70-
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
71-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
72-
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
68+
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
69+
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect
70+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
71+
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
7372
sigs.k8s.io/yaml v1.4.0 // indirect
7473
)

0 commit comments

Comments
 (0)