Merge pull request #89 from tossp/go14

go1.4源码目录变更
This commit is contained in:
astaxie 2014-12-15 17:49:26 +08:00
commit f00aeaed36
1 changed files with 7 additions and 0 deletions

View File

@ -333,6 +333,13 @@ func isSystemPackage(pkgpath string) bool {
if utils.FileExists(wg) {
return true
}
//TODO(zh):support go1.4
wg, _ = filepath.EvalSymlinks(filepath.Join(goroot, "src", pkgpath))
if utils.FileExists(wg) {
return true
}
return false
}