-
Notifications
You must be signed in to change notification settings - Fork 123
Breaks with Python toolchains (Bazel 0.27) #94
Comments
@sergiocampama I believe you asked me to notify you about this type of breakage when we last spoke in person. |
Ping @DavidGoldman and @ivanhernandez, can you look at this? It affects the current Bazel RC. |
The unrelated failures I mentioned were in Looking again at the error from before, it is definitely a PY2-code-running-in-a-PY3-interpreter error, and the failing action has Downstream users of tulsi should also set |
Spoke with David, the Python failure appears to be upstream, in rules_apple (tracked in bazelbuild/rules_apple#456). |
I believe this should be fixed as of 1cb0527 |
rules_apple is actually still failing in CI, I think because they didn't update their bazelrc. But I guess that doesn't block downstream projects from updating their own bazelrc. CI looks good, feel free to close. |
Closing as the tests are now passing on CI |
Bazel 0.27 enables
--incompatible_use_python_toolchains
, which breaks tulsi's CI. This flag causes Bazel to actually use the Python version that was decided at analysis time, instead of whatever the systempython
command happens to be.You likely want to add
python_version = "PY2"
to some targets. If Python 2 targets are used in the host configuration, you'll want to set--host_force_python=PY2
.Note that in a recent rerun, tulsi fails in CI for an unrelated breakage that masks this one.
The text was updated successfully, but these errors were encountered: