summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 16:17:28 -0600
committerJeff Carr <[email protected]>2024-12-01 16:17:28 -0600
commit07decc492eea8b611fc28fcb052e7a2d783e8513 (patch)
treec66992da86ae29d169019b8804afd69490b4ccb2
parent8209a5645a1a487d6a57de41e5a1b5604c2114de (diff)
maybe works?
-rw-r--r--globalDisplayOptions.go23
-rw-r--r--releaseBox.go18
2 files changed, 23 insertions, 18 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index 71acf74..f07d0c1 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -1,6 +1,8 @@
package main
import (
+ "os"
+
"go.wit.com/gui"
"go.wit.com/lib/debugger"
"go.wit.com/lib/gui/logsettings"
@@ -34,6 +36,27 @@ func globalDisplayOptions(box *gui.Node) {
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
repo := loop.Repo()
+ // if the RepoType is a binary, check if the package dependancies changed, if so, re-publish
+ if repo.RepoType() == "binary" {
+ check := me.forge.Repos.FindByGoPath(repo.GoPath())
+ if check == nil {
+ log.Info("boo, you didn't git clone", repo.GoPath())
+ os.Exit(-1)
+ }
+ match, err := me.forge.Repos.GoDepsChanged(check)
+ if err != nil {
+ log.Info("dependancy checks failed", check.GetGoPath(), err)
+ repo.Status.IncrementRevisionVersion("missing prior published godeps")
+ continue
+ }
+ if match {
+ log.Printf("dependancy checks indicate a new release is needed for %s\n", check.GetGoPath())
+ repo.Status.IncrementRevisionVersion("godeps changed")
+ continue
+ } else {
+ log.Printf("dependancies have not changed for %s\n", check.GetGoPath())
+ }
+ }
master := repo.Status.GetMasterVersion()
lastTag := repo.Status.LastTag()
diff --git a/releaseBox.go b/releaseBox.go
index 07d0fa9..e4de30c 100644
--- a/releaseBox.go
+++ b/releaseBox.go
@@ -317,24 +317,6 @@ func findNext() bool {
}
continue
}
- // if the RepoType is a binary, check if the package dependancies changed, if so, re-publish
- if repo.RepoType() == "binary" {
- check := me.forge.Repos.FindByGoPath(repo.GoPath())
- if check == nil {
- log.Info("boo, you didn't git clone", repo.GoPath())
- os.Exit(-1)
- }
- match, err := me.forge.Repos.GoDepsChanged(check)
- if err != nil {
- log.Info("dependancy checks failed", check.GetGoPath(), err)
- os.Exit(-1)
- }
- if match {
- log.Printf("dependancy checks indicate a new release is needed for %s\n", check.GetGoPath())
- } else {
- log.Printf("dependancies have not changed for %s\n", check.GetGoPath())
- }
- }
log.Info("findNext()", repo.GoPath(), "is not a primative repo")
if checkValidGoSum(repo) {
setCurrentRepo(repo, "should be good to release", "pretty sure")