quiet some output
This commit is contained in:
parent
2c71c4a5fe
commit
f5b53b403e
26
findNext.go
26
findNext.go
|
@ -2,8 +2,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"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())
|
log.Info("Running", cmd, "in", check.GetGoPath())
|
||||||
result := check.Run(cmd)
|
result := check.Run(cmd)
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
log.Info(cmd, "failed with", result.Error, check.GetGoPath())
|
/*
|
||||||
log.Info("STDOUT")
|
log.Info(cmd, "failed with", result.Error, check.GetGoPath())
|
||||||
log.Info(strings.Join(result.Stdout, "\n"))
|
log.Info("STDOUT")
|
||||||
log.Info("STDERR")
|
log.Info(strings.Join(result.Stdout, "\n"))
|
||||||
log.Info(strings.Join(result.Stderr, "\n"))
|
log.Info("STDERR")
|
||||||
|
log.Info(strings.Join(result.Stderr, "\n"))
|
||||||
|
*/
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if result.Exit != 0 {
|
if result.Exit != 0 {
|
||||||
log.Info(cmd, "failed with", result.Exit, check.GetGoPath())
|
/*
|
||||||
log.Info("STDOUT")
|
log.Info(cmd, "failed with", result.Exit, check.GetGoPath())
|
||||||
log.Info(strings.Join(result.Stdout, "\n"))
|
log.Info("STDOUT")
|
||||||
log.Info("STDERR")
|
log.Info(strings.Join(result.Stdout, "\n"))
|
||||||
log.Info(strings.Join(result.Stderr, "\n"))
|
log.Info("STDERR")
|
||||||
|
log.Info(strings.Join(result.Stderr, "\n"))
|
||||||
|
*/
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if check.ParseGoSum() {
|
if check.ParseGoSum() {
|
||||||
|
|
|
@ -50,7 +50,7 @@ func forceReleaseVersion(repo *gitpb.Repo) {
|
||||||
}
|
}
|
||||||
// empty git notes
|
// empty git notes
|
||||||
if result, err := repo.RunStrictNew([]string{"go-mod-clean", "--purge"}); err != nil {
|
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.Stdout, "\n"))
|
||||||
log.Info(strings.Join(result.Stderr, "\n"))
|
log.Info(strings.Join(result.Stderr, "\n"))
|
||||||
repo.Run([]string{"git", "notes", "remove"})
|
repo.Run([]string{"git", "notes", "remove"})
|
||||||
|
@ -58,7 +58,7 @@ func forceReleaseVersion(repo *gitpb.Repo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !runGoClean(repo, "--restore") {
|
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)
|
// os.Exit(-1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ func rePrepareRelease() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !runGoClean(check, "--restore") {
|
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)
|
// os.Exit(-1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue