зеркало из https://github.com/golang/dep.git
Merge pull request #1025 from jmank88/source_require
gps: source: requirements tweak
This commit is contained in:
Коммит
20dfa5e196
|
@ -361,7 +361,7 @@ func (sg *sourceGateway) listPackages(ctx context.Context, pr ProjectRoot, v Ver
|
|||
return pkgtree.PackageTree{}, err
|
||||
}
|
||||
|
||||
err = sg.suprvsr.do(ctx, label, ctGetManifestAndLock, func(ctx context.Context) error {
|
||||
err = sg.suprvsr.do(ctx, label, ctListPackages, func(ctx context.Context) error {
|
||||
ptree, err = sg.src.listPackages(ctx, pr, r)
|
||||
return err
|
||||
})
|
||||
|
@ -402,7 +402,7 @@ func (sg *sourceGateway) convertToRevision(ctx context.Context, v Version) (Revi
|
|||
|
||||
// The version list is out of date; it's possible this version might
|
||||
// show up after loading it.
|
||||
_, err := sg.require(ctx, sourceIsSetUp|sourceHasLatestVersionList|sourceHasLatestLocally)
|
||||
_, err := sg.require(ctx, sourceIsSetUp|sourceHasLatestVersionList)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче