From 682acb34813188d292f7d6312f7d3d5c0fdfb22b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 13 Dec 2024 12:33:30 -0600 Subject: [PATCH] start using go-mod-clean --- doRedoGoMod.go | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/doRedoGoMod.go b/doRedoGoMod.go index 238ab2a..c5d2304 100644 --- a/doRedoGoMod.go +++ b/doRedoGoMod.go @@ -2,24 +2,17 @@ package main // An app to submit patches for the 30 GO GUI repos -import ( - "os" - - "go.wit.com/log" -) - func doRedoGoMod() { - me.forge.RillRedoGoMod() - os.Exit(0) + // me.forge.RillRedoGoMod() all := me.forge.Repos.SortByGoPath() for all.Scan() { repo := all.Next() - if !repo.IsValid() { - log.Printf("%10s %-50s", "old?", repo.GetGoPath()) + if err := repo.ValidGoSum(); err == nil { continue } - log.Printf("running on: %-50s", repo.GetGoPath()) - repo.RedoGoMod() + if err := repo.RunStrict([]string{"go-mod-clean"}); err != nil { + badExit(err) + } } }