From e76894265e23eb3f41ed8cc3303ecfbefd0122b8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 16 Dec 2024 00:19:03 -0600 Subject: add --protobuf --- findNext.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'findNext.go') 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 { -- cgit v1.2.3