Hi there!
TL; DR Upgrading your Bazel version beyond 4.0.0 may require you to migrate from rbe_autoconfig to the new CLI tool to configure Bazel for remote C++ and Java compilation.
Continue reading if you configure Bazel to remotely execute C++ and Java compilation and plan to upgrade the version of Bazel you use in the future.
rbe_autoconfig is a Starlark repository rule that generates platforms and toolchain targets necessary for C++ and Java compilation executed remotely. For Bazel versions after 4.0.0, a standalone CLI tool will be the supported mechanism to generate these platform and toolchain targets. You should migrate to the new CLI tool if any of the following scenarios apply:
You’re setting up a new Bazel workspace/build.
You’re upgrading your Bazel version beyond 4.0.0 and rbe_autoconfig stops working for you.
The new CLI tool should make it easier for users to debug when things go wrong or to explore extending the existing functionality of the tool. This is because the tool is written in Go whose control flow should be easier to follow than rbe_autoconfig which was a Starlark repository rule wrapped around several Starlark Build rules.
We expect the process of upgrading Bazel version once you’ve migrated to the new CLI tool will be slightly different from rbe_autoconfig in the following ways:
You may need to build the CLI tool binary from source (instructions) if the latest release doesn’t include a binary for your platform.
You’ll need to generate and store configuration files in your own source repo (see documentation on ways to generate and use the configs) every time you upgrade Bazel. Previously, with rbe_autoconfig, in certain scenarios, upgrading your Bazel version only required updating the pin to the bazel-toolchains repo.
If you have questions or would like to request new features, please reach out to us by opening new issues on Github here.
Joe Hicks on behalf of the Bazel team
james....@zenotech.com | ||
www.zenotech.com | ||
--
You received this message because you are subscribed to the Google Groups "bazel-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-dev/CAMDFopihJCRbaFZRM34-tsC1k9zJ88En1FNEOcyBjE4zbOO8rw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-dev/CAAF04kPcTSbD15379OPuz8EKUHN_d%3DOcNiuxH-n_i1C1hS%3Dr9g%40mail.gmail.com.