fx build fix
Some checks failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/fx/1 Pipeline failed
ci/woodpecker/push/fx/2 Pipeline failed
ci/woodpecker/push/nats Pipeline was successful

This commit is contained in:
Stephan D
2025-11-08 03:21:57 +01:00
parent 2f4938f304
commit 7b3ae24504

View File

@@ -7,6 +7,7 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
API_DIR="${REPO_ROOT}/api"
PROTO_DIR="./proto"
PROTOC_BIN="${PROTOC:-protoc}"
PROTOC_INCLUDE="${PROTOC_INCLUDE:-/usr/include}"
if ! command -v "${PROTOC_BIN}" >/dev/null 2>&1; then
echo "[proto] protoc binary not found" >&2
@@ -30,6 +31,7 @@ generate_go() {
shift
mkdir -p "${out_dir}"
"${PROTOC_BIN}" \
-I="${PROTOC_INCLUDE}" \
-I="${PROTO_DIR}" \
--go_out="${out_dir}" \
--go_opt=paths=source_relative \
@@ -41,6 +43,7 @@ generate_go_with_grpc() {
shift
mkdir -p "${out_dir}"
"${PROTOC_BIN}" \
-I="${PROTOC_INCLUDE}" \
-I="${PROTO_DIR}" \
--go_out="${out_dir}" \
--go_opt=paths=source_relative \