chore: flip auto exec groups flag internally
I went through all of the invocations of ctx.actions.run and
ctx.actions.run_shell and it seems that we are setting the toolchain args
correctly where toolchains are used in the execution of the command.
Fixes #2282.
Changing to draft until bazel ecosystem is more ready.
From CI:
(13:51:09) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/external/protobuf~/python/BUILD.bazel:53:20: in internal_copy_files_impl rule @@protobuf~//python:copied_wkt_proto_files:
Traceback (most recent call last):
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/external/protobuf~/python/internal.bzl", line 57, column 24, in _internal_copy_files_impl
ctx.actions.run(
Error in run: Couldn't identify if tools are from implicit dependencies or a toolchain. Please set the toolchain parameter. If you're not using a toolchain, set it to 'None'.
It looks like that error is coming from protobuf. Maybe we're missing an arg being passed to them? Or maybe we'll have to wait for them to fix.
Seems that we need to wait for a release that includes the change in https://github.com/protocolbuffers/protobuf/commit/80a5a511e47a33a860b004e3336ba89ab45058f0
We need to first drop bazel 6 if we want to have this fully working. Or have per-bazel-version configs in .bazelrc.
Feel free to take this over from me. I am not going to continue with it. Since this is a trivial change, closing it.