Bazel Blog

Bazel 3.2

Bazel 3.2 has just been released.

Incompatible changes

Bazel 3.2 is not a major release. As such, updating from Bazel 3.1 is expected to be straightforward.

  • The following flags were renamed, removed or replaced: --experimental_slim_json_profile was renamed to --slim_profile.

Starlark

  • Action objects created by ctx.attr.write now expose their content for inspection (in analysis-time tests) even when generated by an Args object.
  • Starlark rules can now read attributes that apply Starlark split transitions.
  • Starlark rules can now create symlinks using ctx.actions.symlink.

aquery

  • Added aquery_differ_v2 that works with the new aquery proto output format.

Other changes

  • Add new flag --experimental_no_product_name_out_symlink. When enabled, the bazel-out symlink won’t be created if a different name is given to --symlink_prefix.
  • Bazel can now recursively delete non-executable but readable directories.

This release contains contributions from many people at Google, as well as Alessandro Patti, Antoine Eiche, Beebs, Brian Silverman, George Gensure, Gerhard Pretorius, Gibson Fahnestock, Greg, Gregor Jasny, Gustav Westling, Jin, Jonathan Gerrish, Josh Smith, Justin Y Wei, Laurent Le Brun, Links, László Csomor, Matt Mackay, Moritz Kröger, Ryan Beasley, Siddhartha Bagaria, Yannic Bonenberger, Zhongpeng Lin, hannometer, liubang.