start using go-mod-clean
This commit is contained in:
parent
9d183050eb
commit
682acb3481
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue