summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-26 09:34:42 -0600
committerJeff Carr <[email protected]>2024-01-26 09:34:42 -0600
commit615947a05a5fd291f4e43da11eeb50fcd3eaa597 (patch)
treec73b463a750af718311dde66d99e562a8676641b /scan.go
parent1f757d26ff6feb54e50844ece059ff220ff18a49 (diff)
more improvements in automation
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go10
1 files changed, 10 insertions, 0 deletions
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()