summaryrefslogtreecommitdiff
path: root/globalDisplayOptions.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 16:40:22 -0600
committerJeff Carr <[email protected]>2024-12-01 16:40:22 -0600
commitf5b8202fda6ab1bc5529b83873a931ce32f6afb2 (patch)
tree4003683c0159ec58109a4de3ea395f15d44d1615 /globalDisplayOptions.go
parent07decc492eea8b611fc28fcb052e7a2d783e8513 (diff)
try it all
Diffstat (limited to 'globalDisplayOptions.go')
-rw-r--r--globalDisplayOptions.go39
1 files changed, 19 insertions, 20 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index f07d0c1..3521e26 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -36,28 +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())
- }
+ // check if the package dependancies changed, if so, re-publish
+ 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())
}
+ // see if there is a new version
master := repo.Status.GetMasterVersion()
lastTag := repo.Status.LastTag()
if master == lastTag {