From 491c4455d8e3df13d9ef1ce52751cc35292ad337 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 20:47:35 -0600 Subject: use GetGoPrimitive() --- findNext.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'findNext.go') diff --git a/findNext.go b/findNext.go index 1e04bc9..bb11064 100644 --- a/findNext.go +++ b/findNext.go @@ -134,7 +134,11 @@ func fixGodeps(check *gitpb.Repo) bool { return false } // skip primative ones - if ok, _ := check.IsPrimitive(); ok { + if check.GetGoPrimitive() { + if check.Exists("go.sum") { + log.Info("fixGoDeps() has go.sum but says it is primitive", check.GetGoPath()) + return false + } log.Info("fixGoDeps() skipping primitive", check.GetGoPath()) return true } -- cgit v1.2.3