fx build fix
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user