summaryrefslogtreecommitdiff
path: root/finalGoSumCheck.go
diff options
context:
space:
mode:
Diffstat (limited to 'finalGoSumCheck.go')
-rw-r--r--finalGoSumCheck.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go
index 42be348..0646d39 100644
--- a/finalGoSumCheck.go
+++ b/finalGoSumCheck.go
@@ -117,6 +117,23 @@ func (f *Forge) CheckOverride(gopath string) bool {
return false
}
+// checks to see if the any of the go dependancies are packages
+// that need to be upgraded. If found, returns that conflict namespace
+func (f *Forge) CheckUpdatingGoDeps(godeps *gitpb.GoDeps, upgrading *gitpb.Repos) error {
+ if godeps == nil {
+ return errors.New("forge.CheckUpdatingGoDeps() godeps == nil")
+ }
+ all := godeps.SortByGoPath()
+ for all.Scan() {
+ depRepo := all.Next()
+ found := upgrading.FindByNamespace(depRepo.GetGoPath())
+ if found != nil {
+ return fmt.Errorf("waiting on %s", depRepo.GetGoPath())
+ }
+ }
+ return nil
+}
+
func (f *Forge) TestGoDepsCheckOk(godeps *gitpb.GoDeps) error {
if godeps == nil {
return errors.New("forge.TestGoDepsCheckOk() godeps == nil")