浏览代码

Change deprecated Bazel single file attr param

This removes the need for --incompatible_disable_deprecated_attr_params
when using Protobuf
James Judd 7 年之前
父节点
当前提交
d5f0dac497
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      protobuf.bzl

+ 1 - 1
protobuf.bzl

@@ -178,7 +178,7 @@ proto_gen = rule(
         "protoc": attr.label(
         "protoc": attr.label(
             cfg = "host",
             cfg = "host",
             executable = True,
             executable = True,
-            single_file = True,
+            allow_single_file = True,
             mandatory = True,
             mandatory = True,
         ),
         ),
         "plugin": attr.label(
         "plugin": attr.label(