summaryrefslogtreecommitdiff
path: root/magefile.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-06 11:24:42 -0700
committermo khan <mo@mokhan.ca>2025-03-06 11:24:42 -0700
commit27e5b886ad9e9e4c0d831162dbae9d9025fb2903 (patch)
tree32c00563a2d93d82dbeefece715a2cbaeba6d41b /magefile.go
parent0fb8fe928b9ca6f907d532789038f8b8fdcca42c (diff)
refactor: use protobuf3 and define twirp service
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/magefile.go b/magefile.go
index 4a1ce011..23fc4af9 100644
--- a/magefile.go
+++ b/magefile.go
@@ -80,7 +80,17 @@ func Browser() error {
func Protos() error {
files := x.Must(filepath.Glob("./protos/*.proto"))
for _, file := range files {
- if err := sh.RunV(
+ var err error
+ if err = sh.RunV(
+ "protoc",
+ "--proto_path=./protos",
+ "--ruby_out=lib",
+ "--twirp_ruby_out=lib",
+ file,
+ ); err != nil {
+ return err
+ }
+ if err = sh.RunV(
"grpc_tools_ruby_protoc",
"--proto_path=./protos",
"--ruby_out=lib",