re-parse go.sum again after Trim()

This commit is contained in:
Jeff Carr 2024-12-12 02:06:55 -06:00
parent b7e36449de
commit 6d25d1b1cb
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,12 @@ func (f *Forge) CleanGoDepsCheckOk(check *gitpb.Repo) error {
return err return err
} }
// parse the go.sum file
if ok, err := check.ParseGoSum(); !ok {
log.Info("CleanGoDepsCheckOk() error", err)
return err
}
var err error = nil var err error = nil
log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen()) log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen())
all := check.GoDeps.SortByGoPath() all := check.GoDeps.SortByGoPath()

View File

@ -7,6 +7,8 @@ import (
"go.wit.com/log" "go.wit.com/log"
) )
// DOES NOT MODIFY ANYTHING
//
// this is a final check to make sure, before pushing // this is a final check to make sure, before pushing
// a golang repo, that the go.sum file has the correct // a golang repo, that the go.sum file has the correct
// and current version of every package // and current version of every package