From cf943fc5ba31a1da06c2620f57eb763a1e05bb7a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 5 Nov 2024 05:57:59 -0600 Subject: attempting a release again Signed-off-by: Jeff Carr --- doRelease.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'doRelease.go') 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 { -- cgit v1.2.3