1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00
This commit is contained in:
eyalpost 2017-04-28 18:45:26 +03:00
parent a117a48d7b
commit 65aec741fb

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
}
}
}