1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 05:00: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 pkgRealpath = wg
} else { } else {
wgopath := gopaths wgopath := gopaths
for _, wg := range wgopath { for _, wg := range wgopath {
wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src", pkgpath)) wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src", pkgpath))
if utils.FileExists(wg) { if utils.FileExists(wg) {
pkgRealpath = wg pkgRealpath = wg
break break
} }
} }
} }