From 22d2ae5cd79791ca5d70e2f6670d20a8d5e36984 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 18 Dec 2024 18:51:51 -0600 Subject: is primitive fixes --- goDep.parseGoSum.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'goDep.parseGoSum.go') diff --git a/goDep.parseGoSum.go b/goDep.parseGoSum.go index e7bd1a9..b2b3d04 100644 --- a/goDep.parseGoSum.go +++ b/goDep.parseGoSum.go @@ -18,11 +18,14 @@ func (repo *Repo) ParseGoSum() (bool, error) { // empty out what was there before repo.GoDeps = nil - // check of the repo is a primative + // check of the repo is a primitive // that means, there is not a go.sum file // because the package is completely self contained! - if err := repo.SetPrimitive(); err == nil { - log.Info("This repo is primative!") + if err := repo.SetPrimitive(); err != nil { + return false, err + } + if repo.GetGoPrimitive() { + log.Info("This repo is primitive!") return true, nil } tmp := filepath.Join(repo.FullPath, "go.sum") -- cgit v1.2.3