]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: support the -overlay flag for go mod commands
authorMichael Matloob <matloob@golang.org>
Fri, 20 Nov 2020 19:09:03 +0000 (14:09 -0500)
committerMichael Matloob <matloob@golang.org>
Fri, 20 Nov 2020 23:58:48 +0000 (23:58 +0000)
commit78e59bb1f72c9cd16e204dbfeee05ae99a2462e3
treefc3a5013e515f7ecf0ce03685096758768834b34
parentc47eac7db00e03776c3975025184e1938fbced75
cmd/go: support the -overlay flag for go mod commands

Move the declaration of the -overlay flag to base.AddModCommonFlags,
where other flags that are needed for go mod commands and for builds
are declared. The flag's already initialized in modload.Init so
there's no additional work needed to be done to support it in the go
mod commands.

For #39958

Change-Id: I70725d620cc69cb820f6ed923d626f4fe041b1c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/272126
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/base/flag.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/script/mod_overlay.txt