Merge pull request #524 from hizzd/master

修复windows下无法识别到已安装的tool且每次使用tool都会重新安装
pull/532/head
Terry.Mao 5 years ago committed by GitHub
commit 00aea6ffd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tool/kratos/tool.go

@ -180,6 +180,9 @@ func (t Tool) toolPath() string {
name = t.Name
}
gobin := Getenv("GOBIN")
if runtime.GOOS == "windows" {
name += ".exe"
}
if gobin != "" {
return filepath.Join(gobin, name)
}

Loading…
Cancel
Save