diff options
Diffstat (limited to 'doRelease.go')
| -rw-r--r-- | doRelease.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doRelease.go b/doRelease.go index 878fb4b..71baa57 100644 --- a/doRelease.go +++ b/doRelease.go @@ -45,9 +45,17 @@ func doRelease() bool { } else { all = append(all, []string{"git", "add", "-f", "go.sum"}) } - if me.current.Status.IsProtobuf() { - log.Info("\tshould add protobuf files here!") + if ok, files, err := me.current.Status.IsProtobuf(); ok { + log.Info("\tIsProtobuf() == true") + if err != nil { + log.Info("\tERROR: There are protobuf files, but they are not compiled") + log.Info("\tERROR: can not continue") + } + log.Info("\tshould add the protobuf files here") + log.Info("\tfiles found:", files) //all = append(all, []string{"git", "add", "-f", "go.sum"}) + } else { + log.Info("\tIsProtobuf() == false") } all = append(all, []string{"git", "commit", "-m", me.releaseReasonS}) all = append(all, []string{"git", "push"}) @@ -104,7 +112,7 @@ func doRelease() bool { func checkValidGoSum(repo *repolist.RepoRow) bool { ok, err := me.repos.View.CheckValidGoSum(repo) if err != nil { - log.Info("go mod tidy not ok") + log.Info("go mod tidy not ok", err) return false } if ok { |
