From 1801cb7c1535809b97bb6628791b3fb0df73476e Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Wed, 1 Aug 2018 16:28:21 -0400 Subject: [PATCH] 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 Reviewed-by: Ian Cottrell --- go/packages/golist/golist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/packages/golist/golist.go b/go/packages/golist/golist.go index 845fb5b8..ec481cf0 100644 --- a/go/packages/golist/golist.go +++ b/go/packages/golist/golist.go @@ -262,7 +262,7 @@ func absJoin(dir string, fileses ...[]string) (res []string) { func golistargs(cfg *raw.Config, words []string) []string { fullargs := []string{ - "list", "-e", "-json", "-cgo=true", + "list", "-e", "-json", fmt.Sprintf("-test=%t", cfg.Tests), fmt.Sprintf("-export=%t", cfg.Export), fmt.Sprintf("-deps=%t", cfg.Deps),