From 2e4bb11f0031cf9f33df77615119562bfb29f138 Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Thu, 6 May 2021 16:45:49 +0800 Subject: [PATCH] remove proto gopath (#896) --- cmd/kratos/internal/proto/client/client.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/kratos/internal/proto/client/client.go b/cmd/kratos/internal/proto/client/client.go index 12011cf01..fa2dfc8c7 100644 --- a/cmd/kratos/internal/proto/client/client.go +++ b/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:.",