]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in 'go list -m', print effective go.mod file
authorJay Conrod <jayconrod@google.com>
Thu, 19 Dec 2019 18:00:28 +0000 (13:00 -0500)
committerJay Conrod <jayconrod@google.com>
Thu, 19 Dec 2019 19:52:21 +0000 (19:52 +0000)
commit0f834bb77e11d1ca1f06fc925f5bd7e44c7f4867
treeac6d40a65679207c9d6827cb509ecbcbf387c42f
parenta197c7bbf2bee9c7078e821736e81f9642548443
cmd/go: in 'go list -m', print effective go.mod file

When the -modfile flag is in use (either explicitly or from GOFLAGS),
'go list -m' will now print the effective go.mod file for the main
module in the GoMod field in -f or -json output.

Fixes #36220
Updates #34506

Change-Id: I89c2ee40f20e07854bb37c6e4e13eeea0cce7b0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/212100
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/list/list.go
src/cmd/go/internal/modload/build.go
src/cmd/go/testdata/script/modfile_flag.txt