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