diff --git a/Makefile b/Makefile index 82815d9..03bff5b 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ goimports: # // to globally reset paths: # // gofmt -w -r "go.wit.com/gui -> go.wit.com/gui/gui" . +vet: + GO111MODULE=off go vet + build: echo "build it!" GO111MODULE=off go build -v -x -ldflags " \ diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 0e468a3..4ec5c93 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -149,6 +149,15 @@ func globalDisplayOptions(box *gui.Node) { me.Enable() }) grid.NewButton("increment minor version", func() { + // this is messy still. if the release process fails, it needs to continue + // for now, use the "go.wit.com/log" release minor number as the official + // release. If it hasn't been updated yet, then start there + logrepo := me.repos.View.FindRepo("go.wit.com/log") + if logrepo == nil { + log.Info("couldn't find go.wit.com/log") + return + } + releasev := logrepo.Status.LastTag() for _, repo := range me.repos.View.AllRepos() { if whitelist(repo.GoPath()) { continue @@ -168,6 +177,11 @@ func globalDisplayOptions(box *gui.Node) { repo.Status.IncrementRevisionVersion("trying minor") continue } + if releasev == repo.Status.LastTag() { + log.Info("skipping already released repo", repo.Status.GoPath()) + repo.Status.SetTargetVersion(releasev) + continue + } // repo.Status.SetVersion("0", "22", "0", "trying increment minor") repo.Status.IncrementMinorVersion("trying minor") }