examples icon indicating copy to clipboard operation
examples copied to clipboard

Deprecated ctx.outputs.executable used in rules/test_rule

Open errangutan opened this issue 5 years ago • 0 comments

In line_length.bzl:

ctx.actions.write(
    output = ctx.outputs.executable,
    content = script,
)

Notice that ctx.outputs.executable default field is used, and the documentation states this is deprecated:

(Deprecated) If the rule is marked executable or test, there is a field named "executable", which is the default executable. It is recommended that instead of using this, you pass another file (either predeclared or not) to the executable arg of DefaultInfo.

errangutan avatar Apr 09 '20 20:04 errangutan