proud-dentist-22844
05/28/2022, 8:04 PM__coursier/coursier_fetch_wrapper_script.sh: line 11: syntax error near unexpected token `R'
Line 11 in the script (from --no-process-cleanup
) is:
/home/cognifloyd/.cache/pants/pants_dev_deps/Linux.x86_64.Intel(R).Core(TM).i7-3610QM.CPU.@.2.30GHz.py37.venv/bin/python __coursier/coursier_post_processing_script.py "$json_output_file"
So, bash doesn't like the ()
chars it seems. I'm not sure why I have all of those chars in the venv name, does anyone know where that comes from?
The naive fix is to surround {python_path}
with quotes '{python_path}'
here:
https://github.com/pantsbuild/pants/blob/main/src/python/pants/jvm/resolve/coursier_setup.py#L83
Is there a better way to escape that? eg what happens if a path has a '
in it (why I don't know. But I don't know why I have ()
chars either)?
Also, is there anything else in those scripts that might need shell escaping?enough-analyst-54434
05/28/2022, 8:20 PMenough-analyst-54434
05/28/2022, 8:20 PMuname -mps
with some transforms.proud-dentist-22844
05/28/2022, 9:05 PM's/ /./g'
, like removing other special characters?enough-analyst-54434
05/28/2022, 9:17 PMproud-dentist-22844
05/28/2022, 9:42 PMenough-analyst-54434
05/28/2022, 10:01 PMpython_path
in the coursier wrapper script template.proud-dentist-22844
05/30/2022, 3:27 AM