@@ -89,21 +89,21 @@ def _proto_gen_impl(ctx):
89
89
if source_dir :
90
90
has_sources = any ([src .is_source for src in srcs ])
91
91
if has_sources :
92
- import_flags += [ "-I" + source_dir ]
92
+ import_flags . append ( "-I" + source_dir )
93
93
else :
94
- import_flags += [ "-I." ]
94
+ import_flags . append ( "-I." )
95
95
96
96
has_generated = any ([not src .is_source for src in srcs ])
97
97
if has_generated :
98
- import_flags += [ "-I" + gen_dir ]
98
+ import_flags . append ( "-I" + gen_dir )
99
99
100
100
if ctx .attr .includes :
101
101
for include in ctx .attr .includes :
102
102
if include == "." :
103
103
# This is effectively source_dir, which has already been handled,
104
104
# and may be generated incorrectly here.
105
105
continue
106
- import_flags += [ "-I" + _GetPath (ctx , include )]
106
+ import_flags . append ( "-I" + _GetPath (ctx , include ))
107
107
108
108
import_flags = depset (direct = import_flags )
109
109
@@ -160,7 +160,7 @@ def _proto_gen_impl(ctx):
160
160
outs .extend (_RubyOuts ([src .basename ]))
161
161
162
162
# Otherwise, rely on user-supplied outs.
163
- args += [( "--%s_out=" + path_tpl ) % (lang , gen_dir )]
163
+ args . append (( "--%s_out=" + path_tpl ) % (lang , gen_dir ))
164
164
165
165
if ctx .attr .outs :
166
166
outs .extend (ctx .attr .outs )
@@ -181,8 +181,8 @@ def _proto_gen_impl(ctx):
181
181
182
182
if ctx .attr .plugin_options :
183
183
outdir = "," .join (ctx .attr .plugin_options ) + ":" + outdir
184
- args += [( "--plugin=protoc-gen-%s=" + path_tpl ) % (lang , plugin .path )]
185
- args += [ "--%s_out=%s" % (lang , outdir )]
184
+ args . append (( "--plugin=protoc-gen-%s=" + path_tpl ) % (lang , plugin .path ))
185
+ args . append ( "--%s_out=%s" % (lang , outdir ))
186
186
tools .append (plugin )
187
187
188
188
if not in_gen_dir :
0 commit comments