Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Prefetch direct dependencies during init #1144

@carolynvs

Description

@carolynvs

The initial caching of the repositories can be slow, and doesn't print any output because it's happening as a side-effect of the other init logic. We used to explicitly prefetch the repositories and log a message, but that was lost at some point over the past months.

https://github.com/golang/dep/pull/194/files#diff-b14a2eb16f1efbc6aa9f1ffdad724265R241

Let's start doing this again during init (most likely in getDirectDependencies), and cap the concurrency at 4.

Original comment that inspired this issue: #1129 (comment).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions