summaryrefslogtreecommitdiff
path: root/repo.common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-14 20:43:31 -0600
committerJeff Carr <[email protected]>2025-02-14 20:43:31 -0600
commit312c4742b6aaa0018ca43e9ec612d35d031d5269 (patch)
treedc5dc76f069eef0f1c0af609d3822dba565e81b4 /repo.common.go
parente5a5454bc0e58d24a6146e4973518160b909582f (diff)
needed for building deb packagesv0.0.77
Diffstat (limited to 'repo.common.go')
-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
+}