Skip to content

Commit c227cd4

Browse files
jackcclaude
andcommitted
Bump minimum Go version from 1.24 to 1.25
Update go.mod, CI matrix, devcontainer, README, and CLAUDE.md to require Go 1.25 as the minimum supported version, with CI now testing against Go 1.25 and 1.26. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f492c14 commit c227cd4

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/devcontainers/go:2-1.25-trixie
1+
FROM mcr.microsoft.com/devcontainers/go:2-1.26-trixie
22

33
RUN apt-get update && apt-get install -y postgresql-common \
44
&& yes | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh \

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
go-version: ["1.24", "1.25"]
16+
go-version: ["1.25", "1.26"]
1717
pg-version: [14, 15, 16, 17, 18, cockroachdb]
1818
include:
1919
- pg-version: 14
@@ -133,7 +133,7 @@ jobs:
133133
runs-on: windows-latest
134134
strategy:
135135
matrix:
136-
go-version: ["1.24", "1.25"]
136+
go-version: ["1.25", "1.26"]
137137

138138
steps:
139139
- name: Setup PostgreSQL

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Project Overview
66

7-
pgx is a PostgreSQL driver and toolkit for Go (`github.com/jackc/pgx/v5`). It provides both a native PostgreSQL interface and a `database/sql` compatible driver. Requires Go 1.24+ and supports PostgreSQL 14+ and CockroachDB.
7+
pgx is a PostgreSQL driver and toolkit for Go (`github.com/jackc/pgx/v5`). It provides both a native PostgreSQL interface and a `database/sql` compatible driver. Requires Go 1.25+ and supports PostgreSQL 14+ and CockroachDB.
88

99
## Build & Test Commands
1010

@@ -70,4 +70,4 @@ Supporting packages:
7070
- **Tracer interfaces** — observability via `QueryTracer`, `BatchTracer`, `CopyFromTracer`, `PrepareTracer` on `ConnConfig.Tracer`.
7171
- **Formatting** — always run `goimports -w .` after making changes to ensure code is properly formatted. CI checks formatting via `gofmt -l -s -w . && git diff --exit-code`. `gofumpt` with extra rules is also enforced via `golangci-lint`.
7272
- **Linters**`govet` and `ineffassign` only (configured in `.golangci.yml`).
73-
- **CI matrix** — tests run against Go 1.24/1.25 × PostgreSQL 14-18 + CockroachDB, on Linux and Windows. Race detector enabled on Linux only.
73+
- **CI matrix** — tests run against Go 1.25/1.26 × PostgreSQL 14-18 + CockroachDB, on Linux and Windows. Race detector enabled on Linux only.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ See the presentation at Golang Estonia, [PGX Top to Bottom](https://www.youtube.
9292

9393
## Supported Go and PostgreSQL Versions
9494

95-
pgx supports the same versions of Go and PostgreSQL that are supported by their respective teams. For [Go](https://golang.org/doc/devel/release.html#policy) that is the two most recent major releases and for [PostgreSQL](https://www.postgresql.org/support/versioning/) the major releases in the last 5 years. This means pgx supports Go 1.24 and higher and PostgreSQL 14 and higher. pgx also is tested against the latest version of [CockroachDB](https://www.cockroachlabs.com/product/).
95+
pgx supports the same versions of Go and PostgreSQL that are supported by their respective teams. For [Go](https://golang.org/doc/devel/release.html#policy) that is the two most recent major releases and for [PostgreSQL](https://www.postgresql.org/support/versioning/) the major releases in the last 5 years. This means pgx supports Go 1.25 and higher and PostgreSQL 14 and higher. pgx also is tested against the latest version of [CockroachDB](https://www.cockroachlabs.com/product/).
9696

9797
## Version Policy
9898

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/jackc/pgx/v5
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
66
github.com/jackc/pgpassfile v1.0.0

0 commit comments

Comments
 (0)