]> Cypherpunks repositories - gostls13.git/commit
[dev.cmdgo] cmd/go: add go mod initwork command
authorMichael Matloob <matloob@golang.org>
Mon, 14 Jun 2021 23:22:58 +0000 (19:22 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 27 Jul 2021 21:27:13 +0000 (21:27 +0000)
commitb2205eab0efef6cba784aca4436cb0ef8ac0a4de
tree08d00ae3db06b43147ebad0eef605de72b97d88f
parentf05f5ceffa6edec89436a825176eefdd1fe828e5
[dev.cmdgo] cmd/go: add go mod initwork command

This command is used to create a go.work file with a set of modules
given in the arguments to the command.

For #45713
Change-Id: I09f8cefc5849dd43c234dc4a37091791fcc02ebe
Reviewed-on: https://go-review.googlesource.com/c/go/+/334936
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/initwork.go [new file with mode: 0644]
src/cmd/go/internal/modcmd/mod.go
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/work.txt