-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
incompatible_no_support_tools_in_action_inputs: Enforce action tools are passed using 'tools' and not 'inputs'. #5826
Comments
@c-parsons when do you intend to flip the flag? |
Still blocked by Tensorflow, rules_k8s, Cloud Robotics Core, Bazel Watcher, Baze;l Remote Cache. All of them have been pinged. |
https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/67 @c-parsons Can you see how to fix Bazel? (looks like we need to update something in third-party) I'll ping the other projects. |
Looks like the latest protobuf release is still broken with this flag
Is there a fix for that? |
This is another fix for `--incompatible_no_support_tools_in_action_inputs` bazelbuild/bazel#5826 TensorFlow is broken due to this: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/1014#f7a58799-a361-4087-82fb-f0c54ed2be49 ``` Traceback (most recent call last): File "/var/lib/buildkite-agent/builds/bk-docker-g96n/bazel-downstream-projects/tensorflow/tensorflow/contrib/rpc/python/kernel_tests/BUILD", line 14 proto_gen(name = 'test_example_proto_py_genproto') File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ad505fa787dc3fe473b54762d1a7f9ae/external/protobuf_archive/protobuf.bzl", line 137, in _proto_gen_impl ctx.actions.run(inputs = inputs, outputs = outs, arg...]), <3 more arguments>) Found tool(s) 'bazel-out/host/bin/external/grpc/grpc_python_plugin' 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. ```
Fixes bazelbuild#5826 RELNOTES: Flip --incompatible_no_support_tools_in_action_inputs PiperOrigin-RevId: 250930436
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Executables must be passed as `tools` instead of `inputs`. See: bazelbuild/bazel#5826
Fixes bazelbuild#5826 RELNOTES: Flip --incompatible_no_support_tools_in_action_inputs PiperOrigin-RevId: 250930436
this breaks rules_scala: https://travis-ci.org/bazelbuild/rules_scala/builds/561953949 How was this flag flipped then? |
Bazel version 0.29 flipped the bit for this option: --incompatible_no_support_tools_in_action_inputs to ensure, that tools are not used in input, but instead passed as new parameter tools: [1]. Change I744ae1b28a already fixed some places, but missed the place fixed in this change. The problem shows up when debugging of GWT code with Bazel 0.27 and later. Test Plan: $ bazel build //gerrit-gwtui:ui_safari [1] bazelbuild/bazel#5826 Change-Id: I491d70361444e4fb41a1dc2b7dbe422969c090ff
Replace native.new_http_archive with http_archive since new_http_archive is deprecated/removed. depsets are no longer iterable (https://docs.bazel.build/versions/0.24.0/skylark/backward-compatibility.html#depset-is-no-longer-iterable). Pass purs in tools and not inputs (bazelbuild/bazel#5826).
This is a tracking issue for offering a migration solution for
--incompatible_no_support_tools_in_action_inputs
This flag would change e.g.
ctx.actions.run()
andctx.actions.run_shell()
to enforce action tools are passed using 'tools' and not 'inputs'. (An error is thrown if any tools appear in 'inputs'The text was updated successfully, but these errors were encountered: