summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go31
1 files changed, 17 insertions, 14 deletions
diff --git a/findNext.go b/findNext.go
index bc2ac7b..16c213f 100644
--- a/findNext.go
+++ b/findNext.go
@@ -113,33 +113,36 @@ func findNext() bool {
all := me.found.SortByFullPath()
for all.Scan() {
check := all.Next()
- if err := checkDeps(check); err != nil {
- log.Info("\t", check.GetGoPath(), err)
+ if check.GetMasterBranchName() != check.GetCurrentBranchName() {
+ log.Info("YOU MUST BE ON THE MASTER BRANCH", check.GetGoPath())
continue
- } else {
- log.Info("Might be ok?", check.GetGoPath())
}
- if check.GetMasterBranchName() != check.GetCurrentBranchName() {
- log.Info("YOU MUST BE ON THE MASTER BRANCHES")
- os.Exit(-1)
+ if check.IsDirty() {
+ log.Info("CAN NOT RELEASE DIRTY REPO", check.GetGoPath())
+ continue
}
+ log.Info("CHECKING:", check.GetGoPath())
_, err := check.RunVerboseOnError([]string{"go-mod-clean", "--strict"})
if err != nil {
- os.Exit(-1)
+ log.Info("FAILED:", check.GetGoPath())
+ continue
}
-
- if check.IsDirty() {
- log.Info("findNext() skipping dirty")
+ if err := checkDeps(check); err != nil {
+ log.Info("\t", check.GetGoPath(), err)
continue
+ } else {
+ log.Info("Might be ok?", check.GetGoPath())
}
+
findCounter += 1
if !check.ParseGoSum() {
- log.Info("ParseGoSum() failed")
- log.Info("ParseGoSum() failed")
- log.Info("ParseGoSum() failed")
+ log.Info("ParseGoSum() failed", check.GetGoPath())
+ log.Info("ParseGoSum() failed", check.GetGoPath())
+ log.Info("ParseGoSum() failed", check.GetGoPath())
continue
}
if me.forge.FinalGoDepsCheckOk(check, false) {
+ log.Info("GOOD TO GO ON", check.GetGoPath())
setCurrentRepo(check, "should be good to release", "pretty sure")
return true
} else {