]> Cypherpunks repositories - gostls13.git/commit
cmd/go: avoid when go.env contain GOTOOLCHAIN=local test fail
authorqiulaidongfeng <2645477756@qq.com>
Thu, 6 Jun 2024 13:50:29 +0000 (13:50 +0000)
committerMichael Matloob <matloob@golang.org>
Fri, 7 Jun 2024 18:49:03 +0000 (18:49 +0000)
commite709992afda6a96f0a5691aaf0883e3cfbd46946
tree3cd2e7aa5bd02199ce9f19d3ad70e4e6914d3870
parentfbe478521f35ce368a6de476f373478a3d83a189
cmd/go: avoid when go.env contain GOTOOLCHAIN=local test fail

The test fail when $GOROOT/go.env contain GOTOOLCHAIN=local
because GOTOOLCHAIN=local is assumed to be a non-default value.
This CL fixed the test failure
by using go.env from the test as $GOROOT/go.env throughout the test.
Test have also been added to ensure that
when $GOROOT/go.env contain GOTOOLCHAIN=local,
GOTOOLCHAIN=local is not taken as a non-default value.

Fixes #67793

Change-Id: Ibc5057d38d36c6c55726a039de1e7c37d6935b52
GitHub-Last-Rev: 12b62464e671021320c54e251dfb1ebcb5925096
GitHub-Pull-Request: golang/go#67807
Reviewed-on: https://go-review.googlesource.com/c/go/+/590196
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/testdata/script/env_changed.txt