disable the jsonv2 GOEXPERIMENT - #130
Merged
Merged
Conversation
carole-lavillonniere
requested review from
dfangl,
dominikschubert and
joe4dev
as code owners
August 31, 2026 10:15
Go 1.27 enables the jsonv2 experiment by default, reimplementing encoding/json and making json.RawMessage an alias for jsontext.Value. The repo inherited this from #122, which bumped the go directive from 1.26.6 to 1.27.0 -- that directive is a minimum toolchain requirement, so GOTOOLCHAIN =auto then builds everything with go1.27 and its default experiments. This emulator serializes customer Lambda payloads, so swapping JSON implementation should be a deliberate, tested decision rather than a side effect of a toolchain bump. Pin it off for now. There is no GODEBUG opt-out -- jsonv2 is selected at compile time via build tags -- so it must be an environment variable. Exporting it from the Makefile covers local builds, the docker targets (which re-enter this Makefile in the container) and CI, which invokes only make targets. Fixes the localstack branch, red since Aug 22, without touching the upstream test that the experiment broke.
carole-lavillonniere
force-pushed
the
fix/disable-jsonv2-experiment
branch
from
August 31, 2026 11:37
7a81336 to
d511b4c
Compare
carole-lavillonniere
requested review from
a team
and removed request for
dominikschubert
August 31, 2026 11:43
dfangl
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ci is red since Aug 22 (#122 → #127 all merged over a failing test suite).
This has been blocking the weekly RIE auto-release.
What happened
#122 was a one-line Renovate change:
go 1.26.6→go 1.27.0. That line is not a library version — it is a minimum toolchain requirement. WithGOTOOLCHAIN=auto, the go command then fetches and builds everything with go1.27, and Go 1.27 enables the jsonv2 GOEXPERIMENT by default.Under jsonv2,
encoding/jsondeclarestype RawMessage = jsontext.Valueinstead oftype RawMessage []byte. Verified — the toolchain is what decides, the language directive is irrelevant except that it selects the toolchain:json.RawMessageresolves tojson.RawMessagejsontext.Value1.26.6jsontext.ValueGOEXPERIMENT=nojsonv2json.RawMessageTODO
testin the branch ruleset (needs an admin of this repo) 🙏