From 2a28a75de8607004c628480a40a1ecfc9d3cdfe1 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Mon, 23 Mar 2026 20:01:34 +0000 Subject: all: pgx/v4 to v5 and upgrade pq - In preparation for upgrade to PostgreSQL 17, upgrade stale dependencies within pkgsite. Change-Id: Id54cbb46182711b9808ee3bbbe2f0d5d9a04583d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/758121 Auto-Submit: Ethan Lee LUCI-TryBot-Result: Go LUCI Reviewed-by: Jonathan Amsterdam kokoro-CI: kokoro --- internal/database/benchmark_test.go | 4 ++-- internal/database/copy.go | 4 ++-- internal/database/copy_test.go | 4 ++-- internal/database/database.go | 2 +- internal/database/database_test.go | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'internal/database') diff --git a/internal/database/benchmark_test.go b/internal/database/benchmark_test.go index a0c5d17d..2d789949 100644 --- a/internal/database/benchmark_test.go +++ b/internal/database/benchmark_test.go @@ -9,8 +9,8 @@ import ( "database/sql" "testing" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/stdlib" "golang.org/x/pkgsite/internal/log" ) diff --git a/internal/database/copy.go b/internal/database/copy.go index 86244eae..dbcdb67d 100644 --- a/internal/database/copy.go +++ b/internal/database/copy.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/stdlib" "golang.org/x/pkgsite/internal/derrors" "golang.org/x/pkgsite/internal/log" ) diff --git a/internal/database/copy_test.go b/internal/database/copy_test.go index a878985e..79b45ff1 100644 --- a/internal/database/copy_test.go +++ b/internal/database/copy_test.go @@ -11,8 +11,8 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/stdlib" ) type copyRow struct { diff --git a/internal/database/database.go b/internal/database/database.go index 917b6094..f5b646a0 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -18,7 +18,7 @@ import ( "sync" "time" - "github.com/jackc/pgconn" + "github.com/jackc/pgx/v5/pgconn" "github.com/lib/pq" "golang.org/x/pkgsite/internal/derrors" "golang.org/x/pkgsite/internal/log" diff --git a/internal/database/database_test.go b/internal/database/database_test.go index 600ecc4f..bd7e3c1e 100644 --- a/internal/database/database_test.go +++ b/internal/database/database_test.go @@ -18,9 +18,9 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/jackc/pgconn" - "github.com/jackc/pgx/v4" - "github.com/jackc/pgx/v4/stdlib" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/jackc/pgx/v5/stdlib" "golang.org/x/pkgsite/internal/derrors" ) -- cgit v1.3