diff options
Diffstat (limited to 'findNext.go')
| -rw-r--r-- | findNext.go | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/findNext.go b/findNext.go index 76d3c3a..a6c0ea6 100644 --- a/findNext.go +++ b/findNext.go @@ -2,6 +2,8 @@ package main import ( + "strings" + "go.wit.com/log" "go.wit.com/lib/gui/repolist" @@ -101,15 +103,23 @@ func runGoClean(check *gitpb.Repo) bool { // check if the package dependancies changed, if so, re-publish check.GoDeps = nil - cmd := []string{"go-mod-clean", "--strict", "--force"} + cmd := []string{"go-mod-clean", "--strict"} log.Info("Running", cmd, "in", check.GoPath) - result := check.RunRealtime(cmd) + result := check.Run(cmd) if result.Error != nil { log.Info(cmd, "failed with", result.Error, check.GoPath) + 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.GoPath) + log.Info("STDOUT") + log.Info(strings.Join(result.Stdout, "\n")) + log.Info("STDERR") + log.Info(strings.Join(result.Stderr, "\n")) return false } if ok, err := check.ParseGoSum(); !ok { |
