switch repo

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-02 17:04:57 -06:00
parent 8e6a40c4bd
commit bf9cb7c418
3 changed files with 13 additions and 4 deletions

View File

@ -4,6 +4,7 @@ package main
import (
"embed"
"fmt"
"strings"
"time"
"go.wit.com/log"
@ -38,6 +39,11 @@ func main() {
} else {
repo.targetVersion.SetText("v" + "0.19.2")
}
if strings.HasPrefix(repo.String(), "go.wit.com/dev/") {
lasttag := repo.status.GetLastTagVersion()
repo.targetVersion.SetText(lasttag)
}
// if repo.String() == "go.wit.com/apps/guireleaser" {
}
log.Info("Creating the Release Window")

View File

@ -177,6 +177,9 @@ func createReleaseBox(box *gui.Node) {
lasttag := release.current.status.GetLastTagVersion()
release.current.lastTag.SetLabel(lasttag)
release.current.vLabel.SetLabel(cbname + " " + cbversion)
// scan for new repo
findNextDirty("")
} else {
log.Info("SELF UPDATE FAILED err =", err)
log.Info("SELF UPDATE FAILED out =", out)
@ -251,7 +254,7 @@ func createReleaseBox(box *gui.Node) {
me.goSrcPwd.SetText(srcDir)
testf := filepath.Join(srcDir, "go.wit.com/apps/guireleaser", "go.sum")
if ! Exists(testf) {
if !Exists(testf) {
log.Info("go.sum missing", testf)
panic("redo go.sum")
}

View File

@ -11,9 +11,9 @@ func initWhitelist() {
if strings.HasPrefix(repo.String(), "go.wit.com/dev/") {
release.whitelist[repo.String()] = repo
}
if repo.String() == "go.wit.com/apps/guireleaser" {
release.whitelist[repo.String()] = repo
}
// if repo.String() == "go.wit.com/apps/guireleaser" {
// release.whitelist[repo.String()] = repo
// }
// if repo.String() == "go.wit.com/lib/gui/repostatus" {
// release.whitelist[repo.String()] = repo
// }