Merge pull request #169 from godsoul/master

获取GOBIN不在GOPATH下的情况
pull/180/head
Tony 6 years ago committed by GitHub
commit 5de5fbfa79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tool/kratos/tool.go

@ -174,6 +174,9 @@ func (t Tool) updated() bool {
}
func (t Tool) toolPath() string {
if gobin := os.Getenv("GOBIN"); len(gobin) > 0 {
return filepath.Join(gobin, t.Alias)
}
return filepath.Join(gopath(), "bin", t.Alias)
}

Loading…
Cancel
Save