diff options
Diffstat (limited to 'goDep.redoGoMod.go')
| -rw-r--r-- | goDep.redoGoMod.go | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/goDep.redoGoMod.go b/goDep.redoGoMod.go index f15ed40..91cad2f 100644 --- a/goDep.redoGoMod.go +++ b/goDep.redoGoMod.go @@ -92,28 +92,8 @@ func (repo *Repo) parseGoSum() (bool, error) { repo.GoDeps = new(GoDeps) } repo.GoDeps.AppendUniqueGoPath(&new1) - /* - found := repo.FindGoDepByPath(godep) - if found == nil { - currentversion, ok := deps[godep] - if ok { - // only use the first value found in the file? - // this shouldn't have been possible. this function should - // only be called from MakeRedomod() - // todo: make go things a seperate package so this function - // isn't exported? - if version != currentversion { - log.Warn("\tgo.sum ", godep, "had both", version, currentversion) - } - } else { - deps[godep] = version - log.Info("\t", godep, "=", version) - } - */ } else { - // I've never seen this happen yet - panic(errors.New("go.sum invalid: " + line)) - // return false, errors.New("go.sum invalid: " + line) + return false, errors.New("go.sum parse error invalid: " + line) } } @@ -190,28 +170,8 @@ func (repo *Repo) UpdatePublished() (bool, error) { repo.Published = new(GoDeps) } repo.Published.AppendUniqueGoPath(&new1) - /* - found := repo.FindGoDepByPath(godep) - if found == nil { - currentversion, ok := deps[godep] - if ok { - // only use the first value found in the file? - // this shouldn't have been possible. this function should - // only be called from MakeRedomod() - // todo: make go things a seperate package so this function - // isn't exported? - if version != currentversion { - log.Warn("\tgo.sum ", godep, "had both", version, currentversion) - } - } else { - deps[godep] = version - log.Info("\t", godep, "=", version) - } - */ } else { - // I've never seen this happen yet - panic(errors.New("go.sum invalid: " + line)) - // return false, errors.New("go.sum invalid: " + line) + return false, errors.New("go.sum parse error invalid: " + line) } } |
