-
-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Absolutize all of the execute_pex_args in the venv script. (cherrypic…
…k of #12727) (#12729) The absolutizing of `execute_pex_args` was being applied to the entire list of arguments, rather than to individual arguments. When: 1. using a working directory 2. hitting the `Process` cache for VenvPex creation/seeding and missing for execution 3. missing the PEX venv cache ... the relevant `execute_pex_args` code would run to seed the venv, and fail with: ``` pants.engine.process.ProcessExecutionFailure: Process 'Run the pex and check its cwd' failed with exit code 2. stdout: stderr: <snip>/python3.6: can't open file 'test.pex': [Errno 2] No such file or directory ``` ...because the PEX filename was not absolutized. Add a reproducing test, and fix by absolutizing each argument. [ci skip-rust] [ci skip-build-wheels]
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters