diff --git a/package.go b/package.go index 2472fc9..a419783 100644 --- a/package.go +++ b/package.go @@ -51,7 +51,7 @@ func listPackages(pkgs map[string]Package, goos string, ps ...string) error { "go", append(flags, packages...)..., ) - listPackages.Env = []string{"GOOS=" + goos, "GOPATH=" + os.Getenv("GOPATH"), "HOME=" + os.Getenv("HOME")} + listPackages.Env = []string{"GOOS=" + goos, "GOPATH=" + os.Getenv("GOPATH"), "HOME=" + os.Getenv("HOME"), "PATH=" + os.Getenv("PATH")} listPackages.Stderr = os.Stderr