Skip to content

Commit 83743b6

Browse files
authored
chore: apply go fix modernizations and bump dependencies (#1034)
1 parent 5de4fb4 commit 83743b6

File tree

14 files changed

+114
-128
lines changed

14 files changed

+114
-128
lines changed

database/store_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func testStore(
110110
require.NoError(t, err)
111111

112112
// Insert 5 migrations in addition to the zero migration.
113-
for i := 0; i < 6; i++ {
113+
for i := range 6 {
114114
err = runConn(ctx, db, func(conn *sql.Conn) error {
115115
err := store.Insert(ctx, conn, database.InsertRequest{Version: int64(i)})
116116
require.NoError(t, err)
@@ -128,7 +128,7 @@ func testStore(
128128
require.NoError(t, err)
129129
require.Len(t, res, 6)
130130
// Check versions are in descending order.
131-
for i := 0; i < 6; i++ {
131+
for i := range 6 {
132132
require.EqualValues(t, res[i].Version, 5-i)
133133
}
134134
return nil
@@ -154,15 +154,15 @@ func testStore(
154154
require.NoError(t, err)
155155
require.Len(t, res, 3)
156156
// Check that the remaining versions are in descending order.
157-
for i := 0; i < 3; i++ {
157+
for i := range 3 {
158158
require.EqualValues(t, res[i].Version, 2-i)
159159
}
160160
return nil
161161
})
162162
require.NoError(t, err)
163163

164164
// Get remaining migrations one by one.
165-
for i := 0; i < 3; i++ {
165+
for i := range 3 {
166166
err = runConn(ctx, db, func(conn *sql.Conn) error {
167167
res, err := store.GetMigration(ctx, conn, int64(i))
168168
require.NoError(t, err)

go.mod

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/pressly/goose/v3
22

3-
go 1.24.1
4-
5-
toolchain go1.24.5
3+
go 1.25.0
64

75
require (
86
github.com/ClickHouse/clickhouse-go/v2 v2.43.0
@@ -12,22 +10,22 @@ require (
1210
github.com/joho/godotenv v1.5.1
1311
github.com/mfridman/interpolate v0.0.2
1412
github.com/mfridman/xflag v0.1.0
15-
github.com/microsoft/go-mssqldb v1.9.3
13+
github.com/microsoft/go-mssqldb v1.9.6
1614
github.com/moby/moby/api v1.53.0
1715
github.com/moby/moby/client v0.2.2
1816
github.com/sethvargo/go-retry v0.3.0
1917
github.com/stretchr/testify v1.11.1
20-
github.com/tursodatabase/libsql-client-go v0.0.0-20240902231107-85af5b9d094d
21-
github.com/vertica/vertica-sql-go v1.3.4
22-
github.com/ydb-platform/ydb-go-sdk/v3 v3.126.4
18+
github.com/tursodatabase/libsql-client-go v0.0.0-20251219100830-236aa1ff8acc
19+
github.com/vertica/vertica-sql-go v1.3.5
20+
github.com/ydb-platform/ydb-go-sdk/v3 v3.127.0
2321
github.com/ziutek/mymysql v1.5.4
2422
go.uber.org/multierr v1.11.0
2523
golang.org/x/sync v0.19.0
26-
modernc.org/sqlite v1.44.3
24+
modernc.org/sqlite v1.46.1
2725
)
2826

2927
require (
30-
filippo.io/edwards25519 v1.1.0 // indirect
28+
filippo.io/edwards25519 v1.2.0 // indirect
3129
github.com/ClickHouse/ch-go v0.71.0 // indirect
3230
github.com/Microsoft/go-winio v0.6.2 // indirect
3331
github.com/andybalholm/brotli v1.2.0 // indirect
@@ -55,7 +53,7 @@ require (
5553
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
5654
github.com/jackc/puddle/v2 v2.2.2 // indirect
5755
github.com/jonboulle/clockwork v0.5.0 // indirect
58-
github.com/klauspost/compress v1.18.3 // indirect
56+
github.com/klauspost/compress v1.18.4 // indirect
5957
github.com/mattn/go-isatty v0.0.20 // indirect
6058
github.com/moby/docker-image-spec v1.3.1 // indirect
6159
github.com/ncruces/go-strftime v1.0.0 // indirect
@@ -68,24 +66,24 @@ require (
6866
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
6967
github.com/segmentio/asm v1.2.1 // indirect
7068
github.com/shopspring/decimal v1.4.0 // indirect
71-
github.com/ydb-platform/ydb-go-genproto v0.0.0-20251125145508-6d7ef87db5cb // indirect
69+
github.com/ydb-platform/ydb-go-genproto v0.0.0-20260128080146-c4ed16b24b37 // indirect
7270
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
73-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
74-
go.opentelemetry.io/otel v1.39.0 // indirect
75-
go.opentelemetry.io/otel/metric v1.39.0 // indirect
76-
go.opentelemetry.io/otel/trace v1.39.0 // indirect
71+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.65.0 // indirect
72+
go.opentelemetry.io/otel v1.40.0 // indirect
73+
go.opentelemetry.io/otel/metric v1.40.0 // indirect
74+
go.opentelemetry.io/otel/trace v1.40.0 // indirect
7775
go.yaml.in/yaml/v3 v3.0.4 // indirect
78-
golang.org/x/crypto v0.47.0 // indirect
79-
golang.org/x/exp v0.0.0-20251113190631-e25ba8c21ef6 // indirect
80-
golang.org/x/net v0.49.0 // indirect
81-
golang.org/x/sys v0.40.0 // indirect
82-
golang.org/x/text v0.33.0 // indirect
83-
google.golang.org/genproto/googleapis/rpc v0.0.0-20251111163417-95abcf5c77ba // indirect
84-
google.golang.org/grpc v1.76.0 // indirect
85-
google.golang.org/protobuf v1.36.10 // indirect
76+
golang.org/x/crypto v0.48.0 // indirect
77+
golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa // indirect
78+
golang.org/x/net v0.50.0 // indirect
79+
golang.org/x/sys v0.41.0 // indirect
80+
golang.org/x/text v0.34.0 // indirect
81+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260217215200-42d3e9bedb6d // indirect
82+
google.golang.org/grpc v1.79.1 // indirect
83+
google.golang.org/protobuf v1.36.11 // indirect
8684
gopkg.in/yaml.v3 v3.0.1 // indirect
8785
howett.net/plist v1.0.1 // indirect
88-
modernc.org/libc v1.67.6 // indirect
86+
modernc.org/libc v1.68.0 // indirect
8987
modernc.org/mathutil v1.7.1 // indirect
9088
modernc.org/memory v1.11.0 // indirect
9189
)

0 commit comments

Comments
 (0)