提交 4e9ba9a7 编写于 作者: K Kevin Cantwell 提交者: Derek Parker

Fix scripts/make.go for darwin

Correctly locates the installed executable path for darwin
上级 50419b61
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册