summaryrefslogtreecommitdiff
path: root/globalDisplayOptions.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-02 20:47:10 -0600
committerJeff Carr <[email protected]>2024-03-02 20:47:10 -0600
commit1a90d070bb298d3109d42e92acfdeea82cf3eef0 (patch)
treea7059b8fd3d14741d43595204015a0abf6014ba4 /globalDisplayOptions.go
parentd60a565d889461fb04063d831cd63334156cd091 (diff)
keep trying to increment versions
Diffstat (limited to 'globalDisplayOptions.go')
-rw-r--r--globalDisplayOptions.go28
1 files changed, 27 insertions, 1 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index 055f0ab..0e468a3 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -2,6 +2,7 @@ package main
import (
"os"
+ "strings"
"go.wit.com/gui"
"go.wit.com/lib/debugger"
@@ -119,7 +120,8 @@ func globalDisplayOptions(box *gui.Node) {
// unless go.sum depends on changed repos
if targetv != lasttag {
log.Info(repo.GoPath(), "trigger a new release?", targetv, lasttag)
- repo.Status.SetVersion("0", "21", "0", releaseReasonS)
+ // repo.Status.SetVersion("0", "21", "0", me.releaseReasonS)
+ repo.Status.IncrementMinorVersion(me.releaseReasonS)
}
continue
@@ -146,6 +148,30 @@ func globalDisplayOptions(box *gui.Node) {
incrementTags.SetText("maybe ready?")
me.Enable()
})
+ grid.NewButton("increment minor version", func() {
+ for _, repo := range me.repos.View.AllRepos() {
+ if whitelist(repo.GoPath()) {
+ continue
+ }
+ if repo.ReadOnly() {
+ continue
+ }
+ if strings.HasPrefix(repo.GoPath(), "go.wit.com/dev") {
+ continue
+ }
+ if strings.HasPrefix(repo.GoPath(), "go.wit.com/widget") {
+ // widget I versioned early before I knew what the hell this would mean and can
+ // not be down versioned because that's not how GO versioning works. Once you
+ // set the version for a path, it's set in stone forever. (smart system!)
+ // we could rename go.wit.com/widget to go.wit.com/newwidget and restart the versioning
+ // system, but that's rediculous and this servers to always remind me to never make this mistake again
+ repo.Status.IncrementRevisionVersion("trying minor")
+ continue
+ }
+ // repo.Status.SetVersion("0", "22", "0", "trying increment minor")
+ repo.Status.IncrementMinorVersion("trying minor")
+ }
+ })
grid.NextRow()
group2 := vbox.NewGroup("Debugger")