[object Object]

← back to Exo

chore: Skip protobuf generation if no .proto files exist

784f0ec423bb4b4297f3ada4f3b370dcde0a9aed · 2025-06-29 21:52:46 +0100 · Alex Cheema

Files touched

Diff

commit 784f0ec423bb4b4297f3ada4f3b370dcde0a9aed
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Sun Jun 29 21:52:46 2025 +0100

    chore: Skip protobuf generation if no .proto files exist
---
 justfile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/justfile b/justfile
index a2fe657a..f86e0734 100644
--- a/justfile
+++ b/justfile
@@ -1,6 +1,11 @@
 regenerate-protobufs:
-    protoc --proto_path=shared/protobufs/schemas --python_out=shared/protobufs/types --pyi_out=shared/protobufs/types shared/protobufs/schemas/*.proto
-    uv run ruff format ./shared/protobufs/types
+    #!/usr/bin/env bash
+    if [ -f shared/protobufs/schemas/*.proto ]; then
+        protoc --proto_path=shared/protobufs/schemas --python_out=shared/protobufs/types --pyi_out=shared/protobufs/types shared/protobufs/schemas/*.proto
+        uv run ruff format ./shared/protobufs/types
+    else
+        echo "No .proto files found in shared/protobufs/schemas/"
+    fi
 
 fmt:
     uv run ruff format master worker shared engines/*

← 38dcf698 chore: Fix typecheck job in GitHub workflow  ·  back to Exo  ·  refactor: Add types for model downloading 4b3e60f8 →