diff options
Diffstat (limited to 'goDep.parseGoSum.go')
| -rw-r--r-- | goDep.parseGoSum.go | 9 |
1 files changed, 6 insertions, 3 deletions
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") |
