remove proto gopath (#896)

pull/897/head
Tony Chen 4 years ago committed by GitHub
parent eeab979d5f
commit 2e4bb11f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/kratos/internal/proto/client/client.go

@ -77,9 +77,7 @@ func generate(proto string, args []string) error {
path, name := filepath.Split(proto)
input := []string{
"--proto_path=.",
"--proto_path=" + filepath.Join(base.KratosMod(), "api"),
"--proto_path=" + filepath.Join(base.KratosMod(), "third_party"),
"--proto_path=" + filepath.Join(os.Getenv("GOPATH"), "src"),
"--go_out=paths=source_relative:.",
"--go-grpc_out=paths=source_relative:.",
"--go-http_out=paths=source_relative:.",

Loading…
Cancel
Save