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
|
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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue