summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 13:25:00 -0500
committerJeff Carr <[email protected]>2025-10-22 13:25:00 -0500
commiteef1fc09132415c28796c36eccf03de3654aedfd (patch)
tree21c09a5c86bcf8603110beecd2cbb664193686dd /findNext.go
parent5124649ffadc013c90d7aa6974c43c72edbee8c8 (diff)
trying to figure this out
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go25
1 files changed, 2 insertions, 23 deletions
diff --git a/findNext.go b/findNext.go
index 5434b7e..775ec4f 100644
--- a/findNext.go
+++ b/findNext.go
@@ -1,14 +1,10 @@
package main
import (
- "errors"
- "fmt"
"os"
- "path/filepath"
"go.wit.com/log"
- "go.wit.com/lib/ENV"
"go.wit.com/lib/protobuf/gitpb"
)
@@ -61,13 +57,13 @@ func findNext() bool {
}
// if godepsNew == nil, then this go package is a primitive and there is no go.sum file
} else {
- if err := testGoDepsCheckOk(godepsNew, argv.Verbose); err != nil {
+ if err := testGoDepsCheckOk(godepsNew); err != nil {
log.Info("FIND NEXT: CHECKING current repo deps failed", err)
continue
}
}
- if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err != nil {
+ if err := finalGoDepsCheckOk(check); err != nil {
// if err := me.forge.FinalGoDepsCheckOk(check, false); err != nil {
log.Info("FIND NEXT: FinalGoDepsCheckOk() repo=", check.GetNamespace(), "err:", err)
log.Info("FIND NEXT: CHECKING END:", check.GetNamespace())
@@ -112,20 +108,3 @@ func setCurrentRepo(check *gitpb.Repo, s string, note string) bool {
// me.release.openrepo.Enable()
return true
}
-
-func testGoDepsCheckOk(godeps *gitpb.GoDeps, verbose bool) error {
- if godeps == nil {
- return errors.New("testGoDepsCheckOk() godeps == nil")
- }
- all := godeps.SortByGoPath()
- for all.Scan() {
- depRepo := all.Next()
- fullpath := filepath.Join(ENV.Get("gopath"), depRepo.GoPath)
- found := me.found.FindByFullPath(fullpath)
- if found == nil {
- continue
- }
- return fmt.Errorf("dep is being upgraded %s", depRepo.GoPath)
- }
- return nil
-}