forge/doRedoGoMod.go

29 lines
591 B
Go
Raw Normal View History

2024-12-05 12:29:47 -06:00
package main
// An app to submit patches for the 30 GO GUI repos
func doRedoGoMod() {
2024-12-13 12:33:30 -06:00
// me.forge.RillRedoGoMod()
2024-12-11 19:32:04 -06:00
all := me.forge.Repos.SortByGoPath()
for all.Scan() {
repo := all.Next()
2024-12-13 12:33:30 -06:00
if err := repo.ValidGoSum(); err == nil {
2024-12-05 12:29:47 -06:00
continue
}
2024-12-13 12:33:30 -06:00
if err := repo.RunStrict([]string{"go-mod-clean"}); err != nil {
badExit(err)
}
2024-12-05 12:29:47 -06:00
}
}
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)
}
*/
}