summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cleanGoSum.go6
-rw-r--r--finalGoSumCheck.go2
2 files changed, 8 insertions, 0 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go
index c310523..49f9787 100644
--- a/cleanGoSum.go
+++ b/cleanGoSum.go
@@ -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()
diff --git a/finalGoSumCheck.go b/finalGoSumCheck.go
index 22618eb..33e5a4d 100644
--- a/finalGoSumCheck.go
+++ b/finalGoSumCheck.go
@@ -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