You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve error message when host tools built for PY3 fail #8549
The default host config Python version is PY3, but many host tools are written for Python 2. With --incompatible_use_python_toolchains being flipped, a common mode of failure is that these tools now fail for downstream users who do not know to set --host_force_python=PY2. This previously worked because we were ignoring the Python version and just calling python, which on most systems is Python 2 (#4815).
We already have a diagnostic message for host tools that exit with a non-zero code, in the case where the target's python_version disagrees with the host config's Python version. But this message does not fire when there is no python_version attribute set and no --host_force_python passed, since both of these default to PY3. I propose we extend this message to also fire when python_version is not explicitly set. That will cover the common case and help alert downstream users to the changed needed in their bazelrc.
Activity
Warn in more cases of possible Python version mismatch in host config
Warn in more cases of possible Python version mismatch in host config
Warn in more cases of possible Python version mismatch in host config
Warn in more cases of possible Python version mismatch in host config