about summary refs log tree commit diff
path: root/external/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'external/main.go')
-rw-r--r--external/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/main.go b/external/main.go
index aac966172b34..23fd53326ed0 100644
--- a/external/main.go
+++ b/external/main.go
@@ -34,6 +34,7 @@ type pkg struct {
 	Files       []string   `json:"files"`
 	LocalDeps   [][]string `json:"localDeps"`
 	ForeignDeps []string   `json:"foreignDeps"`
+	IsCommand   bool       `json:"isCommand"`
 }
 
 // findGoDirs returns a filepath.WalkFunc that identifies all
@@ -116,6 +117,7 @@ func analysePackage(root, source, importpath string, stdlib map[string]bool) (pk
 		Files:       files,
 		LocalDeps:   local,
 		ForeignDeps: foreign,
+		IsCommand:   p.IsCommand(),
 	}, nil
 }