#162 use default GOPATH

annoying bug
This commit is contained in:
Irioth
2018-07-16 17:15:30 +03:00
committed by GitHub
parent 3fdea8d058
commit 93f3cb8741
+1 -1
View File
@@ -27,7 +27,7 @@ func getPkgPath(fname string, isDir bool) (string, error) {
}
}
for _, p := range strings.Split(os.Getenv("GOPATH"), ":") {
for _, p := range strings.Split(gopath, ":") {
prefix := path.Join(p, "src") + "/"
if rel := strings.TrimPrefix(fname, prefix); rel != fname {
if !isDir {