diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 22:36:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 22:36:06 -0600 |
| commit | 4a64e3a7c292c4976eaa80891ccaff09a62e8dc2 (patch) | |
| tree | 0881c0ca7b5f5f377ba85fcde6c6794cbd76a10c /goDep.parseGoSum.go | |
| parent | 97a2f05cf2e0c09e8576db089950483a48afea71 (diff) | |
fix logicv0.0.23
Diffstat (limited to 'goDep.parseGoSum.go')
| -rw-r--r-- | goDep.parseGoSum.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/goDep.parseGoSum.go b/goDep.parseGoSum.go index 69e4826..5bf3f29 100644 --- a/goDep.parseGoSum.go +++ b/goDep.parseGoSum.go @@ -17,13 +17,20 @@ import ( func (repo *Repo) ParseGoSum() (bool, error) { // empty out what was there before repo.GoDeps = nil + + // check of the repo is a primative + // that means, there is not a go.sum file + // because the package is completely self contained! + if ok, _ := repo.IsPrimitive(); ok { + log.Info("This repo is primative!") + return true, nil + } tmp := filepath.Join(repo.FullPath, "go.sum") gosum, err := os.Open(tmp) + defer gosum.Close() if err != nil { - log.Warn("missing go.sum", repo.FullPath) return false, err } - defer gosum.Close() scanner := bufio.NewScanner(gosum) log.Info("gosum:", tmp) |
