From 3332671795b3a0b605c3b1d0d10c4085354e4c60 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 12 Oct 2026 22:29:28 +0200 Subject: bump Go version requirement to 1.27 --- CHANGELOG.md | 6 ++++++ benchmark/go.mod | 2 +- columnar/columnar_test.go | 6 ++++-- go.mod | 2 +- go.work | 2 +- testing/go.mod | 2 +- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ace4cd..3a009cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ SPDX-FileCopyrightText: 2026 Stefan Majewsky SPDX-License-Identifier: Apache-2.0 --> +# v1.20.0 (TBD), TODO: reason for Go version increase + +Changes: + +- The minimum Go version was increased from 1.26 to 1.27 because... + # v1.19.0 (2026-10-06) Changes: diff --git a/benchmark/go.mod b/benchmark/go.mod index d712500..63f5309 100644 --- a/benchmark/go.mod +++ b/benchmark/go.mod @@ -1,6 +1,6 @@ module go.xyrillian.de/gg/benchmark -go 1.26 +go 1.27 require ( github.com/go-gorp/gorp/v3 v3.1.0 diff --git a/columnar/columnar_test.go b/columnar/columnar_test.go index 2804ac9..e0b2f45 100644 --- a/columnar/columnar_test.go +++ b/columnar/columnar_test.go @@ -5,6 +5,7 @@ package columnar_test import ( "encoding/json" + "regexp" "sync" "testing" @@ -101,10 +102,11 @@ func TestJSONRoundtripErrors(t *testing.T) { bar int } + expected := regexp.MustCompile(`columnar_test.nothingPublic has no exported fields$`) _, err := json.Marshal(columnar.List[nothingPublic]{{1, 2}}) - assert.Equal(t, err.Error(), `json: error calling MarshalJSON for type columnar.List[go.xyrillian.de/gg/columnar_test.nothingPublic·5]: columnar_test.nothingPublic has no exported fields`) + assert.ErrEqual(t, err, expected) err = json.Unmarshal([]byte(`{}`), new(columnar.List[nothingPublic]{})) - assert.Equal(t, err.Error(), `columnar_test.nothingPublic has no exported fields`) + assert.ErrEqual(t, err, expected) } func TestJSONUnmarshalFromInconsistentLengths(t *testing.T) { diff --git a/go.mod b/go.mod index 912e25c..c4f28a9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ module go.xyrillian.de/gg // TODO for 1.27: use sql.ConvertAssign for gg/option; deprecate gg/options and offer methods on Option instead; make jsonmatch.Pointer into an alias of jsontext.Pointer; replace json.{Unm,M}arshaler with json/v2.{Unm,M}arshaler{From,To}; add pathrouter.Context.Value[T]() -go 1.26 +go 1.27 diff --git a/go.work b/go.work index 1d7d7f0..2d46d83 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.26 +go 1.27 use ( . diff --git a/testing/go.mod b/testing/go.mod index 9c371c2..17890c8 100644 --- a/testing/go.mod +++ b/testing/go.mod @@ -1,6 +1,6 @@ module go.xyrillian.de/gg/testing -go 1.26 +go 1.27 require ( github.com/lib/pq v1.12.3 -- cgit v1.3.1