diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -62,7 +62,6 @@ func (rs *RepoStatus) IsPrimitive() bool { } func (rs *RepoStatus) IsProtobuf() (bool, []string, error) { - log.Info("are there .proto files in:", rs.Path()) fullp, fullc, err := ScanForProtobuf(rs.Path()) protos := make(map[string]string) protoc := make(map[string]string) @@ -71,7 +70,6 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) { for _, s := range fullp { filebase := filepath.Base(s) name := strings.TrimSuffix(filebase, ".proto") - // log.Info("found i, s:", i, name, filebase) anyfound = true protos[name] = s } @@ -80,7 +78,6 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) { for _, s := range fullc { cfilebase := filepath.Base(s) cname := strings.TrimSuffix(cfilebase, ".pb.go") - // log.Info("found compiled i, s:", i, cname, cfilebase) protoc[cname] = s if cname == pname { found = true @@ -90,7 +87,7 @@ func (rs *RepoStatus) IsProtobuf() (bool, []string, error) { if found { // log.Info("found ok") } else { - log.Info("not found") + log.Info("missing compiled proto file:", pname + "pb.go") err = errors.New("compiled file " + pname + ".pb.go missing") } } |
