summaryrefslogtreecommitdiff
path: root/releaseBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 16:03:36 -0600
committerJeff Carr <[email protected]>2024-12-01 16:03:36 -0600
commit8209a5645a1a487d6a57de41e5a1b5604c2114de (patch)
tree700af124a6a5806f2f87de61e22a7d7ac4ad435c /releaseBox.go
parenta61feade1e6b417c871ec6bb97921d70606128af (diff)
try to detect binaries
Diffstat (limited to 'releaseBox.go')
-rw-r--r--releaseBox.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/releaseBox.go b/releaseBox.go
index e4de30c..07d0fa9 100644
--- a/releaseBox.go
+++ b/releaseBox.go
@@ -317,6 +317,24 @@ 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")