diff options
| author | Jeff Carr <[email protected]> | 2024-02-14 12:14:33 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-14 12:14:33 -0600 |
| commit | cae327e1629306a0d18515387c6f541f92c772a7 (patch) | |
| tree | c5f0c9641d437c7c6d4f21180a068e3db392798f /releaseWindow.go | |
| parent | f408a756f96bda643d143129f400cd98492864ba (diff) | |
redo the release tag after publishv0.20.4
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'releaseWindow.go')
| -rw-r--r-- | releaseWindow.go | 145 |
1 files changed, 1 insertions, 144 deletions
diff --git a/releaseWindow.go b/releaseWindow.go index 863178f..bf6c28d 100644 --- a/releaseWindow.go +++ b/releaseWindow.go @@ -97,40 +97,7 @@ func createReleaseBox(box *gui.Node) { }) release.openrepo = release.grid.NewButton("open repo", func() { - if release.current == nil { - log.Info("find the next repo first") - return - } - // make sure read only is set - if release.current.status.ReadOnly() { - release.readOnly.SetValue("true") - } else { - release.readOnly.SetValue("false") - } - - // do a new scan - release.current.newScan() - - // only continue if the go.sum & go.mod files are clean - if ok, missing := release.current.status.CheckGoSum(); ok { - log.Info("repo has go.sum requirements that are clean") - release.status.SetValue("CLEAN") - release.current.setGoSumStatus("CLEAN") - } else { - log.Info("BAD repo has go.sum requirements that are screwed up. missing:", missing) - release.status.SetValue("BAD") - release.current.setGoSumStatus("BAD") - return - } - - if release.current.dirtyLabel.String() == "PERFECT" { - log.Info("REPO IS STILL DIRTY") - return - } - - // open the status window to commit the release release.current.status.Toggle() - release.current.status.UpdateCurrent() }) release.openrepo.Disable() @@ -206,19 +173,6 @@ func createReleaseBox(box *gui.Node) { buttonEnable() }) - /* - release.grid.NewButton("CheckPrimativeGoMod()", func() { - tmp := release.current.String() - log.Info("Run CheckGoSum on repo:", tmp) - if release.current.status.CheckPrimativeGoMod() { - log.Info("repo has PRIMATIVE go.mod") - } else { - log.Info("repo go.mod requies checking for a go.sum") - } - - }) - */ - release.makeRedomodB = release.grid.NewButton("make redomod", func() { buttonDisable() if release.current.status.MakeRedomod() { @@ -259,7 +213,7 @@ func createReleaseBox(box *gui.Node) { func fullDoubleCheckFix() bool { release.current.status.CheckSafeGoSumRemake() - if ! release.current.status.MakeRedomod() { + if !release.current.status.MakeRedomod() { log.Info("go mod failed") return false } @@ -282,8 +236,6 @@ func fullDoubleCheckFix() bool { func goodCheckGoSum() bool { tmp := release.current.String() log.Info("goodCheckGoSum() START on repo:", tmp, "STATUS =", release.current.getGoSumStatus()) - /* - */ var maybe bool = true goConfig := release.current.status.GetGoDeps() @@ -335,30 +287,6 @@ func buttonEnable() { me.Enable() } -func findDirty2() bool { - log.Info("findDirty2() START") - for _, repo := range me.allrepos { - goSumS := repo.getGoSumStatus() - dirtyS := repo.dirtyLabel.String() - - if goSumS == "IGNORE" { - continue - } - - if goSumS == "DIRTY 2" { - log.Info("repo DIRTY 2", repo.String(), goSumS, dirtyS) - if setCurrentRepo(repo, "dirty 2", "check manually I guess") { - return true - } - return true - } else { - log.Info("repo not DIRTY 2", repo.String(), goSumS, dirtyS) - } - } - log.Info("findDirty2() END") - return false -} - func setCurrentRepo(newcur *repo, s string, note string) bool { if newcur.status.ReadOnly() { return false @@ -373,13 +301,6 @@ func setCurrentRepo(newcur *repo, s string, note string) bool { release.unreleaseB.SetText("un-release version " + release.current.targetVersion.String()) release.openrepo.Enable() - /* - if newcur.status.ReadOnly() { - release.readOnly.SetValue("true ro") - } else { - release.readOnly.SetValue("false ro") - } - */ return true } @@ -510,67 +431,3 @@ func findNextDirty(onlyKind string) bool { release.status.SetValue("ALL DONE?") return false } - -func findNextRepo() bool { - for _, repo := range me.allrepos { - goSumS := repo.getGoSumStatus() - dirtyS := repo.dirtyLabel.String() - - log.Info("findNextRepo()", repo.String(), goSumS, dirtyS) - if goSumS == "IGNORE" { - continue - } - if goSumS == "DIRTY 2" { - continue - } - if goSumS == "BAD VERSION" { - continue - } - if goSumS == "BAD DEP" { - // find out what kind of BAD DEP? - continue - } - // latestversion := repo.status.GetLastTagVersion() - if goSumS == "CLEAN" { - // if it's clean here, then check and remake the go.sum file - // then stop to commit the release version - repo.checkSafeGoSumRemake() - if repo.checkDirty() { - dirtyS = repo.dirtyLabel.String() - } - if dirtyS == "PERFECT" { - continue - } - if setCurrentRepo(repo, "clean round 2", "check manually") { - return true - } - } - if goSumS == "DIRTY" { - if ok, missing := repo.status.CheckGoSum(); ok { - log.Info("repo has go.sum requirements that are clean") - // repo.setGoSumStatus("CLEAN") - } else { - log.Info("DIRTY 3 repo has go.sum requirements that are screwed up. missing:", missing) - repo.setGoSumStatus("DIRTY 3") - continue - } - - if setCurrentRepo(repo, "dirty", "commit changes") { - return true - } - } - if goSumS == "BAD" { - // if it's clean here, then check and remake the go.sum file - // then stop to commit the release version - repo.checkSafeGoSumRemake() - if repo.checkDirty() { - dirtyS = repo.dirtyLabel.String() - } - if setCurrentRepo(repo, "bad", "redo go.sum") { - return true - } - } - } - log.Info("tried to findNextRepo() but not sure what to do next") - return false -} |
