Skip to content

Commit

Permalink
Merge pull request #7 from edwarnicke/go1.14
Browse files Browse the repository at this point in the history
Support .TestImports
  • Loading branch information
edwarnicke authored Jun 30, 2020
2 parents 984f036 + 4e6015e commit 1558395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func main() {

// Get the imported packages for the module
options = append(options, exechelper.WithDir(modDir))
packagesBytes, err := exechelper.Output("go list -f '{{range .Imports}}{{printf \"%s\\n\" .}}{{end}}{{range .XTestImports}}{{printf \"%s\\n\" .}}{{end}}' ./...", options...)
packagesBytes, err := exechelper.Output("go list -f '{{range .Imports}}{{printf \"%s\\n\" .}}{{end}}{{range .XTestImports}}{{printf \"%s\\n\" .}}{{end}}{{range .TestImports}}{{printf \"%s\\n\" .}}{{end}}' ./...", options...)
if err != nil {
log.Fatalf("error exctracting packages: %+v", err)
}
Expand Down

0 comments on commit 1558395

Please sign in to comment.