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

Fix repository for compatibility with --incompatible_no_support_tools_in_action_inputs #156

Merged
merged 2 commits into from
May 23, 2019

Conversation

laurentlb
Copy link
Contributor

No description provided.

@@ -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),
Copy link
Member

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?

Copy link
Contributor Author

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

@laurentlb laurentlb merged commit 9aa308e into bazelbuild:master May 23, 2019
@@ -48,7 +48,7 @@ def copy_cmd(ctx, src, dst):

def copy_bash(ctx, src, dst):
ctx.actions.run_shell(
inputs = [src],
tools = [src],
Copy link
Contributor

@laszlocsomor laszlocsomor May 24, 2019

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/116#24ea5562-55a0-41c4-b439-94a288884804

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants