summaryrefslogtreecommitdiff
path: root/scanGoSum.go
diff options
context:
space:
mode:
Diffstat (limited to 'scanGoSum.go')
-rw-r--r--scanGoSum.go32
1 files changed, 3 insertions, 29 deletions
diff --git a/scanGoSum.go b/scanGoSum.go
index 5b1fe97..40e637a 100644
--- a/scanGoSum.go
+++ b/scanGoSum.go
@@ -2,21 +2,9 @@
package main
import (
- "go.wit.com/lib/gui/repolist"
"go.wit.com/log"
)
-func checkSafeGoSumRemake(r *repolist.Repo) {
- if ok, bad := r.Status.CheckSafeGoSumRemake(); ok {
- log.Info("checkSafeGoSumRemake() is safe to redo")
- r.SetGoState("SAFE")
- r.Status.MakeRedomod()
- } else {
- log.Info("checkSafeGoSumRemake() is not safe. problems:", bad)
- r.SetGoState("BAD DEP")
- }
-}
-
func scanGoSum() {
for _, repo := range me.repos.View.AllRepos() {
if repo.GoPath() == "go.wit.com/apps/guireleaser" {
@@ -31,9 +19,9 @@ func scanGoSum() {
if repo.GoState() == "DIRTY" {
continue
}
- if repo.Status.CheckPrimativeGoMod() {
- log.Info("PRIMATIVE repo:", latestversion, repo.GoPath())
- repo.SetGoState("PRIMATIVE")
+ if repo.Status.IsPrimitive() {
+ log.Info("PRIMITIVE repo:", latestversion, repo.GoPath())
+ repo.SetGoState("PRIMITIVE")
continue
}
if repo.CheckDirty() {
@@ -48,20 +36,6 @@ func scanGoSum() {
// release.openrepo.Enable()
continue
}
- if ok, missing := repo.Status.CheckGoSum(); ok {
- log.Info("repo has go.sum requirements that are clean")
- repo.SetGoState("CLEAN")
- } else {
- log.Info("repo has go.sum requirements that are screwed up. missing:", missing)
- repo.SetGoState("BAD")
-
- // release.repo.SetValue(repo.status.String())
- // release.status.SetValue("bad")
- // release.notes.SetValue("the go.sum file is wrong")
- // release.current = repo
- // release.openrepo.Enable()
- continue
- }
status := repo.State()
if status == "PERFECT" {
continue