diff options
| author | Jeff Carr <[email protected]> | 2025-01-18 11:31:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-18 11:31:36 -0600 |
| commit | f9c5e4c44400c49661db5b54513b25bbe5baa97a (patch) | |
| tree | ec4feb51e8b8b40541c18bf177167925f74f7753 | |
| parent | 57883ffa614946333fbc20942ea332c959424bc3 (diff) | |
rill some stuffv0.23.28
| -rw-r--r-- | findNext.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/findNext.go b/findNext.go index 34f09b3..536d798 100644 --- a/findNext.go +++ b/findNext.go @@ -15,10 +15,20 @@ var findFix bool = false var findOk bool = true func rillFixGodeps(repo *gitpb.Repo) error { + if repo.GetTargetVersion() == "" { + // not set to upgrade + return nil + } + if repo.GetLastTag() == repo.GetTargetVersion() { + return nil + } + if me.forge.Config.IsReadOnly(repo.GetGoPath()) { + return nil + } if fixGodeps(repo) { - log.Info("fixGoDeps() returned true") + log.Info("Rill fixGoDeps() returned true") } else { - log.Info("fixGoDeps() returned false") + log.Info("Rill fixGoDeps() returned false") } return nil } @@ -28,7 +38,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(20, 10, rillFixGodeps) log.Printf("rillFixGodeps() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now))) findCounter = 0 @@ -50,7 +60,7 @@ func findNext() bool { log.Info("findNext() skipping readonly") continue } - if check.CheckDirty() { + if check.IsDirty() { log.Info("findNext() skipping dirty") continue } |
