diff options
Diffstat (limited to 'lookForUnwind.go')
| -rw-r--r-- | lookForUnwind.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lookForUnwind.go b/lookForUnwind.go index 3387921..cb54d87 100644 --- a/lookForUnwind.go +++ b/lookForUnwind.go @@ -9,7 +9,7 @@ import ( ) func lookToUnwind(r *repolist.Repo) bool { - goSumS := r.Status.GetGoSumStatus() + goSumS := r.GoState() dirtyS := r.State() currentS := r.Status.GetCurrentBranchVersion() log.Info("repo:", r.Name(), goSumS, dirtyS, r.State(), currentS) @@ -21,19 +21,19 @@ func lookToUnwind(r *repolist.Repo) bool { log.Info("\trepo is ready working from main branch", curName, "=", mName) } else { log.Info("\trepo is not ready main branch", curName, "!=", mName) - r.Status.SetGoSumStatus("CAN NOT UNWIND") + r.SetGoState("CAN NOT UNWIND") return false } if r.LastTag() != currentS { log.Info("\trepo version mismatch last vs current", r.LastTag(), "!=", currentS) - r.Status.SetGoSumStatus("CAN NOT UNWIND") + r.SetGoState("CAN NOT UNWIND") return false } if release.version.String() != r.LastTag() { log.Info("\trepo version mismatch last vs official", r.LastTag(), "!=", release.version.String()) - r.Status.SetGoSumStatus("CAN NOT UNWIND") + r.SetGoState("CAN NOT UNWIND") return false } @@ -41,7 +41,7 @@ func lookToUnwind(r *repolist.Repo) bool { testf := filepath.Join(fullpath, "go.mod") if Exists(testf) { log.Info("\trepo is ready. go.mod exists") - r.Status.SetGoSumStatus("UNWIND") + r.SetGoState("UNWIND") return true } @@ -49,10 +49,10 @@ func lookToUnwind(r *repolist.Repo) bool { testf = filepath.Join(fullpath, "go.sum") if Exists(testf) { log.Info("\trepo is ready. go.sum exists") - r.Status.SetGoSumStatus("UNWIND") + r.SetGoState("UNWIND") return true } - r.Status.SetGoSumStatus("NO UNWIND?") + r.SetGoState("NO UNWIND?") return false } |
