From 18f9c09d10f63567ef28fa2b21dbc5d78c4b5a41 Mon Sep 17 00:00:00 2001 From: shenjun Date: Fri, 25 May 2018 14:43:02 +0800 Subject: [PATCH] fixed the indirect dependencies issue --- repo/installer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repo/installer.go b/repo/installer.go index 9be777c0..00eaa370 100644 --- a/repo/installer.go +++ b/repo/installer.go @@ -723,6 +723,10 @@ func (d *VersionHandler) Process(pkg string) (e error) { if d.Imported[root] == false { d.Imported[root] = true p := d.pkgPath(root) + if _, err := os.Stat(p); os.IsNotExist(err) { + dep := cfg.Dependency{Name: root} + VcsGet(&dep) + } f, deps, err := importer.Import(p) if f && err == nil { for _, dep := range deps {