quiet some output
This commit is contained in:
parent
2c71c4a5fe
commit
f5b53b403e
|
@ -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"))
|
||||
*/
|
||||
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"))
|
||||
*/
|
||||
return false
|
||||
}
|
||||
if check.ParseGoSum() {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue