Fix to issue #270

This commit is contained in:
CodyGuo 2016-09-04 20:45:11 +08:00
parent f6a219fb3a
commit ed67ef47e6
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
gsrcpath := path.Join(gpath, "src")
if strings.HasPrefix(currpath, gsrcpath) {
packpath = strings.Replace(currpath[len(gsrcpath)+1:], string(path.Separator), "/", -1)
return currpath, currpath[len(gsrcpath)+1:], nil
return currpath, packpath, nil
}
}