We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0095ae commit 11930bdCopy full SHA for 11930bd
go/packages/golist.go
@@ -819,7 +819,7 @@ func golistargs(cfg *Config, words []string) []string {
819
fmt.Sprintf("-deps=%t", cfg.Mode&NeedImports != 0),
820
// go list doesn't let you pass -test and -find together,
821
// probably because you'd just get the TestMain.
822
- fmt.Sprintf("-find=%t", !cfg.Tests && cfg.Mode&findFlags == 0),
+ fmt.Sprintf("-find=%t", !cfg.Tests && cfg.Mode&findFlags == 0 && !usesExportData(cfg)),
823
}
824
fullargs = append(fullargs, cfg.BuildFlags...)
825
fullargs = append(fullargs, "--")
0 commit comments