From 615947a05a5fd291f4e43da11eeb50fcd3eaa597 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 26 Jan 2024 09:34:42 -0600 Subject: more improvements in automation Signed-off-by: Jeff Carr --- scan.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scan.go') diff --git a/scan.go b/scan.go index f60f73a..e8c613d 100644 --- a/scan.go +++ b/scan.go @@ -86,6 +86,16 @@ func (r *repo) setGoSumStatus(s string) { r.status.SetGoSumStatus(s) } +func (r *repo) checkSafeGoSumRemake() { + if ok, bad := r.status.CheckSafeGoSumRemake(); ok { + log.Info("checkSafeGoSumRemake() is safe to redo") + r.setGoSumStatus("SAFE") + } else { + log.Info("checkSafeGoSumRemake() is not safe. problems:", bad) + r.setGoSumStatus("BAD DEP") + } +} + func scanGoSum() { for _, repo := range me.allrepos { latestversion := repo.status.GetLastTagVersion() -- cgit v1.2.3