This commit is contained in:
eyalpost 2017-04-28 18:45:26 +03:00
parent a117a48d7b
commit 65aec741fb
1 changed files with 5 additions and 5 deletions

View File

@ -362,11 +362,11 @@ func analyseControllerPkg(vendorPath, localName, pkgpath string) {
pkgRealpath = wg
} else {
wgopath := gopaths
for _, wg := range wgopath {
wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src", pkgpath))
if utils.FileExists(wg) {
pkgRealpath = wg
break
for _, wg := range wgopath {
wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src", pkgpath))
if utils.FileExists(wg) {
pkgRealpath = wg
break
}
}
}