hmm. notsure what is going on
This commit is contained in:
parent
6add3f9982
commit
8d5d7ca85c
|
@ -8,6 +8,7 @@ import (
|
|||
"time"
|
||||
|
||||
"go.wit.com/lib/gui/shell"
|
||||
"go.wit.com/lib/protobuf/forgepb"
|
||||
"go.wit.com/lib/protobuf/gitpb"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
@ -62,7 +63,6 @@ func rillPurge(repo *gitpb.Repo) error {
|
|||
}
|
||||
|
||||
func rillRestore(repo *gitpb.Repo) error {
|
||||
log.Info("go-mod-clean --smart", repo.GetGoPath())
|
||||
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
|
||||
return nil
|
||||
}
|
||||
|
@ -70,7 +70,9 @@ func rillRestore(repo *gitpb.Repo) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
log.Info("go-mod-clean --smart START", repo.GetGoPath())
|
||||
_, err := repo.RunQuiet([]string{"go-mod-clean", "--smart"})
|
||||
log.Info("go-mod-clean --smart END", repo.GetGoPath())
|
||||
rillcount += 1
|
||||
if err != nil {
|
||||
log.Info("go-mod-clean --smart failed", repo.GetGoPath(), err)
|
||||
|
@ -86,6 +88,8 @@ func rePrepareRelease() {
|
|||
|
||||
log.Printf("rePrepareRelease() START rill go-mod-clean --smart (11 seconds?)")
|
||||
rillcount = 0
|
||||
forgepb.RillX = 2
|
||||
forgepb.RillY = 2
|
||||
now := time.Now()
|
||||
me.forge.RillFuncError(rillRestore)
|
||||
log.Printf("showRestore() (%d total repos) took:%s\n", rillcount, shell.FormatDuration(time.Since(now)))
|
||||
|
|
Loading…
Reference in New Issue