diff --git a/findNext.go b/findNext.go index 9b4f3be..c8970df 100644 --- a/findNext.go +++ b/findNext.go @@ -2,8 +2,6 @@ package main import ( - "strings" - "go.wit.com/log" "go.wit.com/lib/protobuf/gitpb" @@ -78,19 +76,23 @@ func runGoClean(check *gitpb.Repo, myarg string) bool { log.Info("Running", cmd, "in", check.GetGoPath()) result := check.Run(cmd) if result.Error != nil { - log.Info(cmd, "failed with", result.Error, check.GetGoPath()) - log.Info("STDOUT") - log.Info(strings.Join(result.Stdout, "\n")) - log.Info("STDERR") - log.Info(strings.Join(result.Stderr, "\n")) + /* + log.Info(cmd, "failed with", result.Error, check.GetGoPath()) + log.Info("STDOUT") + log.Info(strings.Join(result.Stdout, "\n")) + log.Info("STDERR") + log.Info(strings.Join(result.Stderr, "\n")) + */ return false } if result.Exit != 0 { - log.Info(cmd, "failed with", result.Exit, check.GetGoPath()) - log.Info("STDOUT") - log.Info(strings.Join(result.Stdout, "\n")) - log.Info("STDERR") - log.Info(strings.Join(result.Stderr, "\n")) + /* + log.Info(cmd, "failed with", result.Exit, check.GetGoPath()) + log.Info("STDOUT") + log.Info(strings.Join(result.Stdout, "\n")) + log.Info("STDERR") + log.Info(strings.Join(result.Stderr, "\n")) + */ return false } if check.ParseGoSum() { diff --git a/prepareRelease.go b/prepareRelease.go index e85a660..c113715 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -50,7 +50,7 @@ func forceReleaseVersion(repo *gitpb.Repo) { } // empty git notes if result, err := repo.RunStrictNew([]string{"go-mod-clean", "--purge"}); err != nil { - log.Info("probably you don't have go-mod-clean") + log.Info("probably you don't have gomodclean") log.Info(strings.Join(result.Stdout, "\n")) log.Info(strings.Join(result.Stderr, "\n")) repo.Run([]string{"git", "notes", "remove"}) @@ -58,7 +58,7 @@ func forceReleaseVersion(repo *gitpb.Repo) { } if !runGoClean(repo, "--restore") { - log.Info("go-mod-clean probably failed here. that's ok", repo.GetGoPath()) + log.Info("gomodclean probably failed here. that's ok", repo.GetGoPath()) // os.Exit(-1) } } @@ -86,7 +86,7 @@ func rePrepareRelease() { } if !runGoClean(check, "--restore") { - log.Info("go-mod-clean probably failed here. that's ok", check.GetGoPath()) + log.Info("gomodclean probably failed here. that's ok", check.GetGoPath()) // os.Exit(-1) } }