0

我有一个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)到Bazelcmdfoo_action_post抱怨中时,它不是先决条件。

无论我是否添加它toolsdata它都不会被检测为先决条件。如何声明正确的依赖关系?

4

1 回答 1

0

您必须使用$(output foo_action_pre_data)而不是$(location foo_action_pre_data).

请参阅extra_action.cmd

于 2017-06-13T14:28:25.433 回答