lame debugging code before. couldn't tell what was failing
This commit is contained in:
parent
501241dbb6
commit
3ceb5d0bf5
14
findNext.go
14
findNext.go
|
@ -3,7 +3,6 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"slices"
|
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
|
||||||
|
@ -145,17 +144,12 @@ func fixGodeps(check *gitpb.Repo) bool {
|
||||||
check.GoDeps = nil
|
check.GoDeps = nil
|
||||||
|
|
||||||
if result, err := check.RunQuiet([]string{"go-mod-clean", "--strict"}); err != nil {
|
if result, err := check.RunQuiet([]string{"go-mod-clean", "--strict"}); err != nil {
|
||||||
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), err)
|
for _, line := range result.Stdout {
|
||||||
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), len(result.Stdout), len(result.Stderr))
|
log.Warn("stdout:", line)
|
||||||
if len(result.Stderr) > 0 {
|
|
||||||
slices.Reverse(result.Stderr)
|
|
||||||
log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), result.Stderr[0])
|
|
||||||
}
|
}
|
||||||
if len(result.Stdout) > 0 {
|
for _, line := range result.Stderr {
|
||||||
slices.Reverse(result.Stdout)
|
log.Warn("stderr:", line)
|
||||||
log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), result.Stdout[0])
|
|
||||||
}
|
}
|
||||||
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath())
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if check.ParseGoSum() {
|
if check.ParseGoSum() {
|
||||||
|
|
Loading…
Reference in New Issue