I am trying to run shell command using ctx.actions.run_shell or ctx.action a python wrapper script like below:
ctx.actions.run_shell(
inputs=cython_gen_inputs,
outputs=cython_gen_outputs,
command=cython_gen_cmd,
progress_message="Generating cython generated files",
env={"LD_LIBRARY_PATH": python3_host_dir,
"PYTHONHOME": python3_host_home,
"PYTHONPATH": python3_host_lib,
"CYTHON_ROOT": cython_root},
)
building a target above with --sandbox_debug --verbose_failures flags.
The build fails but if I copy and paste the command reported as failure it works. The return status is 0 while the build by bazel returns 1.