go/packages/golist: remove -cgo flag from go list invocation
It's been removed from go list. Change-Id: I45b496bb6b693462484b1089cdb89c4e19e35b2e Reviewed-on: https://go-review.googlesource.com/127341 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
parent
8149a73649
commit
1801cb7c15
|
@ -262,7 +262,7 @@ func absJoin(dir string, fileses ...[]string) (res []string) {
|
||||||
|
|
||||||
func golistargs(cfg *raw.Config, words []string) []string {
|
func golistargs(cfg *raw.Config, words []string) []string {
|
||||||
fullargs := []string{
|
fullargs := []string{
|
||||||
"list", "-e", "-json", "-cgo=true",
|
"list", "-e", "-json",
|
||||||
fmt.Sprintf("-test=%t", cfg.Tests),
|
fmt.Sprintf("-test=%t", cfg.Tests),
|
||||||
fmt.Sprintf("-export=%t", cfg.Export),
|
fmt.Sprintf("-export=%t", cfg.Export),
|
||||||
fmt.Sprintf("-deps=%t", cfg.Deps),
|
fmt.Sprintf("-deps=%t", cfg.Deps),
|
||||||
|
|
Loading…
Reference in New Issue