File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,7 +264,15 @@ def _mayhem_run_impl(ctx):
264264
265265 runfiles = runfiles .merge (ctx .runfiles (files = [mayhem_cli_exe ]))
266266
267+ print ("mayhem cli exe short path: {}" .format (mayhem_cli_exe .short_path ))
268+ print ("mayhem cli exe path: {}" .format (ctx .executable ._mayhem_cli .path ))
269+ print ("mayhem cli short path: {}" .format (ctx .executable ._mayhem_cli .short_path ))
270+ print ("mayhem cli path: {}" .format (ctx .executable ._mayhem_cli .path ))
271+
267272 wrapper = ctx .actions .declare_file (ctx .label .name + ".bat" )
273+
274+ print ("wrapper path: {}" .format (wrapper .path ))
275+ print ("wrapper short path: {}" .format (wrapper .short_path ))
268276
269277 if wait_args_str :
270278 wrapper_content = """
@@ -281,24 +289,8 @@ def _mayhem_run_impl(ctx):
281289 )
282290 else :
283291 wrapper_content = """
284- echo [DEBUG] Script directory: %~dp0
285- echo [DEBUG] mayhem_cli path: {mayhem_cli}
286- echo [DEBUG] Checking if file exists...
287- if exist "{mayhem_cli}" (
288- echo [DEBUG] File exists
289- dir "{mayhem_cli}"
290- ) else (
291- echo [DEBUG] File NOT found
292- echo [DEBUG] Listing current directory:
293- dir
294- echo [DEBUG] Listing parent directory:
295- dir ..
296- )
297-
298- REM Try to follow symlink
299- fsutil reparsepoint query "{mayhem_cli}" 2>nul
300-
301- echo [DEBUG] Running command: {mayhem_cli} {run_args}
292+ @echo off
293+ setlocal
302294 {mayhem_cli} {run_args}
303295 """ .format (
304296 mayhem_cli = mayhem_cli_exe .short_path .replace ("/" , "\\ " ),
You can’t perform that action at this time.
0 commit comments