mirror of
https://github.com/beego/bee.git
synced 2025-02-21 17:57:14 +00:00
Fix compare symlink to path
Now will compare path with path, symlink with symlink.
This commit is contained in:
parent
c6141fb671
commit
866fea3504
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user