-
Notifications
You must be signed in to change notification settings - Fork 180
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
Fix repository for compatibility with --incompatible_no_support_tools_in_action_inputs #156
Conversation
…_in_action_inputs
rules/run_binary.bzl
Outdated
@@ -44,7 +44,8 @@ def _impl(ctx): | |||
} | |||
ctx.actions.run( | |||
outputs = ctx.outputs.outs, | |||
inputs = depset(direct = ctx.files.srcs, transitive = [tool_inputs]), | |||
inputs = depset(direct = ctx.files.srcs), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can inputs
just be ctx.files.srcs or does it have to be wrapped in a depset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the depset was indeed useless
@@ -48,7 +48,7 @@ def copy_cmd(ctx, src, dst): | |||
|
|||
def copy_bash(ctx, src, dst): | |||
ctx.actions.run_shell( | |||
inputs = [src], | |||
tools = [src], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
I believe we need target-config here, which I believe inputs
is but tools
isn't. Maybe I'm missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found tool(s) 'bazel-out/host/bin/tests/run_binary/printargs' in inputs. A tool is an input with executable=True set. All tools should be passed using the 'tools' argument instead of 'inputs' in order to make their runfiles available to the action. This safety check will not be performed once the action is modified to take a 'tools' argument. To temporarily disable this check, set --incompatible_no_support_tools_in_action_inputs=false.
No description provided.