Skip to content

Commit da18cb2

Browse files
committed
estimate: also consider TestImports and XTestImports
related to #89
1 parent 4fdef9c commit da18cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

estimate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func estimate(importpath string) error {
4747

4848
// Use digraph(1) to obtain the forward transitive closure of the repo in
4949
// question.
50-
cmd := exec.Command("/bin/sh", "-c", "go list -f '{{.ImportPath}}{{.Imports}}' ... | tr '[]' ' ' | digraph forward $(go list "+importpath+"/...)")
50+
cmd := exec.Command("/bin/sh", "-c", "go list -f '{{.ImportPath}}{{.Imports}}{{.TestImports}}{{.XTestImports}}' ... | tr '[]' ' ' | digraph forward $(go list "+importpath+"/...)")
5151
cmd.Stderr = os.Stderr
5252
cmd.Env = append([]string{
5353
fmt.Sprintf("GOPATH=%s", gopath),

0 commit comments

Comments
 (0)