further automation
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
68bdcebd85
commit
be60237c1c
|
@ -55,6 +55,7 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
scanForReady()
|
||||
scanForReady()
|
||||
reposwin.Toggle()
|
||||
findNextDirty("")
|
||||
})
|
||||
|
||||
me.autoHideReadOnly = group1.NewCheckbox("Hide read-only repos").SetChecked(true)
|
||||
|
|
|
@ -307,6 +307,7 @@ func createReleaseBox(box *gui.Node) {
|
|||
buttonEnable()
|
||||
})
|
||||
|
||||
/*
|
||||
release.grid.NewButton("CheckPrimativeGoMod()", func() {
|
||||
tmp := release.current.String()
|
||||
log.Info("Run CheckGoSum on repo:", tmp)
|
||||
|
@ -317,6 +318,13 @@ func createReleaseBox(box *gui.Node) {
|
|||
}
|
||||
|
||||
})
|
||||
*/
|
||||
|
||||
release.makeRedomodB = release.grid.NewButton("make redomod", func() {
|
||||
buttonDisable()
|
||||
release.current.status.MakeRedomod()
|
||||
buttonEnable()
|
||||
})
|
||||
|
||||
release.grid.NewButton("goodCheckGoSum()", func() {
|
||||
buttonDisable()
|
||||
|
@ -327,11 +335,6 @@ func createReleaseBox(box *gui.Node) {
|
|||
}
|
||||
buttonEnable()
|
||||
})
|
||||
release.makeRedomodB = release.grid.NewButton("make redomod", func() {
|
||||
buttonDisable()
|
||||
release.current.status.MakeRedomod()
|
||||
buttonEnable()
|
||||
})
|
||||
}
|
||||
|
||||
func goodCheckGoSum() bool {
|
||||
|
@ -347,17 +350,24 @@ func goodCheckGoSum() bool {
|
|||
repo, ok := me.allrepos[depname]
|
||||
if ok {
|
||||
goSumS := repo.getGoSumStatus()
|
||||
// ignore dependencies on whitelisted repos
|
||||
// TODO: warn the user about the whitelist
|
||||
if goSumS == "WHITELIST" {
|
||||
continue
|
||||
}
|
||||
if release.current.status.ReadOnly() {
|
||||
// check if the dependent repo is ReadOnly
|
||||
// if so, there isn't anything we can do about
|
||||
// version mis-matches
|
||||
if repo.status.ReadOnly() {
|
||||
continue
|
||||
}
|
||||
lastS := repo.status.GetLastTagVersion()
|
||||
targetS := repo.targetVersion.String()
|
||||
log.Info(" repo deps:", depname, version, "vs", goSumS, lastS, targetS)
|
||||
if lastS != targetS {
|
||||
log.Info(" repo deps: FALSE lastS != targetS", lastS, targetS)
|
||||
log.Info("repo deps: FALSE lastS != targetS", lastS, targetS)
|
||||
log.Info("repo deps: FALSE status.ReadOnly()", release.current.status.ReadOnly())
|
||||
log.Info("repo deps: FALSE path", release.current.String())
|
||||
maybe = false
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue