Merge pull request #179 from Irioth/patch-1

#162 use default GOPATH
This commit is contained in:
Vasily Romanov
2018-07-16 18:27:02 +03:00
committed by GitHub
+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 {