]> Cypherpunks repositories - gostls13.git/commit
cmd/go: report an error for 'go list -m ...' outside a module
authorJay Conrod <jayconrod@google.com>
Thu, 21 Nov 2019 17:50:14 +0000 (12:50 -0500)
committerJay Conrod <jayconrod@google.com>
Thu, 21 Nov 2019 19:09:24 +0000 (19:09 +0000)
commit2434869858e75872983038a7dc40df6e942bafba
tree597ef7ab179c7537307b361f7c00cfd1c9d3622c
parent37715cce695e96d3d5a8e01f5009517121241330
cmd/go: report an error for 'go list -m ...' outside a module

Previously, we just reported an error for "all". Now we report an
error for any pattern that matches modules in the build list. The
build list can only contain the module "command-line-arguments", so
these patterns are not meaningful.

Fixes #35728

Change-Id: Ibc736491ec9164588f9657c09d1b9683b33cf1de
Reviewed-on: https://go-review.googlesource.com/c/go/+/208222
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/modload/list.go
src/cmd/go/testdata/script/mod_outside.txt