summaryrefslogtreecommitdiff
path: root/doRedoGoMod.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 12:33:30 -0600
committerJeff Carr <[email protected]>2024-12-13 12:33:30 -0600
commit682acb34813188d292f7d6312f7d3d5c0fdfb22b (patch)
treece550512ff3e5849a1b8ae107a88cca0ee510cbb /doRedoGoMod.go
parent9d183050eb8bf5bb3ad0061f417c3b4e0902275a (diff)
start using go-mod-clean
Diffstat (limited to 'doRedoGoMod.go')
-rw-r--r--doRedoGoMod.go17
1 files 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)
+ }
}
}