summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'addRepo.go')
-rw-r--r--addRepo.go28
1 files changed, 12 insertions, 16 deletions
diff --git a/addRepo.go b/addRepo.go
index 007ecc8..8242ab0 100644
--- a/addRepo.go
+++ b/addRepo.go
@@ -183,22 +183,18 @@ func (r *RepoList) addRepo(grid *gui.Node, path string, master string, devel str
}
newRepo.Status.Toggle()
})
-
- var showBuildB bool = false
- switch newRepo.Status.RepoType() {
- case "binary":
- // log.Info("compile here. Show()")
- showBuildB = true
- case "library":
- // log.Info("library here. Hide()")
- default:
- // log.Info("unknown RepoType", newRepo.Status.RepoType())
- }
- if showBuildB {
- newRepo.endBox.NewButton("build", func() {
- newRepo.Status.Build()
- })
- }
+ newRepo.endBox.NewButton("CheckValidGoSum()", func() {
+ ok, err := r.CheckValidGoSum(newRepo)
+ if err != nil {
+ log.Info("go mod tidy did not work err =", err)
+ return
+ }
+ if ok {
+ log.Info("repo has go.sum requirements that are clean")
+ newRepo.goState.SetText("GOOD")
+ return
+ }
+ })
default:
}
grid.NextRow()