【发布时间】:2020-04-18 12:30:52
【问题描述】:
您好,我正在为我的项目使用bazel。
我在 Linux 中总是使用反斜杠 (\) 来指定长命令。
我尝试了同样的 bazel,但没有成功
bazel build //mypackage:query_count -- \
--input="/path/to/input.json" \
--output="/path/to/output/json"
当我删除反斜杠并将它们保持在一行时,构建成功
bazel build //mypackage:query_count -- --input="/path/to/input.json" --output="/path/to/output/json"
有谁知道我做错了什么,查看错误,看起来 bazel 将 --input="/path/to/input.json" 视为单独的目标?
【问题讨论】:
-
确保您的任何
"\"字符后面没有空格?祝你好运。
标签: linux build command-line-interface bazel