diff options
| author | Jeff Carr <[email protected]> | 2024-11-05 05:57:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-05 05:57:59 -0600 |
| commit | cf943fc5ba31a1da06c2620f57eb763a1e05bb7a (patch) | |
| tree | 7a75c62546e445d76a1ff0670cb17cc81c71f73c /doRelease.go | |
| parent | c79cdb30076a2a9a5093409886db8913f224c230 (diff) | |
attempting a release again
Signed-off-by: Jeff Carr <[email protected]>
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 { |
