databuild/scripts/generate_proto_for_ide.sh
Stuart Axelbrooke 77d74c09fb
Some checks are pending
/ setup (push) Waiting to run
Generate stuff to make intellij happy
2025-07-19 16:02:57 -07:00

17 lines
421 B
Bash
Executable file

#!/bin/bash
# Generate protobuf files for IDE support
set -e
echo "Generating protobuf files for IDE..."
# Build all proto targets to generate the .rs files
bazel build //databuild:generate_databuild_rust
# Create a directory for IDE proto files
mkdir -p generated_proto
# Copy generated files to a stable location
cp -f bazel-bin/databuild/databuild.rs databuild/
echo "Generated proto files copied to databuild/"