diff options
| -rw-r--r-- | clone.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -118,19 +118,19 @@ func recursiveClone(check *gitpb.Repo) error { check.ReloadForce() - if check.GoDeps == nil { + if (check.GoInfo == nil) || (check.GoInfo.GoDeps == nil) { log.Info("repo godeps == nil", check.Namespace) return errors.New("no go deps?") } // probably this should never be 0 because GoPrimitive should have been true otherwise - if check.GoDeps.Len() == 0 { + if check.GoInfo.GoDeps.Len() == 0 { log.Info("repo len(godeps) == 0", check.Namespace) return errors.New("go.sum never parsed?") } - log.Info("deps for", check.Namespace, "len()", check.GoDeps.Len()) - deps := check.GoDeps.SortByGoPath() + log.Info("deps for", check.Namespace, "len()", check.GoInfo.GoDeps.Len()) + deps := check.GoInfo.GoDeps.SortByGoPath() for deps.Scan() { depRepo := deps.Next() log.Info("download:", depRepo.GetGoPath()) |
