This page covers how to automatically update your Bazel version using Bazelisk.
The Bazel project has a backward compatibility policy (see guidance for rolling out incompatible changes if you are the author of one). That page summarizes best practices on how to test and migrate your project with upcoming incompatible changes and how to provide feedback to the incompatible change authors.
Bazelisk helps you manage Bazel versions.
Bazelisk can:
Within minor updates to any LTS release, any project can be prepared for the next release without breaking compatibility with the current release. However, there may be backward-incompatible changes between major LTS versions.
Follow this process to migrate from one major version to another:
--incompatible_*
flag and a corresponding GitHub issue:After migration, you can continue to build your projects without worrying about backward-compatibility until the next major release.