]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make toolchain less special in MVS
authorRuss Cox <rsc@golang.org>
Wed, 31 May 2023 14:24:23 +0000 (10:24 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 1 Jun 2023 02:51:07 +0000 (02:51 +0000)
commitabdaa0f9aab853ea4e7a4fc1d9b8160309ae6579
tree31bba8762c5c8299a7938f4f0441459ea601a489
parent1079a5c08a8682c35c43cd75737ed94b5999d9ed
cmd/go: make toolchain less special in MVS

We were using the omission of toolchain from the MVS graph
as a signal that toolchain was not mentioned on the go get line,
but not including it in the graph causes various problems,
and it may be reintroduced to the graph during operations like
pruning conversion, after which its presence is not a good signal
about whether it was mentioned on the go get command line.
Fix all this irregularity by explicitly telling WriteGoMod whether
the command line mentioned toolchain instead.

For #57001.

Change-Id: I74084637c177c30918fdb114a0d9030cdee7324e
Reviewed-on: https://go-review.googlesource.com/c/go/+/499575
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/modfile.go
src/cmd/go/testdata/script/mod_indirect_main.txt
src/cmd/go/testdata/script/mod_skip_write.txt