From 11c146ca4050428f305c032e79ea9294b0ca959a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Oct 2025 19:16:40 -0500 Subject: needed for publishing --- finalGoSumCheck.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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") -- cgit v1.2.3