diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |
