examples
examples copied to clipboard
Deprecated ctx.outputs.executable used in rules/test_rule
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.