From 7190028798229ba7a2bbfe549ccde2749e87edd8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Nov 2025 08:59:12 -0600 Subject: working on a newer repo.proto --- goDep.parseGoSum.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'goDep.parseGoSum.go') 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 } -- cgit v1.2.3