summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repo.common.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/repo.common.go b/repo.common.go
index 6a30f46..906891a 100644
--- a/repo.common.go
+++ b/repo.common.go
@@ -8,3 +8,11 @@ func (r *Repo) IsBinary() bool {
// todo: detect C & other language binary packages
return false
}
+
+// does this repo build a binary?
+func (r *Repo) IsGoPlugin() bool {
+ if r.GoInfo != nil {
+ return r.GoInfo.GetGoPlugin()
+ }
+ return false
+}