hot diggity. this might actually work.

This commit is contained in:
Jeff Carr 2025-02-08 19:46:39 -06:00
parent 8cc487393f
commit 8d33a63e7e
2 changed files with 25 additions and 1 deletions

View File

@ -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
}

View File

@ -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())