ctx.resolve_tools

46 views
Skip to first unread message

Fabian Meumertzheim

unread,
May 19, 2023, 8:40:35 AM5/19/23
to bazel-discuss
Motivated by a Slack thread (https://bazelbuild.slack.com/archives/CA31HN1T3/p1684317657372349), I am wondering whether there is any functional difference between:

tool_inputs, tool_manifests = ctx.resolve_tools(tool_targets)
ctx.actions.run(
    inputs = ... + tool_inputs,
    input_manifests = tool_manifests,
    ...
)

and

ctx.actions.run(
    inputs = ...,
    tools = [t[DefaultInfo].files_to_run or t[DefaultInfo].files for t in tool_targets],
)

That is, does ctx.resolve_tools do more than looking up the FilesToRunProviders and collecting their runfiles?

Fabian
Reply all
Reply to author
Forward
0 new messages