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:30:45 +01:00
parent 677fb51a67
commit b6c795a0c8

View File

@@ -9,7 +9,7 @@ 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
for candidate in /usr/include /usr/local/include /usr/lib/include /usr/local/share/include "$(dirname "$(command -v protoc)")/../include"; do
if [ -f "${candidate}/google/protobuf/timestamp.proto" ]; then
PROTOC_INCLUDE="${candidate}"
break