diff options
| -rw-r--r-- | CHANGELOG.md | 6 | ||||
| -rw-r--r-- | benchmark/go.mod | 2 | ||||
| -rw-r--r-- | columnar/columnar_test.go | 6 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | go.work | 2 | ||||
| -rw-r--r-- | 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 <majewsky@gmx.net> 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) { @@ -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 @@ -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 |
