From 46b321abe570d40f6c41fafbea213f092068f960 Mon Sep 17 00:00:00 2001 From: Vladimir Moskva Date: Thu, 21 Feb 2019 12:52:01 +0100 Subject: [PATCH] Fix for future incompatible changes in Bazel --- tensorflow/tensorflow.bzl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index 6163236791d..2a24ff210ea 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -1357,7 +1357,7 @@ def _py_wrap_cc_impl(ctx): args += ["-I" + i for i in swig_include_dirs.to_list()] args += [src.path] outputs = [ctx.outputs.cc_out, ctx.outputs.py_out] - ctx.action( + ctx.actions.run( executable = ctx.executable._swig, arguments = args, inputs = inputs.to_list(), @@ -1655,8 +1655,7 @@ _append_init_to_versionscript = rule( attrs = { "module_name": attr.string(mandatory = True), "template_file": attr.label( - allow_files = True, - single_file = True, + allow_single_file = True, mandatory = True, ), "is_version_script": attr.bool(