summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--findNext.go25
-rw-r--r--prepareRelease.go1
2 files changed, 25 insertions, 1 deletions
diff --git a/findNext.go b/findNext.go
index a586c96..67e1759 100644
--- a/findNext.go
+++ b/findNext.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
+ "path/filepath"
"go.wit.com/log"
@@ -71,6 +72,16 @@ func findNext() bool {
}
log.Info("CHECKING START:", check.GetGoPath())
+ godepsNew, err := check.GoSumFromRepo()
+ if err != nil {
+ log.Info("CHECKING go deps from repo failed", err)
+ continue
+
+ }
+ if err := testGoDepsCheckOk(godepsNew, argv.Verbose); err != nil {
+ log.Info("CHECKING current repo deps failed", err)
+ continue
+ }
/*
findCounter += 1
if !check.ParseGoSum() {
@@ -186,3 +197,17 @@ func setCurrentRepo(check *gitpb.Repo, s string, note string) bool {
return true
}
+
+func testGoDepsCheckOk(godeps *gitpb.GoDeps, verbose bool) error {
+ all := godeps.SortByGoPath()
+ for all.Scan() {
+ depRepo := all.Next()
+ fullpath := filepath.Join(me.forge.GetGoSrc(), depRepo.GetGoPath())
+ found := me.found.FindByFullPath(fullpath)
+ if found == nil {
+ continue
+ }
+ return fmt.Errorf("dep is being upgraded %s", depRepo.GetGoPath())
+ }
+ return nil
+}
diff --git a/prepareRelease.go b/prepareRelease.go
index f86cfc0..c847bce 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -127,7 +127,6 @@ func rePrepareRelease() {
forceReleaseVersion(check)
me.found.AppendByGoPath(check)
log.Info("checkPublishedGodeps failed with err", check.GetGoPath(), err)
- okExit("")
continue
} else {
// log.Info("checkPublishedGodeps is ok", check.GetGoPath())