]> Cypherpunks repositories - gostls13.git/commit
cmd/go: restore go.mod files during toolchain selection
authorRuss Cox <rsc@golang.org>
Fri, 16 Jun 2023 19:59:43 +0000 (15:59 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 20 Jun 2023 15:44:08 +0000 (15:44 +0000)
commit3d279283a4a7b016ee799fc2e7c4583660881331
treeded1dbad28c142e106a2f81fd09e8a08ed5539cb
parent3b4b7b84def19a57ffa3c83001b37038d9ea204b
cmd/go: restore go.mod files during toolchain selection

They have to be renamed to _go.mod to make a valid module.
Copy them back to go.mod so that 'go test cmd' has a better
chance of working.

For #57001.

Change-Id: Ied6f0dd77928996ab322a55c5606d7f75431e362
Reviewed-on: https://go-review.googlesource.com/c/go/+/504118
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/go/internal/toolchain/select.go
src/cmd/go/internal/toolchain/umask_none.go [new file with mode: 0644]
src/cmd/go/internal/toolchain/umask_unix.go [new file with mode: 0644]