Skip to content

Commit

Permalink
Switch --incompatible_no_support_tools_in_action_inputs
Browse files Browse the repository at this point in the history
Executables must be passed as `tools` instead of `inputs`.

See: bazelbuild/bazel#5826
  • Loading branch information
guibou committed Jun 26, 2019
1 parent 61b0622 commit 9d23510
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ test:windows --experimental_enable_runfiles
# WIP: bazel 0.27 fixs
build\
--incompatible_disable_deprecated_attr_params=false\
--incompatible_no_support_tools_in_action_inputs=false\
--incompatible_require_ctx_in_configure_features=false\
--incompatible_depset_union=false
test\
--incompatible_disable_deprecated_attr_params=false\
--incompatible_no_support_tools_in_action_inputs=false\
--incompatible_require_ctx_in_configure_features=false\
--incompatible_depset_union=false

Expand Down
2 changes: 1 addition & 1 deletion haskell/private/version_macros.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def generate_version_macros(ctx, pkg_name, version):
"""
version_macros_file = ctx.actions.declare_file("{}_version_macros.h".format(ctx.attr.name))
ctx.actions.run_shell(
inputs = [ctx.executable._version_macros],
tools = [ctx.executable._version_macros],
outputs = [version_macros_file],
command = """
"$1" "$2" "$3" > "$4"
Expand Down

0 comments on commit 9d23510

Please sign in to comment.