summaryrefslogtreecommitdiff
path: root/goDep.parseGoSum.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-11-02 08:59:12 -0600
committerJeff Carr <[email protected]>2025-11-02 08:59:12 -0600
commit7190028798229ba7a2bbfe549ccde2749e87edd8 (patch)
treedb0587730a583cfd14d236e57a098363005ce2ec /goDep.parseGoSum.go
parentfab6dbd6041a6ee346fba0e8486b643eaf59667c (diff)
working on a newer repo.protodevel
Diffstat (limited to 'goDep.parseGoSum.go')
-rw-r--r--goDep.parseGoSum.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/goDep.parseGoSum.go b/goDep.parseGoSum.go
index c8a219f..f695c5a 100644
--- a/goDep.parseGoSum.go
+++ b/goDep.parseGoSum.go
@@ -18,7 +18,7 @@ import (
// this function isn't supposed to change anything, just parse the existing files
func (repo *Repo) ParseGoSum() bool {
// empty out what was there before
- repo.GoDeps = nil
+ repo.GoInfo.GoDeps = nil
// check of the repo is a primitive
// that means, there is not a go.sum file
@@ -55,10 +55,10 @@ func (repo *Repo) ParseGoSum() bool {
GoPath: godep,
Version: version,
}
- if repo.GoDeps == nil {
- repo.GoDeps = new(GoDeps)
+ if repo.GoInfo.GoDeps == nil {
+ repo.GoInfo.GoDeps = new(GoDeps)
}
- repo.GoDeps.AppendByGoPath(&new1)
+ repo.GoInfo.GoDeps.AppendByGoPath(&new1)
} else {
log.Info("gitpb.ParseGoSum() go.sum parse error invalid:", line)
return false
@@ -66,7 +66,7 @@ func (repo *Repo) ParseGoSum() bool {
}
if err := scanner.Err(); err != nil {
- repo.GoDeps = nil
+ repo.GoInfo.GoDeps = nil
log.Info("gitpb.ParseGoSum()", err)
return false
}