From 6d25d1b1cb1a30dca271117774edeaeb95211f3d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 12 Dec 2024 02:06:55 -0600 Subject: [PATCH] re-parse go.sum again after Trim() --- cleanGoSum.go | 6 ++++++ finalGoSumCheck.go | 2 ++ 2 files changed, 8 insertions(+) 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