summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-05 18:35:45 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-05 18:35:45 -0700
commit87013d526ea1b0647ef6e08758fe587cee11d854 (patch)
treec0ed2c803d3779aaeb6030f3b4a9029cf564c052
parent88b0f90f95ded3a221ab1ba0bd5befbef0d9fcbe (diff)
Fix compilation with Go 1.20v0.3.4
-rw-r--r--ReleaseNotes.md14
-rw-r--r--go.mod2
2 files changed, 15 insertions, 1 deletions
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