Evaluate symlinks before comparing path.

This commit is contained in:
Philip Nelson 2013-08-11 21:38:57 -07:00
parent f321e15db8
commit 61ed8f285b
1 changed files with 1 additions and 1 deletions

2
new.go
View File

@ -56,7 +56,7 @@ func createApp(cmd *Command, args []string) {
wgopath := path.SplitList(gopath)
for _, wg := range wgopath {
wg = path.Join(wg, "src")
wg, _ = path.EvalSymlinks(path.Join(wg, "src"))
if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
haspath = true