Fix scripts/make.go for darwin

Correctly locates the installed executable path for darwin
This commit is contained in:
Kevin Cantwell 2018-09-26 06:26:28 +12:00 committed by Derek Parker
parent 50419b61da
commit 4e9ba9a7b5

@ -180,7 +180,7 @@ func installedExecutablePath() string {
return filepath.Join(gobin, "dlv")
}
gopath := strings.Split(getoutput("go", "env", "GOPATH"), ":")
return filepath.Join(gopath[0], "dlv")
return filepath.Join(strings.TrimSpace(gopath[0]), "bin", "dlv")
}
func buildFlags() []string {