diff options
Diffstat (limited to 'magefile.go')
| -rw-r--r-- | magefile.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/magefile.go b/magefile.go index 23fc4af9..0e309bdd 100644 --- a/magefile.go +++ b/magefile.go @@ -57,8 +57,7 @@ func Api() error { } // Run the gRPC Server -func Rpc(ctx context.Context) error { - mg.CtxDeps(ctx, Protos) +func Rpc() error { env := map[string]string{ "PORT": "50051", "HOST": "localhost", @@ -79,13 +78,14 @@ func Browser() error { // Generate gRPC from protocal buffers func Protos() error { files := x.Must(filepath.Glob("./protos/*.proto")) + outDir := "lib/authx/rpc" for _, file := range files { var err error if err = sh.RunV( "protoc", "--proto_path=./protos", - "--ruby_out=lib", - "--twirp_ruby_out=lib", + "--ruby_out="+outDir, + "--twirp_ruby_out="+outDir, file, ); err != nil { return err @@ -93,8 +93,8 @@ func Protos() error { if err = sh.RunV( "grpc_tools_ruby_protoc", "--proto_path=./protos", - "--ruby_out=lib", - "--grpc_out=lib", + "--ruby_out="+outDir, + "--grpc_out="+outDir, file, ); err != nil { return err |
