]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/dist: preserve existing GOEXPERIMENTs when running tests with additional experiments
authorqmuntal <quimmuntal@gmail.com>
Tue, 16 Dec 2025 10:08:35 +0000 (11:08 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 16 Dec 2025 16:17:13 +0000 (08:17 -0800)
commita4b5b92055d24da007ae13c4586aa0a229fa337b
tree6e825766f8a2b60df0bc047c809a27ba28114c3e
parentd14b6427cf8db9607e25f19b7cd1bab615b557b9
cmd/dist: preserve existing GOEXPERIMENTs when running tests with additional experiments

Some tests require enabling specific Go experiments via the GOEXPERIMENT
, like "jsonv2", "runtimesecret", or "simd".

When running these tests, we should preserve any existing GOEXPERIMENT
settings, so that multiple experiments can be tested together.

I've found this limitation while working in my own Go fork, where in
some situations I pass additional experiments to the tests that alter
the Go runtime and other core packages.

Change-Id: Ib0324cd93282f6993611dea2f0c57d00ab304a33
Reviewed-on: https://go-review.googlesource.com/c/go/+/730360
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/dist/test.go