summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/common.go b/common.go
index 8b88913..520d12b 100644
--- a/common.go
+++ b/common.go
@@ -59,13 +59,18 @@ func (rs *RepoStatus) IsPrimitive() bool {
return false
}
-func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
+func (rs *RepoStatus) IsProtobuf() (bool, []string, []string, error) {
log.Info("are there .proto files in:", rs.Path())
- all, err := ScanForProtobuf(rs.Path())
+ all, compiled, err := ScanForProtobuf(rs.Path())
+ var found bool = false
for i, s := range all {
log.Info("found i, s:", i, s)
+ found = true
}
- return false, all, err
+ for i, s := range compiled {
+ log.Info("found compiled i, s:", i, s)
+ }
+ return found, all, compiled, err
}
// returns the filesystem path to the repo