无法找到“ datagen”文件夹和BUILD文件,即使它们存在

时间:2019-04-19 21:34:18

标签: bazel

我正在尝试从https://github.com/GoogleCloudPlatform/healthcare/tree/master/fhir/immunizations_demo运行一个bazel项目。

您能帮我提供一个需要执行以下命令的文件夹名称吗?看起来datagen和BUILD文件都存在,尽管bazel仍然抱怨找不到它

bazel run //datagen:data_gen -- --num=1 --output_path=demo_data.ndjson

我尝试在“ healthcare / fhir / immunizations_demo” 文件夹中运行它,但失败并显示以下错误

INFO: Invocation ID: 26092ad2-2ae0-49c9-ac2c-4988bf053007
ERROR: Skipping '//datagen:data_gen': no such package 'datagen': BUILD file not found on package path
WARNING: Target pattern parsing failed.
ERROR: no such package 'datagen': BUILD file not found on package path
INFO: Elapsed time: 0.070s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

谢谢

1 个答案:

答案 0 :(得分:1)

bazel run //fhir/immunizations_demo/datagen:data_gen -- --num=1 --output_path=demo_data.ndjson

//是指WORKSPACE文件所在的目录,因此完整的目标标签是//fhir/immunizations_demo/datagen:data_gen