summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prepareRelease.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/prepareRelease.go b/prepareRelease.go
index fc21d31..04eed3a 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -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)))