just name fixups. maybe more. this still doesn't work

This commit is contained in:
Jeff Carr 2025-01-30 01:47:56 -06:00
parent ffb90cd28f
commit d81a1f6cb9
2 changed files with 3 additions and 7 deletions

View File

@ -72,7 +72,7 @@ func findNext() bool {
}
log.Info("CHECKING:", check.GetGoPath())
// _, err := check.RunVerboseOnError([]string{"go-mod-clean", "--strict"})
_, err := check.RunStrictNew([]string{"go-mod-clean", "--smart"})
_, err := check.RunQuiet([]string{"go-mod-clean", "--smart"})
if err != nil {
log.Info("FAILED: findNext() go-mod-clean --smart", check.GetGoPath(), err)
continue
@ -116,7 +116,6 @@ func findNext() bool {
if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err != nil {
// if err := me.forge.FinalGoDepsCheckOk(check, false); err != nil {
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
log.Info("FinalGoDepsCheckOk() repo=", check.GetGoPath(), "err:", err)
log.Info("CHECKING END:", check.GetGoPath())
log.Info("")
continue
@ -138,14 +137,11 @@ func findNext() bool {
// tries to fix the go.mod and go.sum files
func fixGodeps(check *gitpb.Repo) bool {
log.Info("fixGoDeps() START", check.GetGoPath())
log.Info("fixGoDeps() START", check.GetGoPath())
log.Info("fixGoDeps() START", check.GetGoPath())
var good bool = true
check.GoDeps = nil
if result, err := check.RunStrictNew([]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)
// log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath(), len(result.Stdout), len(result.Stderr))
if len(result.Stderr) > 0 {

View File

@ -51,7 +51,7 @@ func rillRestore(repo *gitpb.Repo) error {
return nil
}
_, err := repo.RunStrictNew([]string{"go-mod-clean", "--restore"})
_, err := repo.RunQuiet([]string{"go-mod-clean", "--restore"})
rillcount += 1
if err != nil {
log.Info("go-mod-clean --restore failed", repo.GetGoPath(), err)