this needs rework

This commit is contained in:
Jeff Carr 2025-01-19 04:32:01 -06:00
parent 57883ffa61
commit ff90528c2e
1 changed files with 4 additions and 5 deletions

View File

@ -15,11 +15,10 @@ var findFix bool = false
var findOk bool = true
func rillFixGodeps(repo *gitpb.Repo) error {
if fixGodeps(repo) {
log.Info("fixGoDeps() returned true")
} else {
log.Info("fixGoDeps() returned false")
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
return nil
}
runGoClean(repo, "--strict")
return nil
}
@ -28,7 +27,7 @@ func rillFixGodeps(repo *gitpb.Repo) error {
// rename this findNext()
func findNext() bool {
now := time.Now()
me.forge.RillFuncError(2, 2, rillFixGodeps)
me.forge.RillFuncError(rillFixGodeps)
log.Printf("rillFixGodeps() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
findCounter = 0