From 9e465d1d98cb4ea620b5a8c6346d841037f106b5 Mon Sep 17 00:00:00 2001 From: Marc Alvarez Date: Thu, 22 Oct 2026 01:08:14 -0600 Subject: [PATCH 1/3] Require Go 1.26, not 1.27 Nothing in testdb needs Go 1.27; the newest features in use are WaitGroup.Go (1.25) and b.Loop and t.Context (1.24). Every module's go directive is now 1.26.0, so testdb builds on 1.26 and later, and CI tests on both 1.26 and 1.27. --- .github/workflows/ci.yml | 3 ++- go.mod | 2 +- go.work | 2 +- migrate/golangmigrate/go.mod | 2 +- migrate/goose/go.mod | 2 +- migrate/tern/go.mod | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7220b8d..c10298a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - go-version: ['1.27'] + # The oldest Go version testdb supports, and the current one + go-version: ['1.26', '1.27'] services: postgres: diff --git a/go.mod b/go.mod index e73103b..c42597e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bashhack/testdb -go 1.27.0 +go 1.26.0 require ( github.com/go-sql-driver/mysql v1.10.1 diff --git a/go.work b/go.work index cf482f4..2549c1d 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.27.0 +go 1.26.0 use ( . diff --git a/migrate/golangmigrate/go.mod b/migrate/golangmigrate/go.mod index 2f7b041..6f7b26d 100644 --- a/migrate/golangmigrate/go.mod +++ b/migrate/golangmigrate/go.mod @@ -1,6 +1,6 @@ module github.com/bashhack/testdb/migrate/golangmigrate -go 1.27.0 +go 1.26.0 require ( github.com/bashhack/testdb v0.0.0 diff --git a/migrate/goose/go.mod b/migrate/goose/go.mod index 10ddab4..2803f81 100644 --- a/migrate/goose/go.mod +++ b/migrate/goose/go.mod @@ -1,6 +1,6 @@ module github.com/bashhack/testdb/migrate/goose -go 1.27.0 +go 1.26.0 require ( github.com/bashhack/testdb v0.0.0 diff --git a/migrate/tern/go.mod b/migrate/tern/go.mod index 7ecff1e..1e7d43d 100644 --- a/migrate/tern/go.mod +++ b/migrate/tern/go.mod @@ -1,6 +1,6 @@ module github.com/bashhack/testdb/migrate/tern -go 1.27.0 +go 1.26.0 require ( github.com/bashhack/testdb v0.0.0 From ac5dcb30170fef1883cc1fdf8ee9111286eeeff5 Mon Sep 17 00:00:00 2001 From: Marc Alvarez Date: Thu, 22 Oct 2026 01:09:30 -0600 Subject: [PATCH 2/3] README: Go 1.26 or later --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b480d9e..8e7573d 100644 --- a/README.md +++ b/README.md @@ -563,7 +563,7 @@ All examples are also visible in the [package documentation](https://pkg.go.dev/ ## Requirements - A PostgreSQL or MySQL server, local or reachable -- Go 1.27+ +- Go 1.26 or later ## License From 08d07a94ca80f2892dac30d7f95e157b02b58383 Mon Sep 17 00:00:00 2001 From: Marc Alvarez Date: Thu, 22 Oct 2026 01:11:07 -0600 Subject: [PATCH 3/3] Tidy the tern adapter's go.mod --- go.work.sum | 3 +++ migrate/tern/go.mod | 2 +- migrate/tern/go.sum | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go.work.sum b/go.work.sum index 275cf34..e325b0c 100644 --- a/go.work.sum +++ b/go.work.sum @@ -140,6 +140,7 @@ github.com/rqlite/gorqlite v0.0.0-20230708021416-2acd02b70b79/go.mod h1:xF/KoXmr github.com/segmentio/asm v1.2.1/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= github.com/shopspring/decimal v1.5.0 h1:HxSWk31RmJv0EyY4oLiGQB9u7WPludUwPBdvQZnYFPc= github.com/shopspring/decimal v1.5.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/snowflakedb/gosnowflake v1.6.19/go.mod h1:FM1+PWUdwB9udFDsXdfD58NONC0m+MlOSmQRvimobSM= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= @@ -188,6 +189,7 @@ golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/telemetry v0.0.0-20260924152758-ed294f943157/go.mod h1:i+ivNqjDnTF3WTElsdk5g9V5DTSBYgdNo7xTU9SDwYA= golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4= golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= @@ -205,6 +207,7 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gorm.io/driver/sqlite v1.6.0/go.mod h1:AO9V1qIQddBESngQUKWL9yoH93HIeA1X6V633rBwyT8= howett.net/plist v1.0.1/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g= lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= modernc.org/b v1.0.0/go.mod h1:uZWcZfRj1BpYzfN9JTerzlNUnnPsV9O2ZA8JsRcubNg= diff --git a/migrate/tern/go.mod b/migrate/tern/go.mod index 1e7d43d..cce9c62 100644 --- a/migrate/tern/go.mod +++ b/migrate/tern/go.mod @@ -4,7 +4,7 @@ go 1.26.0 require ( github.com/bashhack/testdb v0.0.0 - github.com/jackc/pgx/v5 v5.10.0 + github.com/jackc/pgx/v5 v5.11.0 github.com/jackc/tern/v2 v2.4.3 ) diff --git a/migrate/tern/go.sum b/migrate/tern/go.sum index e0634cd..dbb6595 100644 --- a/migrate/tern/go.sum +++ b/migrate/tern/go.sum @@ -19,8 +19,8 @@ github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsI github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo= github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= -github.com/jackc/pgx/v5 v5.10.0 h1:VhSvgU2jSli8o3AqIEOTJr7rZwAEUVo4E4XhR94Zfr0= -github.com/jackc/pgx/v5 v5.10.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4= +github.com/jackc/pgx/v5 v5.11.0 h1:IzBBtyK9AHqf98cctWFifYSci2hgQR/cd56wB4p+ogg= +github.com/jackc/pgx/v5 v5.11.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4= github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo= github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= github.com/jackc/tern/v2 v2.4.3 h1:g293d3OZgW7OFEhsYXgEv0C21jea2boNr0VR4K5I7OY=