diff options
| author | Jeff Carr <[email protected]> | 2025-01-19 04:32:01 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-19 04:32:01 -0600 |
| commit | ff90528c2e85389d06e3a49c3ff3d42e8f65d230 (patch) | |
| tree | 226eef54343474b1befe68768b90c1a2f0d0c84f | |
| parent | 57883ffa614946333fbc20942ea332c959424bc3 (diff) | |
this needs rework
| -rw-r--r-- | findNext.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/findNext.go b/findNext.go index 34f09b3..17e6ad0 100644 --- a/findNext.go +++ b/findNext.go @@ -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 |
