summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/unix.go b/unix.go
index d4d48de..19872a6 100644
--- a/unix.go
+++ b/unix.go
@@ -471,8 +471,9 @@ func ScanGitDirectories(srcDir string) []string {
return all
}
-func ScanForProtobuf(srcDir string) ([]string, error) {
+func ScanForProtobuf(srcDir string) ([]string, []string, error) {
var protofiles []string
+ var compiled []string
err := filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error {
if err != nil {
log.Log(REPOWARN, "Error accessing path:", path, err)
@@ -484,8 +485,12 @@ func ScanForProtobuf(srcDir string) ([]string, error) {
protofiles = append(protofiles, path)
}
+ if strings.HasSuffix(path, ".pb.go") {
+ compiled = append(compiled, path)
+ }
+
return nil
})
- return protofiles, err
+ return protofiles, compiled, err
}