]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add mod edit -toolchain and work edit -toolchain
authorRuss Cox <rsc@golang.org>
Mon, 22 May 2023 16:26:15 +0000 (12:26 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 24 May 2023 00:49:56 +0000 (00:49 +0000)
commit0c3015191f085fe4941da677d1a7787379bc57d9
tree05cd7977c10b9f1f3e6b2d195cf61814f7f897a2
parente4d95d0de3c26d1cc5685e35cddb42657948057b
cmd/go: add mod edit -toolchain and work edit -toolchain

We have added a new toolchain directive in go.mod and go.work.
This CL adds support in mod edit and work edit for changing the toolchain line.

For #57001.

Change-Id: I36a960796630a359b8a587877cb9548c299d5c87
Reviewed-on: https://go-review.googlesource.com/c/go/+/497296
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/edit.go
src/cmd/go/internal/workcmd/edit.go
src/cmd/go/testdata/script/mod_edit_go.txt
src/cmd/go/testdata/script/mod_edit_toolchain.txt [new file with mode: 0644]
src/cmd/go/testdata/script/work_edit.txt
src/cmd/go/testdata/script/work_edit_toolchain.txt [new file with mode: 0644]