Skip to content

Commit a72afb5

Browse files
authored
feat: bump to Go 1.22 (#2121)
This commit also bumps all deps to latest.
1 parent 47f4da7 commit a72afb5

File tree

5 files changed

+53
-2212
lines changed

5 files changed

+53
-2212
lines changed

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v3
2424
with:
25-
go-version: "1.21"
25+
go-version: "1.22"
2626

2727
- name: Checkout base branch
2828
uses: actions/checkout@v3

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Go
2828
uses: actions/setup-go@v3
2929
with:
30-
go-version: "1.21"
30+
go-version: "1.22"
3131
- name: Install goimports
3232
run: go install golang.org/x/tools/cmd/goimports@latest
3333
- name: Checkout code

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: "ubuntu-latest"
3030
strategy:
3131
matrix:
32-
go-version: ["1.19", "1.21"]
32+
go-version: ["1.20", "1.22"]
3333
fail-fast: false
3434
permissions:
3535
contents: 'read'
@@ -125,7 +125,7 @@ jobs:
125125
- name: Setup Go
126126
uses: actions/setup-go@v3
127127
with:
128-
go-version: "1.21"
128+
go-version: "1.22"
129129

130130
- id: 'auth'
131131
name: 'Authenticate to Google Cloud'

go.mod

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
module github.com/GoogleCloudPlatform/cloudsql-proxy
22

3-
go 1.17
3+
go 1.20
44

55
require (
66
cloud.google.com/go/compute/metadata v0.2.3
77
github.com/coreos/go-systemd/v22 v22.5.0
88
github.com/go-sql-driver/mysql v1.7.1
9-
github.com/hanwen/go-fuse/v2 v2.4.0
9+
github.com/hanwen/go-fuse/v2 v2.5.0
1010
github.com/jackc/pgx/v4 v4.18.1
1111
github.com/lib/pq v1.10.9
1212
github.com/microsoft/go-mssqldb v1.6.0
13-
go.uber.org/zap v1.26.0
14-
golang.org/x/net v0.20.0
15-
golang.org/x/oauth2 v0.16.0
16-
golang.org/x/sys v0.16.0
13+
go.uber.org/zap v1.27.0
14+
golang.org/x/net v0.21.0
15+
golang.org/x/oauth2 v0.17.0
16+
golang.org/x/sys v0.17.0
1717
golang.org/x/time v0.5.0
18-
google.golang.org/api v0.156.0
18+
google.golang.org/api v0.165.0
1919
)
2020

2121
require (
2222
cloud.google.com/go/compute v1.23.3 // indirect
2323
github.com/felixge/httpsnoop v1.0.4 // indirect
24-
github.com/go-logr/logr v1.3.0 // indirect
24+
github.com/go-logr/logr v1.4.1 // indirect
2525
github.com/go-logr/stdr v1.2.2 // indirect
2626
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
2727
github.com/golang-sql/sqlexp v0.1.0 // indirect
2828
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
2929
github.com/golang/protobuf v1.5.3 // indirect
3030
github.com/google/s2a-go v0.1.7 // indirect
31-
github.com/google/uuid v1.5.0 // indirect
31+
github.com/google/uuid v1.6.0 // indirect
3232
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
3333
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
3434
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
@@ -40,15 +40,15 @@ require (
4040
github.com/jackc/pgtype v1.14.0 // indirect
4141
github.com/pkg/errors v0.9.1 // indirect
4242
go.opencensus.io v0.24.0 // indirect
43-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect
44-
go.opentelemetry.io/otel v1.21.0 // indirect
45-
go.opentelemetry.io/otel/metric v1.21.0 // indirect
46-
go.opentelemetry.io/otel/trace v1.21.0 // indirect
43+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
44+
go.opentelemetry.io/otel v1.23.0 // indirect
45+
go.opentelemetry.io/otel/metric v1.23.0 // indirect
46+
go.opentelemetry.io/otel/trace v1.23.0 // indirect
4747
go.uber.org/multierr v1.10.0 // indirect
48-
golang.org/x/crypto v0.18.0 // indirect
48+
golang.org/x/crypto v0.19.0 // indirect
4949
golang.org/x/text v0.14.0 // indirect
5050
google.golang.org/appengine v1.6.8 // indirect
51-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 // indirect
52-
google.golang.org/grpc v1.60.1 // indirect
51+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 // indirect
52+
google.golang.org/grpc v1.61.0 // indirect
5353
google.golang.org/protobuf v1.32.0 // indirect
5454
)

0 commit comments

Comments
 (0)