diff --git a/g_appcode.go b/g_appcode.go index 95c3fae..03f53f0 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -992,8 +992,8 @@ func getPackagePath(curpath string) (packpath string) { //Maybe is a symlink wg, _ = filepath.EvalSymlinks(path.Join(wg, "src")) - - if filepath.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { + cur,_ := filepath.EvalSymlinks(curpath) + if filepath.HasPrefix(strings.ToLower(cur), strings.ToLower(wg)) { haspath = true appsrcpath = wg break