forge/doRedoGoMod.go

36 lines
660 B
Go

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)
}
*/
}