diff --git a/x/shape/lookup_refs.go b/x/shape/lookup_refs.go index 14eb7a3b..7c732aad 100644 --- a/x/shape/lookup_refs.go +++ b/x/shape/lookup_refs.go @@ -300,7 +300,7 @@ func checkPkgExistsInPaths(pkgImportName string) (string, error) { } if gocache != "" { - gocache = filepath.Join(os.Getenv("GOPATH"), "pkg/mod") + gocache = filepath.Join(gocache, "pkg/mod") } }