From e23b79c31ccaba176515e7032553d2816e5832cd Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Tue, 11 Oct 2016 11:30:04 +0000 Subject: Only add the runfiles of artifacts that are actual inputs of the spawn action. The previous solution added too many unneeded runfiles, which caused problems with our workers. -- MOS_MIGRATED_REVID=135782773 --- tools/build_rules/genproto.bzl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/build_rules') diff --git a/tools/build_rules/genproto.bzl b/tools/build_rules/genproto.bzl index b067f12672..8270387c4e 100644 --- a/tools/build_rules/genproto.bzl +++ b/tools/build_rules/genproto.bzl @@ -31,7 +31,8 @@ def gensrcjar_impl(ctx): ctx.executable._gensrcjar.path, ]), inputs=([ctx.file.src] + ctx.files._gensrcjar + ctx.files._jar + - ctx.files._jdk + ctx.files._proto_compiler), + ctx.files._jdk + ctx.files._proto_compiler + + ctx.files.grpc_java_plugin), outputs=[out], mnemonic="GenProtoSrcJar", use_default_shell_env=True) @@ -51,7 +52,7 @@ gensrcjar = rule( single_file = True, ), "_gensrcjar": attr.label( - default = Label(str(Label("//tools/build_rules:gensrcjar"))), + default = Label("//tools/build_rules:gensrcjar"), cfg = "host", executable = True, ), -- cgit v1.2.3