I use GOTOOLCHAIN to switch toolchain version. (easiest, recommended way to pick up latest go toolchain inside google).
$ GOTOOLCHAIN=local go version
go version go1.25.6 darwin/arm64
$ go env -changed
GOTOOLCHAIN='go1.26.2+auto'
This specific test doesn't work with this arrangement.
--- FAIL: TestIExportData_stdlib (0.02s)
iexport_test.go:73: err: exit status 1: stderr: go: overlay contains a replacement for /Users/hyangah/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.2.darwin-arm64/src/errors/bad.go. Files beneath GOMODCACHE (/Users/hyangah/go/pkg/mod) must not be replaced.
I use GOTOOLCHAIN to switch toolchain version. (easiest, recommended way to pick up latest go toolchain inside google).
This specific test doesn't work with this arrangement.