diff options
| author | Jeff Carr <[email protected]> | 2024-12-05 12:29:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-05 12:29:47 -0600 |
| commit | 816760d1372d6d1922a9916f3150e49f3fd562cd (patch) | |
| tree | 0889b24fabb5d35dc0db53d0bbf71a985427c89b /doRedoGoMod.go | |
| parent | 0463030e80f480f0d38989f4231db8b1651b40bc (diff) | |
developing on this now
Diffstat (limited to 'doRedoGoMod.go')
| -rw-r--r-- | doRedoGoMod.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doRedoGoMod.go b/doRedoGoMod.go new file mode 100644 index 0000000..6e9f979 --- /dev/null +++ b/doRedoGoMod.go @@ -0,0 +1,35 @@ +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) + repos := me.forge.Repos.SortByGoPath() + for repos.Scan() { + repo := repos.Next() + if !repo.IsValid() { + log.Printf("%10s %-50s", "old?", repo.GetGoPath()) + continue + } + log.Printf("running on: %-50s", repo.GetGoPath()) + repo.RedoGoMod() + } +} + +func doEraseGoMod() { + /* + var cmds [][]string + cmds = append(cmds, []string{"rm", "-f", "go.mod", "go.sum"}) + errs := me.forge.RillCmds(me.packs, cmds) + foreach x, y := range errs { + log.Info("EraseGoMod() error", x.GoPath, y) + } + */ +} |
