mirror of
https://github.com/beego/bee.git
synced 2024-12-22 15:10:49 +00:00
bee fix the path.EvalSymlinks
This commit is contained in:
parent
7f0e4f024c
commit
a6f9c78aaa
@ -310,7 +310,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
|
||||
haspath := false
|
||||
wgopath := path.SplitList(gopath)
|
||||
for _, wg := range wgopath {
|
||||
wg = path.Join(wg, "src")
|
||||
wg, _ = path.EvalSymlinks(path.Join(wg, "src"))
|
||||
|
||||
if path.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
|
||||
haspath = true
|
||||
|
Loading…
Reference in New Issue
Block a user