File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ def _proto_gen_impl(ctx):
117
117
118
118
outs = [ctx .actions .declare_file (out , sibling = src ) for out in outs ]
119
119
inputs = [src ] + deps
120
+ tools = [ctx .executable .protoc ]
120
121
if ctx .executable .plugin :
121
122
plugin = ctx .executable .plugin
122
123
lang = ctx .attr .plugin_language
@@ -131,11 +132,12 @@ def _proto_gen_impl(ctx):
131
132
outdir = "," .join (ctx .attr .plugin_options ) + ":" + outdir
132
133
args += [("--plugin=protoc-gen-%s=" + path_tpl ) % (lang , plugin .path )]
133
134
args += ["--%s_out=%s" % (lang , outdir )]
134
- inputs += [ plugin ]
135
+ tools . append ( plugin )
135
136
136
137
if not in_gen_dir :
137
138
ctx .actions .run (
138
139
inputs = inputs ,
140
+ tools = tools ,
139
141
outputs = outs ,
140
142
arguments = args + import_flags + [src .path ],
141
143
executable = ctx .executable .protoc ,
@@ -162,7 +164,7 @@ def _proto_gen_impl(ctx):
162
164
outputs = [out ],
163
165
command = command ,
164
166
mnemonic = "ProtoCompile" ,
165
- tools = [ ctx . executable . protoc ] ,
167
+ tools = tools ,
166
168
use_default_shell_env = True ,
167
169
)
168
170
You can’t perform that action at this time.
0 commit comments