This commit is contained in:
astaxie 2017-04-19 23:51:12 +08:00
parent 8f8ece57b0
commit db57fa50a0
1 changed files with 2 additions and 3 deletions

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 {