tag:github.com,2008:https://github.com/crawfordsolutions/bazel/releasesRelease notes from bazel2020-07-14T06:24:08Ztag:github.com,2008:Repository/288780608/3.4.12020-07-14T06:24:08ZRelease 3.4.1 (2020-07-14)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/7404d17ac76da876ae0b432d1fccf222a9e991fe/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/7404d17ac76da876ae0b432d1fccf222a9e991fe"><tt>7404d17</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/f31f2d787116120b2b16e9aa9a64fab171c0d954/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/f31f2d787116120b2b16e9aa9a64fab171c0d954"><tt>f31f2d7</tt></a>:<br>
fixup! Gracefully handle the lack of subreaper support in Linux.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/3a4f221e3c57495c1ed0d1ec8128f92323b13079/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/3a4f221e3c57495c1ed0d1ec8128f92323b13079"><tt>3a4f221</tt></a>:<br>
Revert "Replace the remaining dependencies for Bazel Debian<br>
build (third_party)"</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/c55ec0f2cb3f5b44e5025bf9d3c5dc91d94db287/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/c55ec0f2cb3f5b44e5025bf9d3c5dc91d94db287"><tt>c55ec0f</tt></a>:<br>
Revert "Upgrade gRPC to 1.26.0"</li>
</ul>
<p>This release contains contributions from many people at Google, as well as Ryan Beasley.</p>a-googlertag:github.com,2008:Repository/288780608/3.4.02020-07-13T15:23:47ZRelease 3.4.0 (2020-07-13)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/7404d17ac76da876ae0b432d1fccf222a9e991fe/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/7404d17ac76da876ae0b432d1fccf222a9e991fe"><tt>7404d17</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/a4334be50a206bf8d676a0196af11056c48ac35b/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/a4334be50a206bf8d676a0196af11056c48ac35b"><tt>a4334be</tt></a>:<br>
fixup! Gracefully handle the lack of subreaper support in Linux.</li>
</ul>
<p>Incompatible changes:</p>
<ul>
<li>This removes the short-lived --process_wrapper_extra_flags<br>
flag, which was introduced primarily to roll out a bug fix.<br>
Unfortunately,<br>
this made us inadvertently expose all of the process-wrapper's<br>
command line<br>
interface to the public, which should not have happened. Given<br>
the corner<br>
case of the utility of this flag, the lack of documentation for<br>
it, and the<br>
fact that it only appeared in a single release, we are treating<br>
this as a<br>
bug instead of a backwards compatibility breakage.</li>
</ul>
<p>New features:</p>
<ul>
<li>bazel info: Allow to specify multiple keys.</li>
<li>Support code coverage with GCC 9.</li>
</ul>
<p>Important changes:</p>
<ul>
<li>Allow InstrumentedFilesInfo fields to be read from Starlark.</li>
<li>The --starlark_cpu_profile= flag writes a profile in<br>
pprof format containing a statistical summary of CPU usage<br>
by all Starlark execution during the bazel command. Use it<br>
to identify slow Starlark functions in loading and analysis.</li>
<li>The --debug_depset_flag has been removed as it is in effect<br>
always on at no cost.</li>
<li>Rule authors should use the<br>
incompatible_use_toolchain_transition rule attribute to migrate<br>
to using<br>
the toolchain transition. jcater to udpate notes further.</li>
<li><code>apple_binary</code> rules now accept the <code>stamp</code> attribute with the<br>
same<br>
semantics that it has in <code>cc_binary</code> rules.</li>
<li>--incompatible_objc_provider_remove_compile_info turns off<br>
the compile info/mege_zip Starlark APIs in ObjcProvider. See<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="616061995" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/11359" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/11359/hovercard" href="https://github.com/bazelbuild/bazel/issues/11359">bazelbuild#11359</a>.</li>
<li>The --debug_depset_flag has been removed as it is in effect<br>
always on at no cost.</li>
<li>Fix behavior of ctx.actions.write so content is written without<br>
an incorrect encoding to UTF-8.<br>
See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="518227089" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/10174" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/10174/hovercard" href="https://github.com/bazelbuild/bazel/issues/10174">bazelbuild#10174</a> for details.</li>
<li>Collect more performance metrics for worker execution.</li>
<li>Add flag --incompatible_force_strict_header_check_from_starlark</li>
<li>Configure coverage and runfiles for sh_library.</li>
<li>Adds --incompatible_blacklisted_protos_requires_proto_info to<br>
indicate whether proto_lang_toolchain.blacklisted_protos requires<br>
ProtoInfo.</li>
</ul>
<p>This release contains contributions from many people at Google, as well as Andrzej Guszak, Benjamin Peterson, Benjamin Romano, Carlos Eduardo Seo, Claudio Bley, dannysullivan, David Ostrovsky, George Gensure, Graham Jenson, Grzegorz Lukasik, Gunnar Wagenknecht, Henk van der Laan, Jin, John Millikin, Marin Baron, Nikhil Marathe, Robin Nabel, Ryan Beasley, Samuel Giddins, Sergey Balabanov, utsav-dbx, Vo Van Nghia, Yannic Bonenberger.</p>a-googlertag:github.com,2008:Repository/288780608/3.3.12020-06-30T15:05:55ZRelease 3.3.1 (2020-06-30)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/c063b5caf776dee665497b64c5c17d4ed7e6750a/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/c063b5caf776dee665497b64c5c17d4ed7e6750a"><tt>c063b5c</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/cb798a475eb54087e1e83f8aa1dc1c54550877b5/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/cb798a475eb54087e1e83f8aa1dc1c54550877b5"><tt>cb798a4</tt></a>:<br>
Restore missing Building with Platforms docs.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/9be97678b02bbd45d164c8458c8fd4f7791cb7aa/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/9be97678b02bbd45d164c8458c8fd4f7791cb7aa"><tt>9be9767</tt></a>:<br>
Release 3.3.0 (2020-06-17)</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/3b0439e37247a480e08337a6314d06231bdbafd3/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/3b0439e37247a480e08337a6314d06231bdbafd3"><tt>3b0439e</tt></a>:<br>
Fix incorrect assumption of desugar persistent worker conditional</li>
</ul>
<p>This release contains contributions from many people at Google, as well as .</p>a-googlertag:github.com,2008:Repository/288780608/3.3.02020-06-17T12:51:49ZRelease 3.3.0 (2020-06-17)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/c063b5caf776dee665497b64c5c17d4ed7e6750a/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/c063b5caf776dee665497b64c5c17d4ed7e6750a"><tt>c063b5c</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/23bd69d7499de097b15e6025cc0796bdbc9886b8/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/23bd69d7499de097b15e6025cc0796bdbc9886b8"><tt>23bd69d</tt></a>:<br>
Restore missing Building with Platforms docs.</li>
</ul>
<p>Incompatible changes:</p>
<ul>
<li>The startup option --fatal_event_bus_exceptions is now a no-op<br>
and will be removed soon.</li>
</ul>
<p>New features:</p>
<ul>
<li>Bazel offers basic completion for the fish shell.</li>
</ul>
<p>Important changes:</p>
<ul>
<li>Add configuration_field for --custom_malloc to cpp config fragment</li>
<li>Flip --incompatible_objc_compile_info_migration to true. See<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="570233468" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/10854" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/10854/hovercard" href="https://github.com/bazelbuild/bazel/issues/10854">bazelbuild#10854</a>.</li>
<li>It is now possible to use different action mnemonics while still<br>
sharing the same pool of persistent workers. It requires setting<br>
a new property<br>
on the execution requirements (<code>worker-key-mnemonic</code>). The value<br>
overrides<br>
the action's mnemonic when it comes to reusing worker processes.</li>
<li>linkshared=1 in cc_binary no longer requires '.so' or '.dll' in<br>
the target name</li>
<li>Revert --incompatible_objc_compile_info_migration to false. See<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="570233468" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/10854" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/10854/hovercard" href="https://github.com/bazelbuild/bazel/issues/10854">bazelbuild#10854</a>.</li>
<li>Invoke clang with the correct -target flag when building for<br>
watchOS.</li>
<li>NA</li>
<li>Add experiment flag to forward InstrumentedFilesInfo from<br>
non-tool deps by default.</li>
</ul>
<p>This release contains contributions from many people at Google, as well as Abhishek Kumar, Adam Azarchs, Akira Baruah, Daniel Wagner-Hall, Derek Argueta, glukasiknuro, Greg Estren, Greg, Jason Furmanek, Jiri Dank, Keith Smiley, Kseniia Vasilchuk, Laurent Le Brun, Matt Mackay, Michael Klemm, Nikolay Shelukhin, Patrick Balestra, Rui Chen, Siggi Simonarson, sventiffe, Tobias Werth, Tom de Goede, Vladimir Chebotarev, Yannic Bonenberger.</p>a-googlertag:github.com,2008:Repository/288780608/3.2.02020-05-27T17:50:24ZRelease 3.2.0 (2020-05-27)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/1d93d26d9900328dcba0026bf21cb45cc37a4596/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/1d93d26d9900328dcba0026bf21cb45cc37a4596"><tt>1d93d26</tt></a></p>
<p>Important changes:</p>
<ul>
<li>Renamed --experimental_slim_json_profile to --slim_profile.</li>
<li>Expose ctx.attr.write Args content for analysistest when possible</li>
<li>Added aquery_differ_v2 that works with the new aquery proto<br>
output format.</li>
<li>Add new flag, 'experimental_no_product_name_out_symlink', to omit<br>
creating '-out' symlink if user specifies<br>
'--symlink_prefix' option.</li>
<li>--ram_utilization_factor is removed (as is<br>
--incompatible_remove_ram_utilization_factor). Please use<br>
--local_ram_resources.</li>
<li>Improve include scanner support for cl.exe and clang-cl command<br>
lines</li>
<li>ctx.split_attr now includes attributes with Starlark split<br>
transitions.</li>
<li>Added --incompatible_string_replace_count, to make<br>
string.replace() behave as in Python.</li>
<li>Bazel can now recursively delete non-executable but readable<br>
directories.</li>
<li>Restore case-sensitivity to -I and /I include scanning detection<br>
to avoid conflicts.</li>
</ul>
<p>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, hannometer, Jin, Jonathan Gerrish, Josh Smith, Justin Y Wei, Laurent Le Brun, Links, liubang, Lszl Csomor, Matt Mackay, Moritz Krger, Ryan Beasley, Siddhartha Bagaria, Yannic Bonenberger, Yannic, Zhongpeng Lin.</p>a-googlertag:github.com,2008:Repository/288780608/3.1.02020-04-21T15:37:50ZRelease 3.1.0 (2020-04-21)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/17ebbf15bea3733c0c21e0376fb5906e391edb49/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/17ebbf15bea3733c0c21e0376fb5906e391edb49"><tt>17ebbf1</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/71fb56b4bb669a419f473598c8722e125dbb5c9e/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/71fb56b4bb669a419f473598c8722e125dbb5c9e"><tt>71fb56b</tt></a>:<br>
Suppress last-ditch download exceptions w/cleanup</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/fd60614c38da0db22431d91a793423904dff801f/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/fd60614c38da0db22431d91a793423904dff801f"><tt>fd60614</tt></a>:<br>
In repo rules, don't warn about generator_* attributes being<br>
non-canonical</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/2a372792f5cc09bd0e8389d5fc4bbfdd2f5d6e37/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/2a372792f5cc09bd0e8389d5fc4bbfdd2f5d6e37"><tt>2a37279</tt></a>:<br>
Refactor configureFeatures and prevent NPE</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/777a6ee6ed95cae4ddb949d52b63ee8a66024f03/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/777a6ee6ed95cae4ddb949d52b63ee8a66024f03"><tt>777a6ee</tt></a>:<br>
Automated rollback of commit<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/0bbe38176e15d891a4e4cab2d8425e292de6cc5f/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/0bbe38176e15d891a4e4cab2d8425e292de6cc5f"><tt>0bbe381</tt></a>.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/2ee53c9267eb6de8eae109950ca8f3953bf1ae66/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/2ee53c9267eb6de8eae109950ca8f3953bf1ae66"><tt>2ee53c9</tt></a>:<br>
Guard parseActionResultMetadata with bulk wrapper</li>
</ul>
<p>Incompatible changes:</p>
<ul>
<li>The deprecated startup options<br>
--experimental_oom_more_eagerly(_threshold) are removed.</li>
</ul>
<p>Important changes:</p>
<ul>
<li>Remove flag<br>
--incompatible_load_proto_toolchain_for_javalite_from_com_google_p<br>
rotobuf which has been flipped in Bazel 3.0.</li>
<li>Allow assembly file sources in cc_common.compile.</li>
<li>Set default .netrc file on Windows to %USERPROFILE%</li>
<li>A maximum 150 attributes per RuleClass is enforced</li>
<li>Increase max targets per rule class limit to 200</li>
<li>ctx.split_attr now includes attributes with Starlark split<br>
transitions.</li>
<li>The --max_computation_steps flag bounds the computation done by a<br>
BUILD file.</li>
<li>Native patch can handle file permission properly</li>
<li>Aspects may now propagate through dependencies on rule outputs by<br>
being defined with <code>apply_to_generating_rules = True</code>.</li>
<li>'query --output=build' now shows where rule classes (not just<br>
rules) are created.</li>
<li>The flag <code>incompatible_bzl_disallow_load_after_statement</code> is<br>
removed.</li>
<li>ctx.split_attr now includes attributes with Starlark split<br>
transitions.</li>
<li>The flag <code>incompatible_no_output_attr_default</code> is removed.</li>
<li>Fix wall-time of the SpawnResult in WorkerSpawnRunner</li>
<li>Add stamp parameter for cc_common.link to enable including build<br>
info</li>
<li>The flag <code>--incompatible_restrict_named_params</code> is removed.</li>
<li>The flag <code>--incompatible_depset_union</code> is removed.</li>
<li>Bazel uses fewer compiler flags by default when building<br>
Objective-C. In<br>
particular, Bazel no longer sets <code>-O0</code>, <code>-DDEBUG=1</code>,<br>
<code>-fstack-protector</code>, <code>-fstack-protector-all</code>, or <code>-g</code> in dbg<br>
mode, and<br>
Bazel no longer sets <code>-Os</code>, <code>-DNDEBUG=1</code>, <code>-Wno-unused-variable</code>,<br>
<code>-Winit-self</code>, or <code>-Wno-extra</code> in opt mode. If you want to apply<br>
these<br>
flags to your project, you can reenable them in your CROSSTOOL.</li>
<li>A maximum attribute name length is 128 is enforced</li>
</ul>
<p>This release contains contributions from many people at Google, as well as Alessandro Patti, Benjamin Peterson, Benjamin Romano, Bor Kae Hwang, Chris Heisterkamp, Cristian Hancila, Dmitri G, Douglas Parker, George Gensure, Gregor Jasny, John Millikin, Keith Smiley, Leo, Mike Fourie, Patrick Balestra, Robbert Van Ginkel, Ryota, Samuel Giddins, Ulf Adams, Ulf Adams, Vertexwahn, Xavier Bonaventura, Yannic Bonenberger.</p>a-googlertag:github.com,2008:Repository/288780608/3.0.02020-04-06T12:49:40ZRelease 3.0.0 (2020-04-06)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/3c7cc747ac653dca8b88a9e43726a794e2c27a9c/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/3c7cc747ac653dca8b88a9e43726a794e2c27a9c"><tt>3c7cc74</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/19e214b44df9c82a8a3bd3381344f7145813c572/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/19e214b44df9c82a8a3bd3381344f7145813c572"><tt>19e214b</tt></a>:<br>
Use prefix encoding for paths.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/63b01f7b1cd6603a08bf2a8ae813388c201e3448/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/63b01f7b1cd6603a08bf2a8ae813388c201e3448"><tt>63b01f7</tt></a>:<br>
Avoid file operations in the sandbox creation critical path.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/80a2d7cc5f8a22816934dcd2ca9bdf87050f3d9f/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/80a2d7cc5f8a22816934dcd2ca9bdf87050f3d9f"><tt>80a2d7c</tt></a>:<br>
Implementation (but not plumbing) of the gRPC remote downloader</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/586eabf419972c74fdd5fef328cfe9a259e035ed/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/586eabf419972c74fdd5fef328cfe9a259e035ed"><tt>586eabf</tt></a>:<br>
Implement RemoteDownloader w/ <code>--experimental_remote_downloader</code></li>
</ul>
<p>Incompatible changes:</p>
<ul>
<li>Flip --incompatible_remove_enabled_toolchain_types, so that rules<br>
can no longer access enabled toolchain types from the platform<br>
fragment.</li>
<li>The --incompatible_use_jdk11_as_host_javabase flag has been<br>
removed (it was flipped in Bazel 0.25.0).</li>
<li>Using JDK 9 or 10 as a <code>--host_javabase</code> is no longer officially<br>
supported. As always, you can use the<br>
<code>@bazel_tools//tools/jdk:toolchain_vanilla</code> Java toolchain to use<br>
older or newer JDKs than what Bazel currently supports.</li>
<li>--fatal_event_bus_exceptions is deprecated and should not be<br>
used. Any crashes should be reported so that they can be fixed.</li>
<li>The old-style binary profile format is no longer suppported, use<br>
the new JSON trace profile instead.</li>
</ul>
<p>Important changes:</p>
<ul>
<li>Improve the performance of creating a sandboxed execution root<br>
for workers when the number of inputs is large (>1000).</li>
<li>Treat .cu and .cl files as C++ source. CUDA or OpenCL are not<br>
natively supported and will require custom flags to compile with<br>
e.g. clang.</li>
<li>Add actions' primary output details in JSON profile and<br>
analysis_v2.proto.</li>
<li>Add --cds_archive option for embedding CDS archive into deploy<br>
JAR.</li>
<li>Add new global attribute: applicable_licenses
<ul>
<li>Package level default with default_applicable_licenses</li>
<li>guarded by --incompatible_applicable_licenses (default true for<br>
Blaze, false for Bazel)</li>
<li>In support of<br>
<a href="https://docs.google.com/document/d/1uwBuhAoBNrw8tmFs-NxlssI6VRolid" rel="nofollow">https://docs.google.com/document/d/1uwBuhAoBNrw8tmFs-NxlssI6VRolid</a><br>
GYdYqagLqHWt8/edit#</li>
</ul>
</li>
<li>Non-test Java rules no longer require the TestConfiguration and<br>
thus --trim_test_configuration is again usable for Java builds</li>
<li>The flag <code>--incompatible_always_check_depset_elements</code> is enabled<br>
by default.</li>
<li>--incompatible_objc_compile_info_migration determines<br>
whether native rules can assume compile info has been migrated to<br>
CcInfo. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="570233468" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/10854" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/10854/hovercard" href="https://github.com/bazelbuild/bazel/issues/10854">bazelbuild#10854</a>.</li>
<li>--incompatible_remove_local_resources is true by default. Please<br>
use --local_ram_resources and --local_cpu_resources instead of<br>
--local_resources.</li>
</ul>
<p>This release contains contributions from many people at Google, as well as Alessandro Patti, Benjamin Peterson, Christy Norman, Dave hughes, David Haxton, David Neil, garyschulte, George Chiramel, George Gensure, Gibson Fahnestock, Greg Estren, Greg, Jason Hoch, Jin, John Millikin, Jonathan Springer, Keith Smiley, Laurent Le Brun, Ulf Adams, Yannic Bonenberger, Yannic, Yihong Wang, Yuchen Dai.</p>a-googlertag:github.com,2008:Repository/288780608/2.2.02020-03-03T09:22:29ZRelease 2.2.0 (2020-03-03)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/78055efad0917b848078bf8d97b3adfddf91128d/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/78055efad0917b848078bf8d97b3adfddf91128d"><tt>78055ef</tt></a></p>
<p>Incompatible changes:</p>
<ul>
<li>The --[no]incompatible_windows_bashless_run_command flag is no<br>
longer supported. It was flipped in Bazel 1.0</li>
<li>The --[no]incompatible_windows_native_test_wrapper flag is no<br>
longer supported. It was flipped in Bazel 1.0</li>
</ul>
<p>Important changes:</p>
<ul>
<li>Consistent target naming style in example target names.</li>
<li>cquery's config() now supports arbitrary configurations.</li>
<li>The flag --incompatible_disallow_dict_lookup_unhashable_keys is<br>
removed.</li>
<li>Include target label in Python version error message.</li>
<li>The flag --incompatible_remap_main_repo is removed.</li>
<li>Windows: we now discourage running Bazel from MSYS2 because of a<br>
newly found bug (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="549159359" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/10573" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/10573/hovercard" href="https://github.com/bazelbuild/bazel/issues/10573">bazelbuild#10573</a>)</li>
<li>Reduced the packaging time (<code>package-bazel.sh</code>) for the<br>
<code>//src:bazel-dev</code> Bazel development build target from 14s to 6s.<br>
Use <code>//src:bazel-dev</code> if you're iterating rapidly on a local<br>
Bazel changes, and use <code>//src:bazel --compilation_mode=opt</code> for<br>
release builds.</li>
<li>cquery: "//foo:bar" now means "all configured targets with label<br>
//foo:bar" instead of "choose an arbitrary configured target with<br>
label //foo:bar". See cquery docs for details.</li>
<li>WORKSPACE and BUILD.bazel files of http_archive repositories can<br>
now be patched using the "patch_cmds" and "patches" attributes.</li>
<li>Actions with "parse" on the critical path should no longer finish<br>
in the future.</li>
<li>Flags that affect external repositories like<br>
"--override_repository" can now be addressed in bazelrc files<br>
using the "common" command, without causing commands like "bazel<br>
shutdown" to fail.</li>
<li>The flag --incompatible_disallow_unverified_http_downloads is<br>
removed.</li>
<li>Create the incompatibleApplicableLicenses flag.<br>
We plan to flip this from false to true in Bazel 4.x.<br>
Implementation to follow.</li>
<li>Treat .cu and .cl files as C++ source. CUDA or OpenCL are not<br>
natively supported and will require custom flags to compile with<br>
e.g. clang.</li>
<li>Treat .cu and .cl files as C++ source. CUDA or OpenCL are not<br>
natively supported and will require custom flags to compile with<br>
e.g. clang.</li>
<li>The --starlark_cpu_profile= flag writes a profile in<br>
pprof format containing a statistical summary of CPU usage<br>
by all Starlark execution during the bazel command. Use it<br>
to identify slow Starlark functions in loading and analysis.</li>
<li>--ram_utilization_factor will be deprecated. Please use<br>
--local_ram_resources=HOST_RAM*</li>
<li>Docs: glob() documentation is rewritten, and now it points out a<br>
pitfall of rules shadowing glob-matched files.</li>
</ul>
<p>This release contains contributions from many people at Google, as well as Alessandro Patti, Alex Kirchhoff, aman, Artur Dryomov, Benjamin Peterson, Benjamin Peterson, David Ostrovsky, Elliotte Rusty Harold, Eric Klein, George Chiramel, George Gensure, Guillaume Bouchard, Hui-Zhi, John Millikin, Jonathan Springer, Laurent Le Brun, Michael McLoughlin, nikola-sh, Nikolaus Wittenstein, Nikolay Shelukhin, Yannic Bonenberger, Yannic.</p>a-googlertag:github.com,2008:Repository/288780608/2.1.12020-02-21T14:51:30ZRelease 2.1.1 (2020-02-21)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/41ec5a28fb30a8d6c5c60194c4bb29528352cf78/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/41ec5a28fb30a8d6c5c60194c4bb29528352cf78"><tt>41ec5a2</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/733ac0ff7ad1e13ab68ceb2fde694d7ab71b2366/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/733ac0ff7ad1e13ab68ceb2fde694d7ab71b2366"><tt>733ac0f</tt></a>:<br>
Adds an alias for d8_jar_import in android.WORKSPACE.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/c94b1474b368dedf9f68f34fad90cc8664f2b0e0/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/c94b1474b368dedf9f68f34fad90cc8664f2b0e0"><tt>c94b147</tt></a>:<br>
Automatic code cleanup.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/2a8cc7075f741721563efd9dc050ca3458cde30b/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/2a8cc7075f741721563efd9dc050ca3458cde30b"><tt>2a8cc70</tt></a>:<br>
Do not fail or print errors when Shellzelisk cannot find a<br>
requested ?</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/bdf34d7fd9539411e93348ba25307f34362d9a42/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/bdf34d7fd9539411e93348ba25307f34362d9a42"><tt>bdf34d7</tt></a>:<br>
Fix race when extracting the install base when Bazel runs in a<br>
PID namespace.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/d381c25bb7dd205c283f7ad91cac13190d2dfede/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/d381c25bb7dd205c283f7ad91cac13190d2dfede"><tt>d381c25</tt></a>:<br>
Fix wrong mode of install base directory.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/eab39cc7b5a612f891fd1e5af5b45bdc1b66e6e1/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/eab39cc7b5a612f891fd1e5af5b45bdc1b66e6e1"><tt>eab39cc</tt></a>:<br>
Disable broken test_max_open_file_descriptors.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/e6ee35faaa351a77e6fa667a74ed195e3d1927bf/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/e6ee35faaa351a77e6fa667a74ed195e3d1927bf"><tt>e6ee35f</tt></a>:<br>
Release 2.1.0 (2020-02-07)</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221"><tt>9a823d9</tt></a>:<br>
Prevent NPE on backwards seek on Chunker</li>
</ul>
<p><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221"><tt>9a823d9</tt></a>: Prevent NPE on backwards seek on Chunker.</p>
<p>This release contains contributions from many people at Google, as well as George Gensure.</p>a-googlertag:github.com,2008:Repository/288780608/2.0.12020-02-21T14:49:27ZRelease 2.0.1 (2020-02-21)<p>Baseline: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/db0e32ca6296e56e5314993fe9939bc7331768ec/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/db0e32ca6296e56e5314993fe9939bc7331768ec"><tt>db0e32c</tt></a></p>
<p>Cherry picks:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/85e84f7812f04bc0dbc36376f31b6dd2d229b905/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/85e84f7812f04bc0dbc36376f31b6dd2d229b905"><tt>85e84f7</tt></a>:<br>
Set --incompatible_prohibit_aapt1 default to true.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/84eae2ff550c433a3d0409cf2b5525059939439d/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/84eae2ff550c433a3d0409cf2b5525059939439d"><tt>84eae2f</tt></a>:<br>
Let shellzelisk fallback to bazel-real if it's the requested<br>
version.</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/d5ae460f1581ddf27514b4be18255481b47b4075/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/d5ae460f1581ddf27514b4be18255481b47b4075"><tt>d5ae460</tt></a>:<br>
Fix a typo in bazel.sh</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/59e360001031126d87beb5089838aa7385f66bdb/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/59e360001031126d87beb5089838aa7385f66bdb"><tt>59e3600</tt></a>:<br>
Release 2.0.0 (2019-12-19)</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221"><tt>9a823d9</tt></a>:<br>
Prevent NPE on backwards seek on Chunker</li>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/2a8cc7075f741721563efd9dc050ca3458cde30b/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/2a8cc7075f741721563efd9dc050ca3458cde30b"><tt>2a8cc70</tt></a>:<br>
Do not fail or print errors when Shellzelisk cannot find a<br>
requested ?</li>
</ul>
<p><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/9a823d9dab82631ff4600eff38d597807e8d1221"><tt>9a823d9</tt></a>: Prevent NPE on backwards seek on Chunker.<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/crawfordsolutions/bazel/commit/2a8cc7075f741721563efd9dc050ca3458cde30b/hovercard" href="https://github.com/crawfordsolutions/bazel/commit/2a8cc7075f741721563efd9dc050ca3458cde30b"><tt>2a8cc70</tt></a>: Do not fail or print errors when Shellzelisk cannot find a requested Bazel binary, if tools/bazel exists.</p>
<p>This release contains contributions from many people at Google, as well as George Gensure.</p>a-googler