我有一个action_listener
:
action_listener(
name = "foo_listen",
mnemonics = [
"Foo", # Foo might usually take several minutes
],
extra_actions = [
"foo_action_pre", # Start some processing
"foo_action_post", # Finish parts of processing that needs action output
],
)
在foo_action_pre
中,我设置
out_templates=[
"foo_action_pre_data",
],
以便将信息传递给foo_action_post
.
现在,当我添加$(location foo_action_pre_data)
到Bazelcmd
的foo_action_post
抱怨中时,它不是先决条件。
无论我是否添加它tools
,data
它都不会被检测为先决条件。如何声明正确的依赖关系?