Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated ctx.outputs.executable used in rules/test_rule #151

Open
errangutan opened this issue Apr 9, 2020 · 0 comments
Open

Deprecated ctx.outputs.executable used in rules/test_rule #151

errangutan opened this issue Apr 9, 2020 · 0 comments

Comments

@errangutan
Copy link

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 errangutan changed the title Depricated ctx.outputs.executable used in rules/test_rule Deprecated ctx.outputs.executable used in rules/test_rule Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant