-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run clean-all before switching pants python version runner scripts (#…
…7151) ### Problem When running `./pants` vs `./pants3`, or changing python interpreter version via `PY=python3.6 ./pants` to `PY=python3.7 ./pants`, it is currently necessary to run `clean-all` first before switching which python interpreter is used to run pants. This is unfortunate, but temporary. Anyone testing with different python interpreter versions has to remember to run `clean-all` in between invocations. I find this difficult to remember. ### Solution - Make `./pants` write the python version string to a sentinel file `.pants-python-version` at the repo root containing the python version we're running with before doing anything else, and if the version differs from the python version we are currently running pants under, run a `clean-all`. - Add `ONLY_USING_SINGLE_PYTHON_VERSION` env var to CI to avoid running `clean-all` or needing to generate this sentinel file. ### Result Many weird errors no longer occur when running `./pants3`. ### Followup Issues - #7355 -- fix reporting not picking up a run if `clean-all` is one of the goals, which would let us avoid having to make two separate pants invocations here.
- Loading branch information
1 parent
16cefff
commit 0672383
Showing
8 changed files
with
70 additions
and
0 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
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
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
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