Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle venv path special chars in coursier fetch (#15701)
On one system (a gentoo linux box), uname reports a very verbose processor name which is then used to build the pants venv path. That verbose processor name includes "Intel(R)" and other symbols including parentheses and at: `()@` The coursier fetch script did not escape the python_path, so running `./pants lint ::` on the pants codebase results in this error: ``` __coursier/coursier_fetch_wrapper_script.sh: line 11: syntax error near unexpected token `R' ``` The full path that triggered this error is: ``` /home/cognifloyd/.cache/pants/pants_dev_deps/Linux.x86_64.Intel(R).Core(TM)[email protected]/bin/python ``` This PR fixes that by wrapping python_path in single quotes in the coursier script. [ci skip-rust] [ci skip-build-wheels]
- Loading branch information