Fix to issue #270

This commit is contained in:
CodyGuo 2016-09-04 13:53:45 +08:00
parent f453885864
commit f6a219fb3a
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ func checkEnv(appname string) (apppath, packpath string, err error) {
for _, gpath := range gps {
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
}
}