gitpb/repo.common.go

19 lines
350 B
Go
Raw Normal View History

2025-02-14 18:39:59 -06:00
package gitpb
// does this repo build a binary?
func (r *Repo) IsBinary() bool {
if r.GoInfo != nil {
return r.GoInfo.GetGoBinary()
}
// todo: detect C & other language binary packages
return false
}
2025-02-14 20:43:31 -06:00
// does this repo build a binary?
func (r *Repo) IsGoPlugin() bool {
if r.GoInfo != nil {
return r.GoInfo.GetGoPlugin()
}
return false
}