]> Cypherpunks repositories - gostls13.git/commit
cmd/go: introduce WriteOpts argument for WriteGoMod
authorRuss Cox <rsc@golang.org>
Wed, 31 May 2023 13:57:03 +0000 (09:57 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 31 May 2023 15:21:16 +0000 (15:21 +0000)
commite73e5d80ea371a67f7b10725e623940a3dcd4924
treedf7bdefb65483963fb388d8d4903c8a4a0d5046c
parent51114a3fa58b196ec5ab4b5205617f98e2cdc5ff
cmd/go: introduce WriteOpts argument for WriteGoMod

This CL is a no-op, just adding the new options and plumbing it through.
'go get' will use this option to let commitRequirements know whether
toolchain was mentioned explicitly on the command line.

For #57001.

Change-Id: Iee7145f3335e899704df3e98fb840f1aa4063b0c
Reviewed-on: https://go-review.googlesource.com/c/go/+/499555
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/modcmd/download.go
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/list.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/workcmd/sync.go