summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 14:12:29 -0600
committerJeff Carr <[email protected]>2025-01-30 14:12:29 -0600
commit3ceb5d0bf536f1de5035aa450f880debf82af466 (patch)
tree0bed168e47fa38d7daf13d9f594da0f42deeab2f
parent501241dbb6417f642dc4a16248fffc46278a2b05 (diff)
lame debugging code before. couldn't tell what was failingv0.23.41v0.23.40v0.23.39v0.23.38v0.23.37
-rw-r--r--findNext.go14
1 files changed, 4 insertions, 10 deletions
diff --git a/findNext.go b/findNext.go
index 14d3558..dd04781 100644
--- a/findNext.go
+++ b/findNext.go
@@ -3,7 +3,6 @@ package main
import (
"fmt"
- "slices"
"go.wit.com/log"
@@ -145,17 +144,12 @@ func fixGodeps(check *gitpb.Repo) bool {
check.GoDeps = nil
if result, err := check.RunQuiet([]string{"go-mod-clean", "--strict"}); err != nil {
- // log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), err)
- // log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), len(result.Stdout), len(result.Stderr))
- if len(result.Stderr) > 0 {
- slices.Reverse(result.Stderr)
- log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), result.Stderr[0])
+ for _, line := range result.Stdout {
+ log.Warn("stdout:", line)
}
- if len(result.Stdout) > 0 {
- slices.Reverse(result.Stdout)
- log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), result.Stdout[0])
+ for _, line := range result.Stderr {
+ log.Warn("stderr:", line)
}
- // log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath())
return false
}
if check.ParseGoSum() {