summaryrefslogtreecommitdiff
path: root/magefile.go
diff options
context:
space:
mode:
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/magefile.go b/magefile.go
index 27cab5e3..4ce8e00f 100644
--- a/magefile.go
+++ b/magefile.go
@@ -65,13 +65,16 @@ func Authzd() error {
// Generate gRPC from protocal buffers
func Protos() error {
- outDir := "lib/authx/rpc"
for _, file := range x.Must(filepath.Glob("./protos/*.proto")) {
if err := sh.RunV(
"protoc",
"--proto_path=./protos",
- "--ruby_out="+outDir,
- "--twirp_ruby_out="+outDir,
+ "--go_out=pkg/rpc",
+ "--go_opt=paths=source_relative",
+ "--go-grpc_out=pkg/rpc",
+ "--go-grpc_opt=paths=source_relative",
+ "--ruby_out=lib/authx/rpc",
+ "--twirp_ruby_out=lib/authx/rpc",
file,
); err != nil {
return err