From 87013d526ea1b0647ef6e08758fe587cee11d854 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 5 Feb 2023 18:35:45 -0700 Subject: Fix compilation with Go 1.20 --- ReleaseNotes.md | 14 ++++++++++++++ go.mod | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 608038e..5d85254 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,3 +1,17 @@ +# v0.3.4 (2023-02-05) + + Theme: Fix compilation with Go 1.20 + + lowmemjson uses git.lukeshu.com/go/typedsync.CacheMap (since + lowmemjson v0.3.1), which when compiled with Go 1.20 makes use of Go + 1.20 language features. However, because lowmemjson's `go.mod` said + `go 1.18`, those language features are disabled and compilation + fails (see [go#58342][]). To work around this, lowmemjson's + `go.mod` now says `go 1.20`. Despite this, lowmemjson still works + fine with Go 1.18. + + [go#58342]: https://github.com/golang/go/issues/58342 + # v0.3.3 (2023-02-04) Theme: Bugfix diff --git a/go.mod b/go.mod index 6d5804b..06770f0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module git.lukeshu.com/go/lowmemjson -go 1.18 +go 1.20 require ( git.lukeshu.com/go/typedsync v0.1.0 -- cgit v1.1-4-g5e80