1
0
mirror of https://github.com/beego/bee.git synced 2024-06-16 08:43:33 +00:00
This commit is contained in:
astaxie 2017-04-19 23:51:12 +08:00
parent 8f8ece57b0
commit db57fa50a0

View File

@ -965,8 +965,7 @@ func getPackagePath(curpath string) (packpath string) {
wgopath := filepath.SplitList(gopath)
for _, wg := range wgopath {
wg, _ = filepath.EvalSymlinks(path.Join(wg, "src"))
wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src"))
if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
haspath = true
appsrcpath = wg
@ -975,7 +974,7 @@ func getPackagePath(curpath string) (packpath string) {
}
if !haspath {
beeLogger.Log.Fatalf("Cannot generate application code outside of GOPATH '%s'", gopath)
beeLogger.Log.Fatalf("Cannot generate application code outside of GOPATH '%s' compare with CWD '%s'", gopath, curpath)
}
if curpath == appsrcpath {