-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra spaces added to lock files - probable issue w/ interpreter selection. #18601
Comments
@thejcannon the issue is #18495 leads to interpreter selection for the Pex CLI selecting Python 2.7 - which is the cause of the JSON trailing whitespace. In @asherf's case, Python 2.7 is not in bounds in any repo ICs and prior to #18495 Python 2.7 was not selected to run the Pex CLI with. |
Here's where we choose ICs for lockfile generation:
Here's where we pass it to PexCliProcess :
Neither of which changed in the commit. Additionally, the changes to |
If you follow the slack thread all good commit prior, reproducibly bad at that exact commit. So something is up. |
If it's not clear the issue is the Python used to run the Pex CLI, not the arguments passed to it. |
Fixes #18601 (among likely other issues) by ensuring we always run the pex PEX with a `--python` set to the bootstrap Python. Note that none of the callers were passing `python` so I removed the parameter.
Fixes #18601 (among likely other issues) by ensuring we always run the pex PEX with a `--python` set to the bootstrap Python. Note that none of the callers were passing `python` so I removed the parameter.
Fixes #18601 (among likely other issues) by ensuring we always run the pex PEX with a `--python` set to the bootstrap Python. Note that none of the callers were passing `python` so I removed the parameter. Co-authored-by: Joshua Cannon <[email protected]>
This was introduced in 2.16.0 a1:
![Screenshot 2023-03-27 at 4 20 58 PM](https://user-images.githubusercontent.com/1268088/228057429-14936cd7-9342-49f8-a853-b1d4c9c1f176.png)
While the spaces themselves are not a big deal, there might be an underlying issue with more serious implications.
More information in the slack thread
Relevant PR: #18495
cc: @jsirois @thejcannon
The text was updated successfully, but these errors were encountered: