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:27:14 +01:00
parent 7b3ae24504
commit 677fb51a67

View File

@@ -8,6 +8,18 @@ API_DIR="${REPO_ROOT}/api"
PROTO_DIR="./proto"
PROTOC_BIN="${PROTOC:-protoc}"
PROTOC_INCLUDE="${PROTOC_INCLUDE:-/usr/include}"
if [ ! -f "${PROTOC_INCLUDE}/google/protobuf/timestamp.proto" ]; then
for candidate in /usr/include /usr/local/include /usr/lib/include /usr/local/share/include; do
if [ -f "${candidate}/google/protobuf/timestamp.proto" ]; then
PROTOC_INCLUDE="${candidate}"
break
fi
done
fi
if [ ! -f "${PROTOC_INCLUDE}/google/protobuf/timestamp.proto" ]; then
echo "[proto] failed to locate google/protobuf well-known types; set PROTOC_INCLUDE" >&2
exit 1
fi
if ! command -v "${PROTOC_BIN}" >/dev/null 2>&1; then
echo "[proto] protoc binary not found" >&2