@@ -173,21 +173,9 @@ def safe_name(value):
173
173
def _short_path (file ):
174
174
return file .short_path
175
175
176
- # This propagates specific tags as execution requirements to be passed to an action
177
- # A fix to bazelbuild/bazel that will make this no longer necessary is underway; we can remove this once that's released and we've obtained it
178
- PROPAGATABLE_TAGS = ["no-remote" , "no-cache" , "no-sandbox" , "no-remote-exec" , "no-remote-cache" ]
179
-
180
- def resolve_execution_reqs (ctx , base_exec_reqs ):
181
- exec_reqs = {}
182
- for tag in ctx .attr .tags :
183
- if tag in PROPAGATABLE_TAGS :
184
- exec_reqs .update ({tag : "1" })
185
- exec_reqs .update (base_exec_reqs )
186
- return exec_reqs
187
-
188
176
def _format_resources_item (item ):
189
177
key , value = item
190
- return "{}:{} " .format (value .path , key )
178
+ return "\" {} \" : \" {} \" " .format (value .path , key )
191
179
192
180
def action_singlejar (
193
181
ctx ,
@@ -215,21 +203,18 @@ def action_singlejar(
215
203
args .add ("--output" , output )
216
204
if main_class != None :
217
205
args .add ("--main_class" , main_class )
218
- args .set_param_file_format ("multiline" )
219
- args .use_param_file ("@%s" , use_always = True )
206
+ args .set_param_file_format ("multiline" )
207
+ args .use_param_file ("@%s" , use_always = True )
220
208
221
209
all_inputs = depset (resources .values (), transitive = [inputs ])
222
210
223
211
ctx .actions .run (
224
212
arguments = [args ],
225
213
executable = ctx .executable ._singlejar ,
226
- execution_requirements = resolve_execution_reqs (
227
- ctx ,
228
- {
229
- "supports-workers" : "0" ,
230
- "supports-path-mapping" : "1" ,
231
- },
232
- ),
214
+ execution_requirements = {
215
+ "supports-workers" : "0" ,
216
+ "supports-path-mapping" : "1" ,
217
+ },
233
218
inputs = all_inputs ,
234
219
mnemonic = _SINGLE_JAR_MNEMONIC ,
235
220
outputs = [output ],
0 commit comments