提交 eb985161 编写于 作者: V Vladimir Moskva

Add more fixes

上级 46b321ab
......@@ -21,7 +21,7 @@
# substitutions: A dictionary mapping strings to their substitutions
def template_rule_impl(ctx):
ctx.template_action(
ctx.actions.expand_template(
template = ctx.file.src,
output = ctx.outputs.out,
substitutions = ctx.attr.substitutions,
......@@ -31,8 +31,7 @@ template_rule = rule(
attrs = {
"src": attr.label(
mandatory = True,
allow_files = True,
single_file = True,
allow_single_file = True,
),
"substitutions": attr.string_dict(mandatory = True),
"out": attr.output(mandatory = True),
......
......@@ -107,7 +107,7 @@ def _proto_gen_impl(ctx):
inputs += [plugin]
if args:
ctx.action(
ctx.actions.run(
inputs = inputs,
outputs = ctx.outputs.outs,
arguments = args + import_flags + [s.path for s in srcs],
......@@ -132,7 +132,7 @@ proto_gen = rule(
"protoc": attr.label(
cfg = "host",
executable = True,
single_file = True,
allow_single_file = True,
mandatory = True,
),
"plugin": attr.label(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册