diff options
| author | Jeff Carr <[email protected]> | 2025-10-30 19:16:40 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-30 19:16:40 -0500 | 
| commit | 11c146ca4050428f305c032e79ea9294b0ca959a (patch) | |
| tree | 8b6592eaf153d379c0e11f61c0b8781ed00a818d | |
| parent | 7d0cd69dcfc99209ebb74e3a3427e7f1042322e2 (diff) | |
| -rw-r--r-- | finalGoSumCheck.go | 17 | 
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")  | 
