after finding a fixable repo, update go.sum
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f7bcde226f
commit
7aca2fcb69
|
@ -84,6 +84,9 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
me.setBranchesToMasterB = group1.NewButton("set all branches to master", func() {
|
||||
me.Disable()
|
||||
for _, repo := range me.allrepos {
|
||||
if repo.status.ReadOnly() {
|
||||
continue
|
||||
}
|
||||
if whitelist(repo.String()) {
|
||||
continue
|
||||
}
|
||||
|
@ -91,10 +94,10 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
log.Warn("set master branch worked", repo.String())
|
||||
repo.newScan()
|
||||
} else {
|
||||
log.Warn("set master branch failed", repo.String())
|
||||
repo.newScan()
|
||||
me.Enable()
|
||||
return
|
||||
log.Warn("set master branch failed", repo.String())
|
||||
log.Warn("set master branch failed", repo.String())
|
||||
log.Warn("set master branch failed", repo.String())
|
||||
}
|
||||
}
|
||||
me.Enable()
|
||||
|
|
6
main.go
6
main.go
|
@ -30,16 +30,16 @@ func main() {
|
|||
|
||||
repoworld()
|
||||
|
||||
me.releaseReasonS = "better Malinae"
|
||||
me.releaseReasonS = "checkbox fixes"
|
||||
|
||||
for _, repo := range me.allrepos {
|
||||
repo.status.UpdateCurrent()
|
||||
repo.newScan()
|
||||
|
||||
if repo.String() == "go.wit.com/widget" {
|
||||
repo.targetVersion.SetText("v" + "1.1.15")
|
||||
repo.targetVersion.SetText("v" + "1.1.16")
|
||||
} else {
|
||||
repo.targetVersion.SetText("v" + "0.20.0")
|
||||
repo.targetVersion.SetText("v" + "0.20.1")
|
||||
}
|
||||
if strings.HasPrefix(repo.String(), "go.wit.com/dev/") {
|
||||
lasttag := repo.status.GetLastTagVersion()
|
||||
|
|
|
@ -182,6 +182,14 @@ func createReleaseBox(box *gui.Node) {
|
|||
|
||||
// scan for new repo
|
||||
findNextDirty("")
|
||||
release.current.status.CheckSafeGoSumRemake()
|
||||
release.current.status.MakeRedomod()
|
||||
if ok, _ := release.current.status.CheckGoSum(); ok {
|
||||
log.Info("repo has go.sum requirements that are clean")
|
||||
// release.current.setGoSumStatus("CLEAN")
|
||||
release.status.SetValue("GOOD")
|
||||
release.notes.SetValue("CheckGoSum() does not seem to lie")
|
||||
}
|
||||
} else {
|
||||
log.Info("SELF UPDATE FAILED err =", err)
|
||||
log.Info("SELF UPDATE FAILED out =", out)
|
||||
|
|
Loading…
Reference in New Issue