Bazel 2.2 has just been released.
Bazel 2.2 is intended to be backward-compatible with Bazel 2.0. There are no known breaking changes in this release.
- The following flags have been removed, as they were flipped in previous
- The following incompatible flags have been added:
config()now supports arbitrary configurations.
- When using cquery,
//foo:barnow means "all configured targets with label
//foo:bar" instead of "choose an arbitrary configured target with label
http_archiverepositories can now be patched using the
- Flags that affect external repositories like
--override_repositorycan now be addressed in
bazelrcfiles using the
commoncommand, without causing commands like
bazel shutdownto fail.
--starlark_cpu_profile=flag writes a profile in pprof format containing a statistical summary of CPU usage by all Starlark execution during the bazel command. Use it to identify slow Starlark functions in loading and analysis.
- We now discourage running Bazel from MSYS2 because of a newly found bug (#10573)
- Actions with
parseon the critical path should no longer finish in the future.
- Reduced the packaging time (package-bazel.sh) for the
//src:bazel-devBazel development build target from 14s to 6s. Use
//src:bazel-devif you're iterating rapidly on a local Bazel changes, and use
--compilation_mode=optfor release builds.
This release contains contributions from many people at Google, as well as Alessandro Patti, Alex Kirchhoff, Artur Dryomov, Benjamin Peterson, David Ostrovsky, Elliotte Rusty Harold, Eric Klein, George Chiramel, George Gensure, Guillaume Bouchard, Hui-Zhi, John Millikin, Jonathan Springer, Michael McLoughlin, Nikolaus Wittenstein, Nikolay Shelukhin, Yannic Bonenberger, aman, nikola-sh.