re-parse go.sum again after Trim()
This commit is contained in:
parent
b7e36449de
commit
6d25d1b1cb
|
@ -61,6 +61,12 @@ func (f *Forge) CleanGoDepsCheckOk(check *gitpb.Repo) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// parse the go.sum file
|
||||
if ok, err := check.ParseGoSum(); !ok {
|
||||
log.Info("CleanGoDepsCheckOk() error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
var err error = nil
|
||||
log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen())
|
||||
all := check.GoDeps.SortByGoPath()
|
||||
|
|
|
@ -7,6 +7,8 @@ import (
|
|||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
// DOES NOT MODIFY ANYTHING
|
||||
//
|
||||
// this is a final check to make sure, before pushing
|
||||
// a golang repo, that the go.sum file has the correct
|
||||
// and current version of every package
|
||||
|
|
Loading…
Reference in New Issue