blob: a9e1f7deab5e79b99728a47907a20e7e490df22d [file] [log] [blame] [view]
Bazel Release Systemd917bf22020-07-14 08:24:10 +02001## Release 3.4.1 (2020-07-14)
2
3```
4Baseline: 7404d17ac76da876ae0b432d1fccf222a9e991fe
5
6Cherry picks:
7
8 + f31f2d787116120b2b16e9aa9a64fab171c0d954:
9 fixup! Gracefully handle the lack of subreaper support in Linux.
10 + 3a4f221e3c57495c1ed0d1ec8128f92323b13079:
11 Revert "Replace the remaining dependencies for Bazel Debian
12 build (third_party)"
13 + c55ec0f2cb3f5b44e5025bf9d3c5dc91d94db287:
14 Revert "Upgrade gRPC to 1.26.0"
15```
16
17This release contains contributions from many people at Google, as well as Ryan Beasley.
18
Bazel Release System93262a52020-07-13 17:23:50 +020019## Release 3.4.0 (2020-07-13)
20
21```
22Baseline: 7404d17ac76da876ae0b432d1fccf222a9e991fe
23
24Cherry picks:
25
26 + a4334be50a206bf8d676a0196af11056c48ac35b:
27 fixup! Gracefully handle the lack of subreaper support in Linux.
28```
29
30Incompatible changes:
31
32 - This removes the short-lived --process_wrapper_extra_flags
33 flag, which was introduced primarily to roll out a bug fix.
34 Unfortunately,
35 this made us inadvertently expose all of the process-wrapper's
36 command line
37 interface to the public, which should not have happened. Given
38 the corner
39 case of the utility of this flag, the lack of documentation for
40 it, and the
41 fact that it only appeared in a single release, we are treating
42 this as a
43 bug instead of a backwards compatibility breakage.
44
45New features:
46
47 - bazel info: Allow to specify multiple keys.
48 - Support code coverage with GCC 9.
49
50Important changes:
51
52 - Allow InstrumentedFilesInfo fields to be read from Starlark.
53 - The --starlark_cpu_profile=<file> flag writes a profile in
54 pprof format containing a statistical summary of CPU usage
55 by all Starlark execution during the bazel command. Use it
56 to identify slow Starlark functions in loading and analysis.
57 - The --debug_depset_flag has been removed as it is in effect
58 always on at no cost.
59 - Rule authors should use the
60 incompatible_use_toolchain_transition rule attribute to migrate
61 to using
62 the toolchain transition. jcater to udpate notes further.
63 - `apple_binary` rules now accept the `stamp` attribute with the
64 same
65 semantics that it has in `cc_binary` rules.
66 - --incompatible_objc_provider_remove_compile_info turns off
67 the compile info/mege_zip Starlark APIs in ObjcProvider. See
68 #11359.
69 - The --debug_depset_flag has been removed as it is in effect
70 always on at no cost.
71 - Fix behavior of ctx.actions.write so content is written without
72 an incorrect encoding to UTF-8.
73 See https://github.com/bazelbuild/bazel/issues/10174 for details.
74 - Collect more performance metrics for worker execution.
75 - Add flag --incompatible_force_strict_header_check_from_starlark
76 - Configure coverage and runfiles for sh_library.
77 - Adds --incompatible_blacklisted_protos_requires_proto_info to
78 indicate whether proto_lang_toolchain.blacklisted_protos requires
79 ProtoInfo.
80
81This 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.
82
Bazel Release System97a53342020-06-30 11:05:57 -040083## Release 3.3.1 (2020-06-30)
84
85```
86Baseline: c063b5caf776dee665497b64c5c17d4ed7e6750a
87
88Cherry picks:
89
90 + cb798a475eb54087e1e83f8aa1dc1c54550877b5:
91 Restore missing Building with Platforms docs.
92 + 9be97678b02bbd45d164c8458c8fd4f7791cb7aa:
93 Release 3.3.0 (2020-06-17)
94 + 3b0439e37247a480e08337a6314d06231bdbafd3:
95 Fix incorrect assumption of desugar persistent worker conditional
96```
97
98This release contains contributions from many people at Google, as well as .
99
Bazel Release System9be97672020-06-17 08:51:54 -0400100## Release 3.3.0 (2020-06-17)
101
102```
103Baseline: c063b5caf776dee665497b64c5c17d4ed7e6750a
104
105Cherry picks:
106
107 + 23bd69d7499de097b15e6025cc0796bdbc9886b8:
108 Restore missing Building with Platforms docs.
109```
110
111Incompatible changes:
112
113 - The startup option --fatal_event_bus_exceptions is now a no-op
114 and will be removed soon.
115
116New features:
117
118 - Bazel offers basic completion for the fish shell.
119
120Important changes:
121
122 - Add configuration_field for --custom_malloc to cpp config fragment
123 - Flip --incompatible_objc_compile_info_migration to true. See
124 #10854.
125 - It is now possible to use different action mnemonics while still
126 sharing the same pool of persistent workers. It requires setting
127 a new property
128 on the execution requirements (`worker-key-mnemonic`). The value
129 overrides
130 the action's mnemonic when it comes to reusing worker processes.
131 - linkshared=1 in cc_binary no longer requires '.so' or '.dll' in
132 the target name
133 - Revert --incompatible_objc_compile_info_migration to false. See
134 #10854.
135 - Invoke clang with the correct -target flag when building for
136 watchOS.
137 - NA
138 - Add experiment flag to forward InstrumentedFilesInfo from
139 non-tool deps by default.
140
141This 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.
142
Bazel Release Systemb0ba5dc2020-05-27 19:50:27 +0200143## Release 3.2.0 (2020-05-27)
144
145```
146Baseline: 1d93d26d9900328dcba0026bf21cb45cc37a4596
147```
148
149Important changes:
150
151 - Renamed --experimental_slim_json_profile to --slim_profile.
152 - Expose ctx.attr.write Args content for analysistest when possible
153 - Added aquery_differ_v2 that works with the new aquery proto
154 output format.
155 - Add new flag, 'experimental_no_product_name_out_symlink', to omit
156 creating '<product>-out' symlink if user specifies
157 '--symlink_prefix' option.
158 - --ram_utilization_factor is removed (as is
159 --incompatible_remove_ram_utilization_factor). Please use
160 --local_ram_resources.
161 - Improve include scanner support for cl.exe and clang-cl command
162 lines
163 - ctx.split_attr now includes attributes with Starlark split
164 transitions.
165 - Added --incompatible_string_replace_count, to make
166 string.replace() behave as in Python.
167 - Bazel can now recursively delete non-executable but readable
168 directories.
169 - Restore case-sensitivity to -I and /I include scanning detection
170 to avoid conflicts.
171
172This 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.
173
Bazel Release System3a59ab62020-04-21 17:37:54 +0200174## Release 3.1.0 (2020-04-21)
175
176```
177Baseline: 17ebbf15bea3733c0c21e0376fb5906e391edb49
178
179Cherry picks:
180
181 + 71fb56b4bb669a419f473598c8722e125dbb5c9e:
182 Suppress last-ditch download exceptions w/cleanup
183 + fd60614c38da0db22431d91a793423904dff801f:
184 In repo rules, don't warn about generator_* attributes being
185 non-canonical
186 + 2a372792f5cc09bd0e8389d5fc4bbfdd2f5d6e37:
187 Refactor configureFeatures and prevent NPE
188 + 777a6ee6ed95cae4ddb949d52b63ee8a66024f03:
189 Automated rollback of commit
190 0bbe38176e15d891a4e4cab2d8425e292de6cc5f.
191 + 2ee53c9267eb6de8eae109950ca8f3953bf1ae66:
192 Guard parseActionResultMetadata with bulk wrapper
193```
194
195Incompatible changes:
196
197 - The deprecated startup options
198 --experimental_oom_more_eagerly(_threshold) are removed.
199
200Important changes:
201
202 - Remove flag
203 --incompatible_load_proto_toolchain_for_javalite_from_com_google_p
204 rotobuf which has been flipped in Bazel 3.0.
205 - Allow assembly file sources in cc_common.compile.
206 - Set default .netrc file on Windows to %USERPROFILE%
207 - A maximum 150 attributes per RuleClass is enforced
208 - Increase max targets per rule class limit to 200
209 - ctx.split_attr now includes attributes with Starlark split
210 transitions.
211 - The --max_computation_steps flag bounds the computation done by a
212 BUILD file.
213 - Native patch can handle file permission properly
214 - Aspects may now propagate through dependencies on rule outputs by
215 being defined with `apply_to_generating_rules = True`.
216 - 'query --output=build' now shows where rule classes (not just
217 rules) are created.
218 - The flag `incompatible_bzl_disallow_load_after_statement` is
219 removed.
220 - ctx.split_attr now includes attributes with Starlark split
221 transitions.
222 - The flag `incompatible_no_output_attr_default` is removed.
223 - Fix wall-time of the SpawnResult in WorkerSpawnRunner
224 - Add stamp parameter for cc_common.link to enable including build
225 info
226 - The flag `--incompatible_restrict_named_params` is removed.
227 - The flag `--incompatible_depset_union` is removed.
228 - Bazel uses fewer compiler flags by default when building
229 Objective-C. In
230 particular, Bazel no longer sets `-O0`, `-DDEBUG=1`,
231 `-fstack-protector`, `-fstack-protector-all`, or `-g` in dbg
232 mode, and
233 Bazel no longer sets `-Os`, `-DNDEBUG=1`, `-Wno-unused-variable`,
234 `-Winit-self`, or `-Wno-extra` in opt mode. If you want to apply
235 these
236 flags to your project, you can reenable them in your CROSSTOOL.
237 - A maximum attribute name length is 128 is enforced
238
239This 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.
240
Bazel Release System22018272020-04-06 08:49:47 -0400241## Release 3.0.0 (2020-04-06)
242
243```
244Baseline: 3c7cc747ac653dca8b88a9e43726a794e2c27a9c
245
246Cherry picks:
247
248 + 19e214b44df9c82a8a3bd3381344f7145813c572:
249 Use prefix encoding for paths.
250 + 63b01f7b1cd6603a08bf2a8ae813388c201e3448:
251 Avoid file operations in the sandbox creation critical path.
252 + 80a2d7cc5f8a22816934dcd2ca9bdf87050f3d9f:
253 Implementation (but not plumbing) of the gRPC remote downloader
254 + 586eabf419972c74fdd5fef328cfe9a259e035ed:
255 Implement RemoteDownloader w/ `--experimental_remote_downloader`
256```
257
258Incompatible changes:
259
260 - Flip --incompatible_remove_enabled_toolchain_types, so that rules
261 can no longer access enabled toolchain types from the platform
262 fragment.
263 - The --incompatible_use_jdk11_as_host_javabase flag has been
264 removed (it was flipped in Bazel 0.25.0).
265 - Using JDK 9 or 10 as a `--host_javabase` is no longer officially
266 supported. As always, you can use the
267 `@bazel_tools//tools/jdk:toolchain_vanilla` Java toolchain to use
268 older or newer JDKs than what Bazel currently supports.
269 - --fatal_event_bus_exceptions is deprecated and should not be
270 used. Any crashes should be reported so that they can be fixed.
271 - The old-style binary profile format is no longer suppported, use
272 the new JSON trace profile instead.
273
274Important changes:
275
276 - Improve the performance of creating a sandboxed execution root
277 for workers when the number of inputs is large (>1000).
278 - Treat .cu and .cl files as C++ source. CUDA or OpenCL are not
279 natively supported and will require custom flags to compile with
280 e.g. clang.
281 - Add actions' primary output details in JSON profile and
282 analysis_v2.proto.
283 - Add --cds_archive option for embedding CDS archive into deploy
284 JAR.
285 - Add new global attribute: applicable_licenses
286 - Package level default with default_applicable_licenses
287 - guarded by --incompatible_applicable_licenses (default true for
288 Blaze, false for Bazel)
289 - In support of
290 https://docs.google.com/document/d/1uwBuhAoBNrw8tmFs-NxlssI6VRolid
291 GYdYqagLqHWt8/edit#
292 - Non-test Java rules no longer require the TestConfiguration and
293 thus --trim_test_configuration is again usable for Java builds
294 - The flag `--incompatible_always_check_depset_elements` is enabled
295 by default.
296 - --incompatible_objc_compile_info_migration determines
297 whether native rules can assume compile info has been migrated to
298 CcInfo. See https://github.com/bazelbuild/bazel/issues/10854.
299 - --incompatible_remove_local_resources is true by default. Please
300 use --local_ram_resources and --local_cpu_resources instead of
301 --local_resources.
302
303This 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.
304
Bazel Release System4b01eb52020-03-03 10:22:31 +0100305## Release 2.2.0 (2020-03-03)
Bazel Release Systeme53c0282020-02-21 15:49:31 +0100306
307```
Bazel Release System4b01eb52020-03-03 10:22:31 +0100308Baseline: 78055efad0917b848078bf8d97b3adfddf91128d
Bazel Release Systeme53c0282020-02-21 15:49:31 +0100309```
310
Bazel Release System4b01eb52020-03-03 10:22:31 +0100311Incompatible changes:
Bazel Release Systeme53c0282020-02-21 15:49:31 +0100312
Bazel Release System4b01eb52020-03-03 10:22:31 +0100313 - The --[no]incompatible_windows_bashless_run_command flag is no
314 longer supported. It was flipped in Bazel 1.0
315 - The --[no]incompatible_windows_native_test_wrapper flag is no
316 longer supported. It was flipped in Bazel 1.0
317
318Important changes:
319
320 - Consistent target naming style in example target names.
321 - cquery's config() now supports arbitrary configurations.
322 - The flag --incompatible_disallow_dict_lookup_unhashable_keys is
323 removed.
324 - Include target label in Python version error message.
325 - The flag --incompatible_remap_main_repo is removed.
326 - Windows: we now discourage running Bazel from MSYS2 because of a
327 newly found bug (#10573)
328 - Reduced the packaging time (`package-bazel.sh`) for the
329 `//src:bazel-dev` Bazel development build target from 14s to 6s.
330 Use `//src:bazel-dev` if you're iterating rapidly on a local
331 Bazel changes, and use `//src:bazel --compilation_mode=opt` for
332 release builds.
333 - cquery: "//foo:bar" now means "all configured targets with label
334 //foo:bar" instead of "choose an arbitrary configured target with
335 label //foo:bar". See cquery docs for details.
336 - WORKSPACE and BUILD.bazel files of http_archive repositories can
337 now be patched using the "patch_cmds" and "patches" attributes.
338 - Actions with "parse" on the critical path should no longer finish
339 in the future.
340 - Flags that affect external repositories like
341 "--override_repository" can now be addressed in bazelrc files
342 using the "common" command, without causing commands like "bazel
343 shutdown" to fail.
344 - The flag --incompatible_disallow_unverified_http_downloads is
345 removed.
346 - Create the incompatibleApplicableLicenses flag.
347 We plan to flip this from false to true in Bazel 4.x.
348 Implementation to follow.
349 - Treat .cu and .cl files as C++ source. CUDA or OpenCL are not
350 natively supported and will require custom flags to compile with
351 e.g. clang.
352 - Treat .cu and .cl files as C++ source. CUDA or OpenCL are not
353 natively supported and will require custom flags to compile with
354 e.g. clang.
355 - The --starlark_cpu_profile=<file> flag writes a profile in
356 pprof format containing a statistical summary of CPU usage
357 by all Starlark execution during the bazel command. Use it
358 to identify slow Starlark functions in loading and analysis.
359 - --ram_utilization_factor will be deprecated. Please use
360 --local_ram_resources=HOST_RAM*<float>
361 - Docs: glob() documentation is rewritten, and now it points out a
362 pitfall of rules shadowing glob-matched files.
363
364This 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.
Bazel Release Systeme53c0282020-02-21 15:49:31 +0100365
Bazel Release Systeme6ee35f2020-02-07 13:56:14 +0100366## Release 2.1.0 (2020-02-07)
367
368```
369Baseline: 41ec5a28fb30a8d6c5c60194c4bb29528352cf78
370
371Cherry picks:
372
373 + 733ac0ff7ad1e13ab68ceb2fde694d7ab71b2366:
374 Adds an alias for d8_jar_import in android.WORKSPACE.
375 + c94b1474b368dedf9f68f34fad90cc8664f2b0e0:
376 Automatic code cleanup.
377 + 2a8cc7075f741721563efd9dc050ca3458cde30b:
378 Do not fail or print errors when Shellzelisk cannot find a
379 requested ?
380 + bdf34d7fd9539411e93348ba25307f34362d9a42:
381 Fix race when extracting the install base when Bazel runs in a
382 PID namespace.
383 + d381c25bb7dd205c283f7ad91cac13190d2dfede:
384 Fix wrong mode of install base directory.
385 + eab39cc7b5a612f891fd1e5af5b45bdc1b66e6e1:
386 Disable broken test_max_open_file_descriptors.
387```
388
389Incompatible changes:
390
391 - The following attributes of CcToolchainProvider, which formerly
392 were
393 accessible both as fields (x.f) and as methods (x.f()), are now
394 only fields:
395
396New features:
397
398 - Similar to the
399 [.bazelignore](https://docs.bazel.build/versions/master/guide.html
400 #.bazelignore) in the main repository, a `.bazelignore` file in
401 external repository will cause the specified directories to be
402 ignored by Bazel. Bazel won't try to identify any packages under
403 the directories, but the files can still be referenced in other
404 BUILD files.
405 - bazelignore files now support line comments, e.g. "# this is a
406 comment"
407
408Important changes:
409
410 - Experimental support for d8 merger is now available for use using
411 --define=android_dexmerger_tool=d8_dexmerger.
412 - Critical path run time should not have a longer run time than
413 total execution run time.
414 - Remove "please do not import" warning for cc rules.
415 - x.f() is now equivalent to y=x.f; y(). That is, x.f should return
416 the same
417 attribute value regardless of whether it is accessed as a field
418 or called
419 like a method. Any arguments to the call are evaluated after the
420 x.f operation.
421 - Add desugaring support for RoleManager#addRoleHolderAsUser
422 - Adds ctx.target_platform_has_constraint to allow rules to check
423 the target platform's constraints.
424 - Critical path run time should not have a longer run time than
425 total execution run time.
426 - Post new ConvenienceSymlinksIdentifiedEvent to the
427 BuildEventProtocol when
428 --experimental_convenience_symlinks_bep_event is enabled.
429 - Keyword-only arguments are now allowed:
430 def foo(a, *, k): pass
431 def foo(a, *b, k): pass
432 where k can be specified only by keyword:
433 foo(5, k=6)
434 - Generated Go protobufs now depend on //net/proto2/go:protodeps in
435 addition to //net/proto2/go:proto
436 - cquery 'somepath' returns more reliable results when the
437 dep has a different configuration than the parent. To get a
438 result for
439 `somepath(//foo, //bar`) where //bar isn't in the top-level
440 configuration,
441 run your query with `--universe_scope=//foo`. See cquery docs for
442 details.
443
444This release contains contributions from many people at Google, as well as Adam Liddell, Alessandro Patti, Andreas Herrmann, Bor Kae Hwang, Brian Silverman, Emran BatmanGhelich, George Gensure, Greg Estren, Jeff Palm, Jonathan Beverly, Mark Nevill, Patrick Niklaus, Peter, Philipp Wollermann, Ryan Beasley, Shin Yamamoto, Yen-Chi Chen.
445
Bazel Release System59e36002019-12-19 13:26:27 +0100446## Release 2.0.0 (2019-12-19)
447
448```
449Baseline: 807ed23e4f53a5e008ec823e9c23e2c9baa36d0d
450
451Cherry picks:
452
453 + db0e32ca6296e56e5314993fe9939bc7331768ec:
454 build.sh: Fix bug in build script for RC release
455 + 85e84f7812f04bc0dbc36376f31b6dd2d229b905:
456 Set --incompatible_prohibit_aapt1 default to true.
457 + 84eae2ff550c433a3d0409cf2b5525059939439d:
458 Let shellzelisk fallback to bazel-real if it's the requested
459 version.
460 + d5ae460f1581ddf27514b4be18255481b47b4075:
461 Fix a typo in bazel.sh
462```
463
464Incompatible changes:
465
466 - --incompatible_remap_main_repo is enabled by default. Therefore,
467 both ways of addressing the main repository, by its name and by
468 '@' are now considered referring to the same repository.
469 see https://github.com/bazelbuild/bazel/issues/7130
470 - --incompatible_disallow_dict_lookup_unhashable_keys is enabled by
471 default https://github.com/bazelbuild/bazel/issues/9184
472 - --incompatible_remove_native_maven_jar is now enabled by default
473 and the flag removed. See https://github.com/bazelbuild/bazel/issues/6799
474 - --incompatible_prohibit_aapt1 is enabled by default.
475 See https://github.com/bazelbuild/bazel/issues/10000
476
477Important changes:
478
479 - --incompatible_proto_output_v2: proto v2 for aquery proto output
480 formats, which reduces the output size compared to v1. Note that
481 the messages' ids in v2 are in uint64 instead of string like in
482 v1.
483 - Adds --incompatible_remove_enabled_toolchain_types.
484 - Package loading now consistently fails if package loading had a
485 glob evaluation that encountered a symlink cycle or symlink
486 infinite expansion. Previously, such package loading with such
487 glob evaluations would fail only in some cases.
488 - The --disk_cache flag can now also be used together
489 with the gRPC remote cache.
490 - An action's discover inputs runtime metrics is now categorized as
491 parse time on the CriticalPathComponent.
492 - Make the formatting example more like to the written text by
493 adding an initial description.
494 - An action's discover inputs runtime metrics is now categorized as
495 parse time on the CriticalPathComponent.
496 - Bazel's Debian package and the binary installer now include an
497 improved wrapper that understands `<WORKSPACE>/.bazelversion`
498 files and the `$USE_BAZEL_VERSION` environment variable. This is
499 similar to what Bazelisk offers
500 (https://github.com/bazelbuild/bazelisk#how-does-bazelisk-know-whi
501 ch-bazel-version-to-run-and-where-to-get-it-from), except that it
502 works offline and integrates with apt-get.
503 - We are planning to deprecate the runfiles manifest files, which
504 aren't safe in the presence of whitespace, and also unnecessarily
505 require local CPU when remote execution is used. This release
506 adds --experimental_skip_runfiles_manifests to disable the
507 generation of the input manifests (rule.manifest files) in most
508 cases. Note that this flag has no effect on Windows by default or
509 if --experimental_enable_runfiles is explicitly set to false.
510
511This release contains contributions from many people at Google, as well as aldersondrive, Benjamin Peterson, Bor Kae Hwang, David Ostrovsky, Jakob Buchgraber, Jin, John Millikin, Keith Smiley, Lauri Peltonen, nikola-sh, Peter Mounce, Tony Hsu.
512
Bazel Release System5be24a82019-11-26 16:19:50 +0100513## Release 1.2.1 (2019-11-26)
514
515```
516Baseline: 11deef7582dfeec7a04ee3f7236393d9b8027367
517
518Cherry picks:
519
520 + c76c3e539c73ecf6e96e3e098be7be59e17bf276:
521 Replace macOS CC path with relative path
522 + 63332eb556fadfe9edd0806add79942482adddef:
523 Hardcode path to dirname on macOS
524 + ceadf0a063cb97c32aced143d2447781d1dafc38:
525 Add tool executables (from FilesToRunProvider) to action inputs.
526 + dbe63b00954a25fa4405f7cbf273df78c16498dd:
527 Fix some of the bazel Windows tools code to work with GCC.
528```
529
530This release fixes a single regression:
531- #10297: Bazel 1.2.0 does no longer run on macOS High Sierra.
532
533It is the same code as Bazel 1.2.0, except that we rebuild the macOS release
534binaries with Xcode 10.2.1 to make them backwards compatible with older macOS
535versions again.
536
Bazel Release Systemef69db82019-11-20 16:01:18 +0100537## Release 1.2.0 (2019-11-20)
538
539```
540Baseline: 11deef7582dfeec7a04ee3f7236393d9b8027367
541
542Cherry picks:
543
544 + c76c3e539c73ecf6e96e3e098be7be59e17bf276:
545 Replace macOS CC path with relative path
546 + 63332eb556fadfe9edd0806add79942482adddef:
547 Hardcode path to dirname on macOS
548 + ceadf0a063cb97c32aced143d2447781d1dafc38:
549 Add tool executables (from FilesToRunProvider) to action inputs.
550 + dbe63b00954a25fa4405f7cbf273df78c16498dd:
551 Fix some of the bazel Windows tools code to work with GCC.
552```
553
554Incompatible changes:
555
556 - Tree artifacts and regular artifact paths can no longer overlap.
557
558New features:
559
560 - Added a special "_validation" output group to enable moving
561 "validation actions" off the critical path of builds.
562
563Important changes:
564
565 - The query flag "--host_deps" (commonly used as "--nohost_deps")
566 has been renamed to "--tool_deps", and now also removes
567 dependencies in any execution configuration from being reported
568 in the query output. The previous flag name is deprecated and
569 will be removed in a future release.
570 - The `cc_common.{compile,link}` APIs can now be used without
571 passing the `--experimental_cc_skylark_api_enabled_packages` flag.
572 - A list of log paths will be provided in build output.
573 - Improve runfiles documentation.
574 - Improve documentation on rule outputs.
575 - BUILD/.bzl execution errors cause execution to stop, even at
576 top-level
577 - Multiple Starlark validation errors are reported in a single pass.
578 - Introduce --experimental_nested_set_as_skykey_threshold
579 - Blaze will prevent idle sleep during test and build actions. Note
580 that this does not affect screen savers and will not keep a
581 laptop awake if the user forces sleep or closes the lid. This is
582 purely to avoid idle sleeping when the user is not interacting
583 with the device.
584 - Improve testing docs.
585 - Incompatible flag
586 `--incompatible_validate_top_level_header_inclusions` has been
587 added. See https://github.com/bazelbuild/bazel/issues/10047 for
588 details.
589 - Fix an aquery bug with handling malformed queries that crashes
590 bazel.
591 - List fields on CcLinkingOutputs.
592 - [Python] Added flag --incomaptible_default_to_explicit_init_py to
593 switch the default value of legacy_create_init to True. With this
594 flag enabled, your py_binary and py_test targets will no longer
595 behave as if empty __init__.py files were implicitly littered in
596 your runfiles tree. See
597 [#10076](https://github.com/bazelbuild/bazel/issues/10076).
598 - Fix documentation on allowed target names.
599 - --target_platform_fallback now also applies to exec/host
600 configurations
601 - android_binary and android_libary can now depend on targets
602 providing
603 CcInfos.
604 - Add support for tracking suspensions (sleeps or SIGSTOP) on macOS.
605 - d8 dexers (both standalone and incremental) are now available for
606 use.
607 - Add Desugar support for FreezePeriod#<init>
608
609This release contains contributions from many people at Google, as well as Alex Kirchhoff, Andrew Suffield, Asaf Flescher, Austin Schuh, Benjamin Peterson, Bor Kae Hwang, Brian Richardson, Christy Norman, Clint Harrison, Dan Halperin, Daniel Martn, Dave Lee, David Neil, David Ostrovsky, George Gensure, Greg Estren, Greg, Ira Shikhman, Jacob Parker, Jakub Bujny, John Millikin, John Millikin, Keith Smiley, Laurent Le Brun, marcohu, Marwan Tammam, Mostyn Bramley-Moore, Peter Mounce, Ruben Das, Stepan Koltsov, Thi Don, Thi, Tomasz Strejczek, Walt Panfil, Yannic Bonenberger, Zackary Lowery.
610
Bazel Release Systemf15bfb32019-10-21 12:49:43 +0200611## Release 1.0.1 (2019-10-21)
Bazel Release Systeme693c192019-10-21 10:40:19 +0200612
613```
Bazel Release Systemf15bfb32019-10-21 12:49:43 +0200614Baseline: 97a82646dadd93bf52d47828bda42e3383b657c6
Bazel Release Systeme693c192019-10-21 10:40:19 +0200615
616Cherry picks:
617
Bazel Release Systemf15bfb32019-10-21 12:49:43 +0200618 + a0e3bb207fe2044120a2555a37162ee1f2b17500:
619 Remove support for authentication and .netrc
620 + ada2c55dcc106cd55bafbbe5d9a966e21e4770e0:
621 Add explicit --sdk argument to xcrun calls
622 + 847df729528f6e5919ec8374247eadf792cba544:
623 toolchain_vanilla: Unset source and target language level
624 versions
625 + 5cfa0303d6ac3b5bd031ff60272ce80a704af8c2:
626 Update java_tools version to javac11-v5.1.
627 + 9c257df5b9b1de5459fc066e77c435ae085957a7:
628 Release 1.0.0 (2019-10-10)
629 + f7a31b30f5319639c36a6c6b1c14f358597d98d2:
630 Prevent action-cache duplicate suppression
631 + 618e5a28f7f735c37724377b15775a4975349c74:
632 Use FileSystemUtils.moveFile instead of renameTo function of Path
Bazel Release Systeme693c192019-10-21 10:40:19 +0200633```
634
Bazel Release Systemf15bfb32019-10-21 12:49:43 +0200635This release contains contributions from many people at Google, as well as David Ostrovsky, George Gensure, Keith Smiley.
Bazel Release Systeme693c192019-10-21 10:40:19 +0200636
Bazel Release Systemb9067c42019-10-10 11:55:50 +0200637## Release 1.0.0 (2019-10-10)
Bazel Release System4f9cd082019-09-10 09:39:08 -0400638
639```
Bazel Release Systemb9067c42019-10-10 11:55:50 +0200640Baseline: 97a82646dadd93bf52d47828bda42e3383b657c6
Bazel Release System4f9cd082019-09-10 09:39:08 -0400641
642Cherry picks:
643
Bazel Release System4f9cd082019-09-10 09:39:08 -0400644 + a0e3bb207fe2044120a2555a37162ee1f2b17500:
645 Remove support for authentication and .netrc
Bazel Release Systemb9067c42019-10-10 11:55:50 +0200646 + ada2c55dcc106cd55bafbbe5d9a966e21e4770e0:
647 Add explicit --sdk argument to xcrun calls
648 + 847df729528f6e5919ec8374247eadf792cba544:
649 toolchain_vanilla: Unset source and target language level
650 versions
651 + 5cfa0303d6ac3b5bd031ff60272ce80a704af8c2:
652 Update java_tools version to javac11-v5.1.
Bazel Release System4f9cd082019-09-10 09:39:08 -0400653```
654
Bazel Release Systemb9067c42019-10-10 11:55:50 +0200655Incompatible changes:
656
657 - Python, Windows: the
658 --[no]incompatible_windows_escape_python_args is no longer
659 supported. (It was flipped to true in Bazel 0.27.0)
660 - --incompatible_use_native_patch is enabled by default
661 - Windows: --incompatible_windows_bashless_run_command is now true
662 by default, meaning "bazel run //foo:bin" will run the binary as
663 a subprocess of the Bazel client. (When the flag is false, the
664 binary is executed as a subprocess of Bash.)
665 - Windows: --incompatible_windows_native_test_wrapper is enabled by
666 default
667
668New features:
669
670 - Genrule now supports `cmd_bash`, `cmd_ps`, `cmd_bat` attributes.
671 More details at
672 https://docs.bazel.build/versions/master/be/general.html#genrule.c
673 md
674 - config_setting can now check multiple values on "--foo=firstVal
675 --foo=secondVal ..."-style flags
676 - tags: use `--experimental_allow_tags_propagation` flag to
677 propagate tags to the action's execution requirements from
678 targets. Such tags should start with: `no-`, `requires-`,
679 `supports-`, `block-`, `disable-`, `cpu:`. See #8830 for details.
680 - Users can now get generated def file from cc_library via
681 "def_file" output group on Windows.
682 - Platform-specific bazelrc: with --enable_platform_specific_config
683 you can
684 enable flags in bazelrc according to your host platform.
685 - tags: use `--experimental_allow_tags_propagation` flag to
686 propagate tags to the action's execution requirements from
687 cc_library or cc_binary targets. Such tags should start with:
688 `no-`, `requires-`, `supports-`, `block-`, `disable-`, `cpu:`.
689 See #8830 for details.
690 - tags: use --experimental_allow_tags_propagation flag to propagate
691 tags to the action's execution requirements from java targets.
692 Such tags should start with: no-, requires-, supports-, block-,
693 disable-, cpu:. See #8830 for details.
694
695Important changes:
696
697 - Bazel Android builds now use aapt2 by default. To revert to aapt,
698 set `--android_aapt=aapt`.
699 - Make either --subcommands or --verbose_failures imply
700 --materialize_param_files
701 - Bazel Android builds now use aapt2 by default. To revert to aapt,
702 set `--an...
703 RELNOTES: None
704 - by default all remote connections considered to be via `gRPC`
705 with TLS enabled, unless other specified. To disable TLS use
706 `grpc://` prefix for you endpoints. All remote connections via
707 `gRPC` affected - `--remote_cache`, `--remote_executor` or
708 `--bes_backend`. http cache/executor is not affected. See #8061
709 for details.
710 - cc_* rules support non-transitive defines through a
711 'local_defines' attribute.
712 - Enable
713 incompatible_disallow_rule_execution_platform_constraints_allowed
714 by default (https://github.com/bazelbuild/bazel/issues/8136).
715 - incompatible_disallow_split_empty_separator is enabled by default
716 - Fixed Android build issues with aapt2 on Windows. See the [GitHub
717 issue](https://github.com/bazelbuild/bazel/issues/9102) for more
718 information.
719 - --incompatible_disable_static_cc_toolchains has been flipped. See
720 https://github.com/bazelbuild/bazel/issues/8546.
721 - --remote_default_platform_properties has been deprecated in favor
722 of --remote_default_exec_properties.
723 - The --incompatible_make_thinlto_command_lines_standalone flag has
724 been flipped, see https://github.com/bazelbuild/bazel/issues/6791
725 for more information.
726 - The --incompatible_use_specific_tool_files flag has been flipped.
727 See https://github.com/bazelbuild/bazel/pull/9126 for more
728 information.
729 - Clarify default visibility.
730 - Enables incompatible_auto_configure_host_platform
731 - New incompatible flag --incompatible_disable_depset_items
732 disables the "items" parameter in the Starlark depset
733 constructor. Use "direct" and "transitive" parameters instead.
734 - --incompatible_assignment_identifiers_have_local_scope is enabled
735 - incompatible_disable_partition_default_parameter is enabled by
736 default ()
737 - incompatible_restrict_attribute_names is enabled
738 (https://github.com/bazelbuild/bazel/issues/6437)
739 - The --incompatible_disable_nocopts flag has been flipped. See
740 https://github.com/bazelbuild/bazel/issues/8546 for more
741 information.
742 - Deprecated Java-Starlark API java_common.create_provider is
743 removed. JavaInfo() legacy args (actions, sources, source_jars,
744 use_ijar, java_toolchain, host_javabase) are removed.
745 - The flag incompatible_disallow_hashing_frozen_mutables is enabled
746 (https://github.com/bazelbuild/bazel/issues/7800)
747 - `maven_jar` and `maven_server` now disallow using plain HTTP URLs
748 without a specified checksum. If you are still using `maven_jar`,
749 consider migrating to
750 [`rules_jvm_external`](https://github.com/bazelbuild/rules_jvm_ext
751 ernal) for transitive dependency management. See
752 [#8607](https://github.com/bazelbuild/bazel/issues/8607) for more
753 information.
754 - Added `sha256` and `sha256_src` attributes to `maven_jar`. Please
755 consider migrating to SHA-256 as SHA-1 has been deemed
756 cryptographically insecure ([https://shattered.io]()). Or, use
757 [`rules_jvm_external`](https://github.com/bazelbuild/rules_jvm_ext
758 ernal) to manage your transitive Maven dependencies with artifact
759 pinning and SHA-256 verification support.
760 - introducing per-target exec_properties
761 - Bazel now supports ThinLTO builds on Linux for Clang versions >=
762 6.0. ThinLTO can be enabled through --features=thin_lto
763 - The Target.output_group field in Starlark is removed. Use
764 OutputGroupInfo instead. See
765 https://github.com/bazelbuild/bazel/issues/7949 for details.
766 - Make a number of parameters of Starlark builtin functions
767 positional-only (as opposed to specifiable by keyword). See
768 https://github.com/bazelbuild/bazel/issues/8147 for details.
769 - incompatible_skip_genfiles_symlink is enabled by default (#8651)
770 - Change Pruned events will fire immediately after being checked.
771 - --incompatible_remove_legacy_whole_archive has been flipped. See
772 https://github.com/bazelbuild/bazel/issues/7362 for more
773 information
774
775This release contains contributions from many people at Google, as well as Adam Liddell, Alessandro Patti, Arshabh Kumar Agarwal, Artem Pelenitsyn, Artem Zinnatullin, Benjamin Peterson, David Ostrovsky, Emmanuel Goh, Farhim Ferdous, George Gensure, iirina, Keith Smiley, Kiril Videlov, Laurent Le Brun, Mantas Sakalauskas, Marwan Tammam, Matt Mukerjee, panzhongxian, Shachar Anchelovich, Stepan Koltsov, Stephan Wolski, Travis Clarke, Yannic Bonenberger, Yuta Saito.
Bazel Release System4f9cd082019-09-10 09:39:08 -0400776
Bazel Release Systemf791df02019-08-28 10:29:12 -0400777## Release 0.29.0 (2019-08-28)
778
779```
780Baseline: 6c5ef5369a3ffceb8a65cc159a2fff1401242810
781
782Cherry picks:
783
784 + 338829f2633e91ae0492ee4169446465e10b5994:
785 Fix retrying of SocketTimeoutExceptions in HttpConnector
786 + 14651cd86b6fc1d48f56a208a9b5278b3e2dcf75:
787 Fallback to next urls if download fails in HttpDownloader
788 + b7d300c6be3e130dec0e62a4f19493105f595d57:
789 Fix incorrect stdout/stderr in remote action cache. Fixes #9072
790 + 960217631abdcab0a7ed95e2ab10acd55f636639:
791 Automated rollback of commit
792 0f0a0d58725603cf2f1c175963360b525718a195.
793 + da557f96c697102ad787e57bbf7db2460f6a60a8:
794 Windows: fix "bazel run" argument quoting
795 + ef8b6f68cc8ffd2e6523a894034ae383e87ec74c:
796 Return JavaInfo from java proto aspects.
797 + 209175ff8ffeb05628ed8a187dd414a3d2935c55:
798 Revert back to the old behavior of not creating a proto source
799 root for generated .proto files.
800 + 644060b7a4bc98384b66e3d2343b950b875b5e35:
801 Fix PatchUtil for parsing special patch format
802 + 067040d7bcb3b24a88432e210a96adacee3f37b4:
803 Put the removal of the legacy repository-relative proto path
804 behind the --incompatible_generated_protos_in_virtual_imports
805 flag.
806 + 76ed014e77d7b862f6eb2894600ae525ea570f11:
807 repository mapping lookup: convert to canonical name first
808```
809
810Important changes:
811
812 - rule_test: fix Bazel 0.27 regression ("tags" attribute was
813 ingored, https://github.com/bazelbuild/bazel/issues/8723
814 - Adds --incompatible_enable_execution_transition, which enables
815 incremental migration of host attributes to exec attributes.
816 - objc_proto_library rule has been deleted from Bazel.
817 - repository_ctx.read is no longer restricted to files
818 in the repository contructed.
819 - tags 'no-remote', 'no-cache', 'no-remote-cache',
820 'no-remote-exec', 'no-sandbox' are propagated now to the actions
821 from targets when '--ncompatible_allow_tags_propagation' flag set
822 to true. See #8830.
823 - Adds flag
824 --//tools/build_defs/pkg:incompatible_no_build_defs_pkg. This
825 flag turns off the rules //tools/build_defs/pkg:{pkg_deb,
826 pkg_rpm, pkg_tar}.
827 - The Android NDK is now integrated with toolchains. To use them,
828 pass the `--extra_toolchains=@androidndk//:all` flag or register
829 them in your WORKSPACE with
830 `register_toolchains("@androidndk//:all")`.
831 - Stdout and stderr are checked to determine if output is going to a
832 terminal. `--is_stderr_atty` is deprecated and `--isatty` is
833 undeprecated.
834 - --incompatible_load_proto_rules_from_bzl was added to forbid
835 loading the native proto rules directly. See more on tracking
836 issue #8922
837 - Docker Sandbox now respects remote_default_platform_properties
838 - pkg_deb, pkg_rpm & pkg_tar deprecation plan announced in the
839 documentation.
840 - The new java_tools release:
841 * fixes https://github.com/bazelbuild/bazel/issues/8614
842 * exposes a new toolchain `@java_tools//:prebuilt_toolchain`
843 which is using all the pre-built tools, including singlejar and
844 ijar, even on remote execution. This toolchain should be used
845 only when host and execution platform are the same, otherwise the
846 binaries will not work on the execution platform.
847 - java_common.compile supports specifying
848 annotation_processor_additional_inputs and
849 annotation_processor_additional_outputs for the Java compilation
850 action for supporting annotation processors that consume or
851 produce artifacts. Fixes #6415
852 - There is now documentation on optimizing Android app build
853 performance. Read it at
854 https://docs.bazel.build/versions/0.29.0/android-build-performance
855 .html
856 - Execution log now respects --remote_default_platform_properties
857 - Include a link to the relevant documenation on transitive Python
858 version errors.
859 - New incompatible flag
860 --incompatible_disable_target_provider_fields removes the ability
861 (in Starlark) to access a target's providers via the field syntax
862 (for example, `ctx.attr.dep.my_provider`). The provider-key
863 syntax should be used instead (for example,
864 `ctx.attr.dep[MyProvider]`). See
865 https://github.com/bazelbuild/bazel/issues/9014 for details.
866 - A new platform exec_properties is added to replace
867 remote_execution_properties.
868 - Added --incompatible_load_python_rules_from_bzl, which will be
869 flipped in Bazel 1.0. See
870 https://github.com/bazelbuild/bazel/issues/9006.
871 - add --break_build_on_parallel_dex2oat_failure to shortcut tests
872 on dex2oat errors
873
874This release contains contributions from many people at Google, as well as Alexander Ilyin, Arek Sredzki, Artem Zinnatullin, Benjamin Peterson, Fan Wu, John Millikin, Loo Rong Jie, Marwan Tammam, Oscar Bonilla, Peter Mounce, Sergio Rodriguez Orellana, Takeo Sawada, and Yannic Bonenberger.
875
Bazel Release System3fd8c412019-07-19 17:14:15 +0200876## Release 0.28.1 (2019-07-19)
877
878```
879Baseline: 2e374a9c6e3d4ed71f0145de287c4b2fe43c76d6
880
881Cherry picks:
882
883 + 6d0b14b95a71175362030b4811ca74512b00a890:
884 rule_test: apply "tags" to all rules in the macro
885 + 18cd9048526f067a4950c6ddbf4b1b3604760af0:
886 Release 0.28.0 (2019-07-10)
887 + 2260b970cb2a10c21a2fde116aa82c79be52991f:
888 When copying dynamic libraries to binary, copy them into the
889 runfiles as well.
890 + a0af170f87c8230fcd8860599b983df097b646bd:
891 Undo breaking change of hiding android_common behind
892 --experimental_google_legacy_api
893 + c6ca6c2ccd9e11a87f837341ae05d2ba037975b1:
894 Ignore external/ directory in users' source tree when creating
895 execroot symlink tree.
896```
897
898Important changes:
899
900 - rule_test: fix Bazel 0.27 regression ("tags" attribute was
901 ingored, https://github.com/bazelbuild/bazel/issues/8723
902
903This release contains contributions from many people at Google, as well as .
904
Bazel Release Systemf4a08032019-07-10 18:11:04 +0200905## Release 0.28.0 (2019-07-10)
Bazel Release System7e809492019-07-10 17:50:43 +0200906
907```
Bazel Release Systemf4a08032019-07-10 18:11:04 +0200908Baseline: 2e374a9c6e3d4ed71f0145de287c4b2fe43c76d6
Bazel Release System7e809492019-07-10 17:50:43 +0200909
910Cherry picks:
911
Bazel Release System7e809492019-07-10 17:50:43 +0200912 + 6d0b14b95a71175362030b4811ca74512b00a890:
913 rule_test: apply "tags" to all rules in the macro
914```
915
Bazel Release Systemf4a08032019-07-10 18:11:04 +0200916Incompatible changes:
917
918 - Add --incompatible_enable_profile_by_default to enable the JSON
919 profile by default.
920 - The --incompatible_windows_style_arg_escaping flag is flipped to
921 "true", and the "false" case unsupported. Bazel no longer accepts
922 this flag.
923
Bazel Release System7e809492019-07-10 17:50:43 +0200924Important changes:
925
Bazel Release Systemf4a08032019-07-10 18:11:04 +0200926 - Bazel now supports hiding compiler warnings for targets that
927 you're not explicitly building (see
928 https://docs.bazel.build/versions/master/user-manual.html#flag--au
929 to_output_filter).
930 - Flag `--incompatible_restrict_escape_sequences` is added. See
931 https://github.com/bazelbuild/bazel/issues/8380
932 - The "info" command now supports the "starlark-semantics"
933 argument, which outputs a representation of the effective Starlark
934 semantics option values.
935 - The `outputs` parameter of the `rule()` function is deprecated
936 and attached to flag `--incompatible_no_rule_outputs_param`.
937 Migrate rules to use `OutputGroupInfo` or `attr.output` instead.
938 See https://github.com/bazelbuild/bazel/issues/7977 for more info.
Bazel Release System7e809492019-07-10 17:50:43 +0200939 - When `--incompatible_strict_action_env` is enabled, the default
940 `PATH` now includes `/usr/local/bin`.
941 - Turn on --experimental_build_setting_api by default for starlark
942 build settings (see
943 https://docs.bazel.build/versions/master/skylark/config.html#user-
944 defined-build-settings for more info)
Bazel Release Systemf4a08032019-07-10 18:11:04 +0200945 - `@bazel_tools//tools/jdk:toolchain_java10` and
946 `@bazel_tools//tools/jdk:toolchain_java11` are now available to
947 enable java 10, respectively java 11 language level support.
948 - The `command` parameter of the `actions.run_shell()` function
949 will be restricted to only accept strings (and not string
950 sequences). This check is attached to flag
951 `--incompatible_run_shell_command_string`. One may migrate by
952 using the `arguments` parameter of `actions.run()` instead. See
953 https://github.com/bazelbuild/bazel/issues/5903 for more info.
954 - Incompatible change
955 `--incompatible_use_platforms_repo_for_constraints` has been
956 added. See https://github.com/bazelbuild/bazel/issues/8622 for
957 details.
958 - Incompatible change
959 `--incompatible_use_platforms_repo_for_constraints` has been
960 added. See https://github.com/bazelbuild/bazel/issues/8622 f...
961 - Bazel's C++ autoconfiguration now understands `BAZEL_LINKLIBS`
962 environment variable to specify system libraries that should be
963 appended to the link command line.
964 - paths under the execution root starting with "." or "_" will be
965 re-linked across builds
966 - execution_log_json_file now allows actions without outputs.
967 - Labels aapt as deprecated for aapt_version, and heavily endorses
968 aapt2.
969 - Update doc links still pointing to cc_binary.features to point to
970 common features
971 - Incompatible change
972 `--incompatible_use_platforms_repo_for_constraints` has been
973 added. See https://github.com/bazelbuild/bazel/issues/8622 for
974 details.
975 RELNOTES:
976 - --incompatible_disable_nocopts flag has been added. See
977 https://github.com/bazelbuild/bazel/issues/8706 for details.
978 - Fixed treatment of <dist:module /> tags in AndroidManifest.xml
979 - Fixed asset precedence for android_binary rules with aapt2.
980 - Bazel now officially supports running on CentOS 7.
981 - The runtime dynamic libraries are no longer in default output
982 group of cc_binary.
983 - set the FDOBuildType as CSFDO for binaries built with
984 --cs_fdo_absolute_path.
985 - Bazel can now be bootstrapped and built on arm64 platforms
986 without requiring any flags or patches.
987 - Fixed treatment of AndroidManifest.xml attributes which contained
988 XML escaping
989 - Retire experimental blaze flag
990 experimental_link_compile_output_separately. The same behavior is
991 available through the feature dynamic_link_test_srcs.
992 - --incompatible_load_java_rules_from_bzl was added to forbid
993 loading the native java rules directly. See more on tracking
994 issue #8746
995 - Turn on --experimental_build_setting_api by default for starlark
996 build settings (see
997 https://docs.bazel.build/versions/master/skylark/config.html#user-
998 defined-build-settings for more info)
999 - Attribute names are going to be restricted and must be
1000 syntactically valid identifiers.
1001 https://github.com/bazelbuild/bazel/issues/6437
Bazel Release System7e809492019-07-10 17:50:43 +02001002 - rule_test: fix Bazel 0.27 regression ("tags" attribute was
1003 ingored, https://github.com/bazelbuild/bazel/issues/8723
1004
Bazel Release Systemf4a08032019-07-10 18:11:04 +02001005This release contains contributions from many people at Google, as well as Ben Diuguid, Benjamin Peterson, Dave Lee, Loo Rong Jie, Mark Butcher, Marwan Tammam, Pedro Alvarez.
Bazel Release System7e809492019-07-10 17:50:43 +02001006
Bazel Release System316cb9b2019-07-02 19:45:51 +02001007## Release 0.27.1 (2019-07-02)
1008
1009```
1010Baseline: 8c3b3fba3f68833bd97d3df2db9c48f0539efc3b
1011
1012Cherry picks:
1013
1014 + 123c68daed17b19927372e4df7f7a2256db6b80e:
1015 Warn in more cases of possible Python version mismatch in host
1016 config
1017 + 052167e907373ac7ea43238c3049739f6e94a9d1:
1018 Add a non-strict autodetecting Python toolchain
1019 + 6ef6d879ab69225d54ecab3db847fb4eff33bbeb:
1020 Default java toolchain target
1021 + 50fa3ec27efdd95771c70faa38a4543d4fed44f2:
1022 Fix problems with the non-strict Python toolchain
1023 + e2a626c4f61fe4ceb79a5675d09a6f25ca7b5b22:
1024 Automated rollback of commit
1025 bc6f7cb330bb531f062bb301f3703876051191f5.
1026 + 6efc5b787ad3164cc2fb779c73377695032b4524:
1027 Treat existence of managed directories as a part of repository
1028 dirtiness.
1029 + 3a4be3c93813987a27a97dade3f9ebbc5770e349:
1030 Add /usr/local/bin to default PATH under strict action env
1031 + 5c1005c0947b010ee36ca851b8ba07c9479cf682:
1032 Automated rollback of commit
1033 536a166270590a8dbc701718550383f3a07cc763.
1034 + c82eb4878c7dc829455caeb915affe36c89df06f:
1035 Release 0.27.0 (2019-06-17)
1036 + d4589630428c1c1bc08a9baf36257e636fe9d746:
1037 Check for both :lcov_merger and $lcov_merger attributes in
1038 TestActionBuilder.
1039```
1040
1041Important changes:
1042
1043 - Add new options --cs_fdo_absolute_path= to support the absolute
1044 path
1045 profile for LLVM's context-sensitive FDO.
1046 - When `--incompatible_strict_action_env` is enabled, the default
1047 `PATH` now includes `/usr/local/bin`.
1048 - Turn on --experimental_build_setting_api by default for starlark
1049 build settings (see
1050 https://docs.bazel.build/versions/master/skylark/config.html#user-
1051 defined-build-settings for more info)
1052
1053This release contains contributions from many people at Google, as well as Ricky Pai.
1054
Bazel Release Systemaecb1e82019-06-17 14:57:36 +02001055## Release 0.27.0 (2019-06-17)
Bazel Release Systeme6976fb2019-06-06 13:01:57 +02001056
1057```
Bazel Release Systemaecb1e82019-06-17 14:57:36 +02001058Baseline: 5935259724bebd1c4bdebc90e159d0f655c8c219
Bazel Release Systeme6976fb2019-06-06 13:01:57 +02001059
1060Cherry picks:
1061
Bazel Release Systemaecb1e82019-06-17 14:57:36 +02001062 + fe81b49e727efdcc90a270520af193af75f4e31d:
1063 Support of using the absolute path profile for LLVM's Context
1064 Sensitive FDO
1065 + ce5e7180d98e1244fdfba0349952727826cbd173:
1066 Demote OptionProcessor from globals
1067 + 3ed9d3681c3e130aafcf3c405ff1795c601bdf95:
1068 Properly wire up BES half-close. The lack thereof was a simple
1069 oversight.
1070 + 4ca768e9f87701fb92598d0a8325a5fc8881a852:
1071 standardize graph output indentation with 2 spaces
1072 + aff189a7c514a0171a53a2dcdd37c93ecaa672ad:
1073 Make sure default Linux artifacts have an associated action,
1074 even when artifact names are altered.
1075 + 8c3b3fba3f68833bd97d3df2db9c48f0539efc3b:
1076 Failures early in package loading will now fail all --keep_going
1077 builds.
1078 + 123c68daed17b19927372e4df7f7a2256db6b80e:
1079 Warn in more cases of possible Python version mismatch in host
1080 config
1081 + 052167e907373ac7ea43238c3049739f6e94a9d1:
1082 Add a non-strict autodetecting Python toolchain
1083 + 6ef6d879ab69225d54ecab3db847fb4eff33bbeb:
1084 Default java toolchain target
1085 + 50fa3ec27efdd95771c70faa38a4543d4fed44f2:
1086 Fix problems with the non-strict Python toolchain
1087 + e2a626c4f61fe4ceb79a5675d09a6f25ca7b5b22:
1088 Automated rollback of commit
1089 bc6f7cb330bb531f062bb301f3703876051191f5.
1090 + 6efc5b787ad3164cc2fb779c73377695032b4524:
1091 Treat existence of managed directories as a part of repository
1092 dirtiness.
1093 + 3a4be3c93813987a27a97dade3f9ebbc5770e349:
1094 Add /usr/local/bin to default PATH under strict action env
1095 + 5c1005c0947b010ee36ca851b8ba07c9479cf682:
1096 Automated rollback of commit
1097 536a166270590a8dbc701718550383f3a07cc763.
Bazel Release Systeme6976fb2019-06-06 13:01:57 +02001098```
1099
Bazel Release Systemaecb1e82019-06-17 14:57:36 +02001100Incompatible changes:
1101
1102 - --incompatible_disable_objc_provider_resources no longer has
1103 effect. Use of deprecated resource fields on the Objc provider is
1104 now disallowed regardless of this flag.
1105 - deleted deprecated --experimental-remote-retry* flags, please use
1106 --remote_retries instead
1107 - flipped --incompatible_list_based_execution_strategy_selection
1108 flag to be true by default. See
1109 https://github.com/bazelbuild/bazel/issues/7480 for details.
1110 - Octal integer literals in Starlark are required to start with
1111 "Oo".
1112 - The "native" module is no longer available in BUILD files, all
1113 its members can be accessed directly as global symbols. This can
1114 be temporarily reverted by providing
1115 --incompatible_disallow_native_in_build_file=false as a flag to
1116 Blaze.
1117 - The "native" module is no longer available in BUILD files, all
1118 its members can be accessed directly as global symbols. This can
1119 be temporarily reverted by providing
1120 --incompatible_disallow_native_in_build_file=false as a flag to
1121 Blaze.
1122 - Turn off binary style profile format.
1123 - The "native" module is no longer available in BUILD files, all
1124 its members can be accessed directly as global symbols. This can
1125 be temporarily reverted by providing
1126 --incompatible_disallow_native_in_build_f...
1127 - cleanup that affects user provided apple frameworks is
1128 now enabled by default. See
1129 https://github.com/bazelbuild/bazel/issues/7944 for more info.
1130 - Python rules now determine the Python runtime using toolchains
1131 rather than `--python_top` and `--python_path`, which are
1132 deprecated. See
1133 [#7899](https://github.com/bazelbuild/bazel/issues/7899) for
1134 information on declaring Python toolchains and migrating your
1135 code. As a side-benefit, this addresses
1136 [#4815](https://github.com/bazelbuild/bazel/issues/4815)
1137 (incorrect interpreter version used) on non-Windows platforms.
1138 Note however that some builds break due to getting the version
1139 they asked for -- consider setting `python_version = "PY2"` on
1140 Python 2 targets and `--host_force_python=PY2` if any Python 2
1141 targets are used in the host configuration. You can temporarily
1142 opt out of this change with
1143 `--incompatible_use_python_toolchains=false`.
1144 - Depsets can't be iterated over unless they're converted to lists
1145 using the .to_list() method. Use
1146 --incompatible_depset_is_not_iterable=false to
1147 temporarily restore the previous behaviour.
1148
1149New features:
1150
1151 - Bash, runfiles: the copy-pasted init code of the Bash runfiles
1152 library is now shorter, see `tools/bash/runfiles/runfiles.bash`.
1153 The rlocation() implementation is the same.
1154 - Bash, runfiles: the copy-pasted init code of the Bash runfiles
1155 library is now shorter, see `tools/bash/runfiles/runfiles.bash`.
1156 The rlocation() implementation is the same.
1157 - Bash, runfiles: the copy-pasted init code of the Bash runfiles
1158 library is now shorter, see `tools/bash/runfiles/runfiles.bash`.
1159 To use the new init code, you need Bazel 0.27 or newer. The old
1160 (longer) init code still works.
1161
1162Important changes:
1163
1164 - The `outputs` parameter of the `rule()` function is deprecated
1165 and attached to flag `--incompatible_no_rule_outputs_param`.
1166 Migrate rules to use `OutputGroupInfo` or `attr.output` instead.
1167 See https://github.com/bazelbuild/bazel/issues/7977 for more info.
1168 - The --incompatible_disable_objc_library_resources flag is being
1169 removed. Please remove it from your configs as it otherwise will
1170 fail the build.
1171 - Add a generic additional_linker_inputs attribute on cc_binary
1172 rules.
1173 - Windows, C++ autoconfigure: BAZEL_VC and BAZEL_VS may now have
1174 quotes, so if you set these envvars' values in cmd.exe via
1175 TAB-completion then you no longer need to remove the surrounding
1176 quotes.
1177 - pkg_deb has new attributes: `config` and `templates` that can be
1178 used for integration with debconf
1179 - Allow cc_import() of a DLL with no interface library on Windows,
1180 used to document runtime dependencies.
1181 - All host-configured Python tools that are built for the wrong
1182 Python version will now emit a warning message when they exit
1183 with non-zero status. See #7899.
1184 - deprecated --remote_local_fallback_strategy. Use
1185 `--strategy=remote,local` instead. See
1186 https://github.com/bazelbuild/bazel/issues/7480.
1187 - Introduce --incompatible_disable_native_android_rules flag
1188 - The Android desugaring actions now support a persistent worker
1189 mode for faster local build performance. Enable it with
1190 `--strategy=Desugar=worker`.
1191 - --incompatible_static_name_resolution_in_build_files is now
1192 enabled by default
1193 - --incompatible_disable_deprecated_attr_params is now enabled by
1194 default (#5818)
1195 - Repository containing autoconfigured C++ toolchain
1196 `@local_config_cc` has been split in 2 - see
1197 `local_config_cc_toolchains`.
1198 - --incompatible_string_join_requires_strings is now enabled by
1199 default
1200 - Flag --incompatible_new_actions_api is enabled by dewfault (#5825)
1201 - New flag `--incompatible_disallow_empty_glob`. See
1202 https://github.com/bazelbuild/bazel/issues/8195
1203 - --incompatible_no_kwargs_in_build_files is enabled by default
1204 - Incompatible flag
1205 `--incompatible_require_ctx_in_configure_features` has been
1206 flipped. See https://github.com/bazelbuild/bazel/issues/7793 for
1207 more information.
1208 - `BAZEL_USE_XCODE_TOOLCHAIN=1` tells Bazel not to look for Xcode to
1209 decide whether to enable toolchains for Apple rules, but to
1210 assume Xcode is
1211 available. Can be also used when building on Darwin and no C++ or
1212 ObjC is being
1213 built, so there is no need to detect Xcode.
1214 - Android desugaring actions now use persistent workers by default.
1215 This has been measured to provide up to 20% reduction in build
1216 times. To disable it, use the `--strategy=Desugar=sandboxed`
1217 flag. See https://github.com/bazelbuild/bazel/issues/8342 and
1218 https://github.com/bazelbuild/bazel/issues/8427 for more details
1219 on local build speed optimization for Android apps.
1220 - Fixed an issue with Android builds where `--fat_apk_cpu` doesn't
1221 pack all selected shared libraries from `aar_import` targets into
1222 the APK. See
1223 [#8283](https://github.com/bazelbuild/bazel/issues/8283).
1224 - Turn on --experimental_starlark_config_transitions by default for
1225 starlark transitions (see
1226 https://docs.bazel.build/versions/master/skylark/config.html#user-
1227 defined-transitions for more info)
1228 - Turn on --experimental_build_setting_api by default for starlark
1229 build settings (see
1230 https://docs.bazel.build/versions/master/skylark/config.html#user-
1231 defined-build-settings for more info)
1232 - Incompatible flag
1233 `--incompatible_dont_enable_host_nonhost_crosstool_features` has
1234 been flipped. See https://github.com/bazelbuild/bazel/issues/7407
1235 for more information.
1236 - Added support for Android NDK 19 and 20.
1237 - Flip --incompatible_no_support_tools_in_action_inputs
1238 - --remote_executor, --remote_cache or --bes_backend=someurl.com
1239 would be treated as grpcs://someurl.com, if the
1240 --incompatible_tls_enabled_removed flag enabled. See
1241 https://github.com/bazelbuild/bazel/issues/8061 for details.
1242 - Add new options --cs_fdo_absolute_path= to support the absolute
1243 path
1244 profile for LLVM's context-sensitive FDO.
1245 - When `--incompatible_strict_action_env` is enabled, the default
1246 `PATH` now includes `/usr/local/bin`.
1247 - Turn on --experimental_build_setting_api by default for starlark
1248 build settings (see
1249 https://docs.bazel.build/versions/master/skylark/config.html#user-
1250 defined-build-settings for more info)
1251
1252This release contains contributions from many people at Google, as well as Alex Thompson, Andy Scott, Benjamin Peterson, David McNett, Drew Gassaway, Ira Shikhman, James deBoer, Jay Vercellone, Jingwen Chen, Josh Rosen, Keith Smiley, Laurent Le Brun, Lee Mracek, Marwan Tammam, Matt Passell, Michael Hackner, Michal Majcherski, Patrick Niklaus, Peter Mounce, Ricky Pai, Steeve Morin, szakmary, Takuto Ikuta, Vladimir Chebotarev, Yen-Chi Chen.
Bazel Release Systeme6976fb2019-06-06 13:01:57 +02001253
Klaus Aehligc84f7d32019-06-17 15:26:27 +02001254## Release 0.26.1 (2019-06-06)
1255
1256```
1257Baseline: cb82ed84d44db0169a8fbf15f9cee434b77002bb
1258
1259Cherry picks:
1260
1261 + d1c0d205945f5a765efb0a48593b1cd82699ce32:
1262 Allow WORKSPACE file to be a symlink if no managed directories
1263 is used.
1264 + c3d2aa74ccd23dfb8a8173c2b3e2955f0c5892cb:
1265 Fix ios, tvos and watchos arm64 constraints
1266 + 55e42052a22a60b68d88a89932b2a068311b1a95:
1267 Bump java_tools_javac10 from 3.1 to 3.2
1268```
1269
1270Patch release on top of 0.26.0, fixing
1271- https://github.com/bazelbuild/bazel/issues/8475
1272- https://github.com/bazelbuild/bazel/issues/8520
1273- https://github.com/bazelbuild/intellij/issues/845
1274
Bazel Release System8089b272019-05-28 10:31:53 +02001275## Release 0.26.0 (2019-05-28)
Bazel Release System48845c32019-05-23 15:21:53 -04001276
1277```
Bazel Release System8089b272019-05-28 10:31:53 +02001278Baseline: daa8ae565ab2023e49134f0aad233b0a8bd7a5d0
Bazel Release System48845c32019-05-23 15:21:53 -04001279
1280Cherry picks:
1281
Bazel Release System8089b272019-05-28 10:31:53 +02001282 + 61c7ffa60ae9c1937dd6d8ee30a8c0471094ee71:
1283 Automated rollback of commit
1284 87388e24814b177f54ca7697b4233489f90c587e.
1285 + 898d7b6138af73f03daf35b767d252560087de70:
1286 Add test for repository overrides, conflicting with managed
1287 directories being added when Bazel server is already started.
1288 + c2001a4569483596d9dc74ba9cabcbe4b6f1887f:
1289 Automated rollback of commit
1290 bbe47a1564a832e1a175206f2dfbc92af94c120b.
1291 + e67c961905792cd63950c6f6efc33275ad243c49:
1292 Fix a non-determinism in create_embedded_tools.py.
Bazel Release System48845c32019-05-23 15:21:53 -04001293 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
1294 Remove unsupported cpu attribute from cc_toolchains.
Bazel Release System8089b272019-05-28 10:31:53 +02001295 + 597e289b097d3bfed8eea1cb0924bbeb04877e42:
1296 remote: made CombinedCache a composition of Disk and Http Cache
1297 + 942f7cf6a0da0a4ecc804615424f039e50963933:
1298 C++: Fixes bug in C++ API with external repo aspects
Bazel Release System48845c32019-05-23 15:21:53 -04001299 + 85a5a2bd569a5274950fc7327a044c395248c024:
1300 Configure @androidsdk//:emulator_x86 and :emulator_arm to point
1301 to the unified emulator binary
Bazel Release System8089b272019-05-28 10:31:53 +02001302 + 9835cb4135503768cdf1161746b95d7969ccb938:
1303 Automated rollback of commit
1304 844e4e297b404d6ff28b818d8150d4b9c47de887.
1305 + c963ba21073b514961946b8b4b45b091f08fdaa1:
1306 Windows, Python: fix arg. esc. also in host config
1307 + a1ea487e0a9e180a36fa4aab57f7c746ddcf367a:
1308 Do not pre-cache changed files under managed directories
1309 + 7dc78cdd04eedf2f4373b170053ba5fc2a990929:
1310 Add explicit execution and target constraints for autodiscovered
1311 cc t?
1312 + dd9ac13f7e3b71bdf2eca717bc7681bdd12389a2:
1313 Fix a bug when a relative path is used for the execution log
Bazel Release System48845c32019-05-23 15:21:53 -04001314 + 0ff19c6d0adf3c0df94fff59ca3bd13cbcf99897:
1315 Fix StandaloneTestStrategy.appendStderr
Bazel Release System8089b272019-05-28 10:31:53 +02001316 + 7f495315749478e75a3424726cc273a535b7c3b8:
1317 Fix the autodetecting Python toolchain on Mac
1318 + ddce7235ef29a0aba727c265eae865d15af4ed09:
1319 Avoid exporting PATH unnecessarily
1320 + 35dd05a059fa7fddfdd888cfc69102994e3c04dc:
1321 Allow Starlark rules to be able to use the `exec_compatible_with`
Bazel Release System48845c32019-05-23 15:21:53 -04001322```
1323
Klaus Aehlig63bf1152019-05-28 10:41:12 +02001324### Incompatible changes
1325
1326- [`--incompatible_windows_escape_jvm_flags`](https://github.com/bazelbuild/bazel/issues/7486)
1327 is enabled by default, and removed.
1328
1329- [`--incompatible_windows_style_arg_escaping`](https://github.com/bazelbuild/bazel/issues/7454)
1330 is enabled by default.
1331
1332- [`--incompatible_no_output_attr_default`](https://github.com/bazelbuild/bazel/issues/7950)
1333 is enabled by default.
1334
1335- [`--incompatible_depset_union`](https://github.com/bazelbuild/bazel/issues/5817)
1336 is enabled by default.
1337
1338- [`--incompatible_disable_genrule_cc_toolchain_dependency`](https://github.com/bazelbuild/bazel/issues/6867) removed
1339
1340- [`--Incompatible_disallow_rule_execution_platform_constraints_allowed`](https://github.com/bazelbuild/bazel/issues/8136):
1341 When enabled, disallows the use of the `execution_platform_constraints_allowed`
1342 attribute when defining new rules.
1343
1344- [`--incompatible_disable_objc_provider_resources`](https://github.com/bazelbuild/bazel/issues/5710)
1345 is now enabled by default.
1346
1347### Apple
1348
1349- The `--ios_multi_cpus`, `--watchos_cpus`, `--macos_cpus` and `--tvos_cpus` are
1350 now additive. This means that you can now split the `--ios_multi_cpus=arm64,armv7`
1351 into `--ios_multi_cpus=arm64` and `--ios_multi_cpus=armv7`.
1352
1353- Add `--incompatible_objc_framework_cleanup` to control whether to enable some
1354 objc framework cleanup that changes the API. Specifically, the cleanup changes
1355 the objc provider API pertaining to frameworks. This change is expected to be
1356 transparent to most users unless they write their own Starlark rules to handle
1357 frameworks. See https://github.com/bazelbuild/bazel/issues/7594 for details.
1358
1359- `objc_library` does not support resource attributes any more. Please read
1360 [#7594](https://github.com/bazelbuild/bazel/issues/7594) for more info.
1361
1362### Android
1363
1364- Android resource conflicts will no longer be reported between a strong attr
1365 resource and a weak attr resource, if the weak attr does not have format
1366 specified.
1367
1368### C++
1369
1370- [Allow debugging C++ features logic](https://github.com/bazelbuild/bazel/commit/53156db1e30fe7197889c3cbc8d1321ff9b85143
1371
1372- Add new options [`--cs_fdo_instrument`](https://docs.bazel.build/versions/master/command-line-reference.html#flag--cs_fdo_instrument)
1373 and [`--cs_fdo_profile`](https://docs.bazel.build/versions/master/command-line-reference.html#flag--cs_fdo_profile)
1374 to support LLVM's context-sensitive FDO (CSFDO).
1375
1376- [Bazel C++ compile/link Starlark API](https://github.com/bazelbuild/bazel/issues/4570).
1377 Can be used with experimental flag `--experimental_cc_skylark_api_enabled_packages`.
1378
1379- `cc_toolchain.static_runtime_lib` and `cc_toolchain.dynamic_runtime_lib` are
1380 now exposed to Starlark.
1381
1382- C++ Starlark API for compilation and linking is no longer whitelisted
1383
1384- Incompatible flag `--incompatible_make_thinlto_command_lines_standalone` has
1385 been added. See https://github.com/bazelbuild/bazel/issues/6791 for details.
1386
1387- Feature `disable_whole_archive_for_static_lib` has been added to allow turning
1388 off legacy_whole_archive for individual targets.
1389 https://github.com/bazelbuild/bazel/issues/7362
1390
1391### Python
1392
1393- Fixed an issue where some `py_runtimes` were incompatible with using
1394 `--build_python_zip` ([#5104](https://github.com/bazelbuild/bazel/issues/5104)).
1395
1396### Starlark
1397
1398- The flag [`--incompatible_restrict_named_params`](https://github.com/bazelbuild/bazel/issues/8147)
1399 is added. [Buildifier](https://github.com/bazelbuild/buildtools) will soon be
1400 updated to automatically fix this in your code.
1401
1402- The flag [`--incompatible_no_kwargs_in_build_files`](https://github.com/bazelbuild/bazel/issues/8021)
1403 is added. It fixes a bug where the `**kwarg` notation was allowed in `BUILD`
1404 files.
1405
1406- The flag [`--incompatible_static_name_resolution_in_build_files`](https://github.com/bazelbuild/bazel/issues/8022)
1407 is added. This fixes a bug where invalid code was silently accepted.
1408
1409- The flag [`--incompatible_disallow_old_octal_notation`](https://github.com/bazelbuild/bazel/issues/8059)
1410 is added. It removes a deprecated notation for octal numbers.
1411 [Buildifier](https://github.com/bazelbuild/buildtools) can update your code
1412 automatically.
1413
1414- [`struct.to_proto()`](https://docs.bazel.build/versions/master/skylark/lib/struct.html#to_proto)
1415 can now convert dictionaries into proto3 text message.
1416
1417- The [`glob`](https://docs.bazel.build/versions/master/be/functions.html#glob)
1418 function has a new argument `allow_empty`. When set to `False` (this will be
1419 the default in the future), the glob fails when it doesn't match anything.
1420 Please explicitly set `allow_empty = True` to the globs that need it.
1421
1422### Windows
1423
1424- Windows, Python: the new `--incompatible_windows_escape_python_args` flag
1425 (`false` by default) builds `py_binary` and `py_test` targets with correct
1426 command line argument escaping. Similar to
1427 https://github.com/bazelbuild/bazel/issues/7486 but for `py_*` rules.
1428
1429### Other changes
1430
1431- cquery supports `--output=build`
1432
1433- Generated Go protobufs now depend on `//net/proto2/go:proto_gendeps` instead
1434 of `//net/proto2/go:proto`
1435
1436- Added `--incompatible_remove_binary_profile` to disable the old binary
1437 profiles. Instead use the JSON profile format:
1438 https://docs.bazel.build/versions/master/skylark/performance.html#json-profile
1439
1440- Introducing `--execution_log_binary_file` and `--execution_log_json_file`
1441 that output a stable sorted execution log. They will offer a stable
1442 replacement to `--experimental_execution_log_file`.
1443
1444- New platform_mappings ability to allow gradual flag to platforms/toolchains
1445 migration. See also https://github.com/bazelbuild/bazel/issues/6426
1446
1447- Added support for compiling against fully qualified `R` classes from
1448 `aar_import` dependencies.
1449
1450- `--tls_enabled` flag is deprecated. Please provide `grpcs` as a scheme in
1451 the URLs if TLS should be used for a remote connection.
1452
1453### Community
1454
1455- Alex Eagle gave a talk at ng-conf:
1456 [The Bazel Opt-in Preview is Here!](https://www.youtube.com/watch?v=J1lnp-nU4wM)
1457
1458- The latest release of
1459 [rules_haskell](https://github.com/tweag/rules_haskell/releases/tag/v0.9)
1460 includes many new improvements, including an initial Windows support.
1461
1462- The latest
1463 [Buildifier release](https://github.com/bazelbuild/buildtools/releases/tag/0.25.1)
1464 includes Windows binaries, as well as a JSON output for diagnostics.
1465
1466- Natan Silnitsky gave the talk
1467 [How to successfully migrate to Bazel from Maven or Gradle](https://www.youtube.com/watch?v=2UOFm-Cc_cU)
1468 at the Java Eastern Europe Conference.
1469
1470This release contains contributions from many people at Google, as well as
1471Benjamin Peterson, Brian Topping, clyang82, Dave Lee, George Gensure,, Greg,
1472Guro Bokum, Keith Smiley, Max Vorobev, Michael Hackner, Robert Brown, Robert
1473Sayre, Ryan Beasley, and Yannic.
1474
1475
1476## Release 0.25.3 (2019-05-23)
1477
1478```
1479Baseline: 03662462941953dad23af88693804b8b1d4430b9
1480
1481Cherry picks:
1482
1483 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
1484 Windows: fix native test wrapper's arg. escaping
1485 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
1486 Flip --incompatible_windows_escape_jvm_flags
1487 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
1488 Sort DirectoryNode children to ensure validity.
1489 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
1490 Conditionally use deprecated signature for initWithContentsOfURL
1491 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
1492 Add http_archive entries for testing with various JDK versions.
1493 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
1494 Now that ubuntu1804 uses JDK 11, remove explicit
1495 ubuntu1804_java11 tests.
1496 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
1497 Fix wrong name of ubuntu1804_javabase9 task.
1498 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
1499 Remove @executable_path/Frameworks from rpaths
1500 + 130f86ded1ce84f959f0b78c065211902faed546:
1501 Download stderr/stdout to a temporary FileOutErr
1502 + 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9:
1503 Release 0.25.0 (2019-05-01)
1504 + ed48a4a5fddbd93b057c3aa726e15720d79dcf8f:
1505 Add implementation to removed methods to address
1506 https://github.com/bazelbuild/bazel/issues/8226
1507 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
1508 Remove unsupported cpu attribute from cc_toolchains.
1509 + cccced1e7fc7eaf4ba8f2c9d73dbac72b2686df9:
1510 Release 0.25.1 (2019-05-07)
1511 + 0900660d67b53a56a13d1fa16a788e4cecbb1c0e:
1512 Use package identifier instead of package name
1513 + 85a5a2bd569a5274950fc7327a044c395248c024:
1514 Configure @androidsdk//:emulator_x86 and :emulator_arm to point
1515 to the unified emulator binary
1516 + 6549ac5bba3eef2b1813b5a75757437383bf38f0:
1517 Release 0.25.2 (2019-05-10)
1518 + 0ff19c6d0adf3c0df94fff59ca3bd13cbcf99897:
1519 Fix StandaloneTestStrategy.appendStderr
1520```
1521
Bazel Release System48845c32019-05-23 15:21:53 -04001522Incompatible changes:
1523
1524 - Flip --incompatible_windows_escape_jvm_flags to true. See
1525 https://github.com/bazelbuild/bazel/issues/7486
1526
Klaus Aehlig63bf1152019-05-28 10:41:12 +02001527This release contains contributions from many people at Google, as well as George Gensure, Keith Smiley, Robert Sayre.
Bazel Release System48845c32019-05-23 15:21:53 -04001528
Klaus Aehlig63bf1152019-05-28 10:41:12 +02001529## Release 0.25.2 (2019-05-10)
Bazel Release System6549ac52019-05-10 16:44:09 -04001530
Klaus Aehlig63bf1152019-05-28 10:41:12 +02001531```
1532Baseline: 03662462941953dad23af88693804b8b1d4430b9
Bazel Release System6549ac52019-05-10 16:44:09 -04001533
Klaus Aehlig63bf1152019-05-28 10:41:12 +02001534Cherry picks:
Bazel Release System6549ac52019-05-10 16:44:09 -04001535
Klaus Aehlig63bf1152019-05-28 10:41:12 +02001536 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
1537 Windows: fix native test wrapper's arg. escaping
1538 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
1539 Flip --incompatible_windows_escape_jvm_flags
1540 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
1541 Sort DirectoryNode children to ensure validity.
1542 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
1543 Conditionally use deprecated signature for initWithContentsOfURL
1544 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
1545 Add http_archive entries for testing with various JDK versions.
1546 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
1547 Now that ubuntu1804 uses JDK 11, remove explicit
1548 ubuntu1804_java11 tests.
1549 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
1550 Fix wrong name of ubuntu1804_javabase9 task.
1551 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
1552 Remove @executable_path/Frameworks from rpaths
1553 + 130f86ded1ce84f959f0b78c065211902faed546:
1554 Download stderr/stdout to a temporary FileOutErr
1555 + 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9:
1556 Release 0.25.0 (2019-05-01)
1557 + ed48a4a5fddbd93b057c3aa726e15720d79dcf8f:
1558 Add implementation to removed methods to address
1559 https://github.com/bazelbuild/bazel/issues/8226
1560 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
1561 Remove unsupported cpu attribute from cc_toolchains.
1562 + cccced1e7fc7eaf4ba8f2c9d73dbac72b2686df9:
1563 Release 0.25.1 (2019-05-07)
1564 + 0900660d67b53a56a13d1fa16a788e4cecbb1c0e:
1565 Use package identifier instead of package name
1566 + 85a5a2bd569a5274950fc7327a044c395248c024:
1567 Configure @androidsdk//:emulator_x86 and :emulator_arm to point
1568 to the unified emulator binary
1569```
1570
1571* Add fix for https://github.com/bazelbuild/bazel/issues/8254
1572* Add fix for https://github.com/bazelbuild/bazel/issues/8280
1573
1574## Release 0.25.1 (2019-05-07)
1575
1576```
1577Baseline: 03662462941953dad23af88693804b8b1d4430b9
1578
1579Cherry picks:
1580
1581 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
1582 Windows: fix native test wrapper's arg. escaping
1583 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
1584 Flip --incompatible_windows_escape_jvm_flags
1585 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
1586 Sort DirectoryNode children to ensure validity.
1587 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
1588 Conditionally use deprecated signature for initWithContentsOfURL
1589 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
1590 Add http_archive entries for testing with various JDK versions.
1591 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
1592 Now that ubuntu1804 uses JDK 11, remove explicit
1593 ubuntu1804_java11 tests.
1594 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
1595 Fix wrong name of ubuntu1804_javabase9 task.
1596 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
1597 Remove @executable_path/Frameworks from rpaths
1598 + 130f86ded1ce84f959f0b78c065211902faed546:
1599 Download stderr/stdout to a temporary FileOutErr
1600 + 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9:
1601 Release 0.25.0 (2019-05-01)
1602 + ed48a4a5fddbd93b057c3aa726e15720d79dcf8f:
1603 Add implementation to removed methods to address
1604 https://github.com/bazelbuild/bazel/issues/8226
1605 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
1606 Remove unsupported cpu attribute from cc_toolchains.
1607```
1608
1609Adding a commit which reintroduces the implementation for cc_common.compile and cc_common.link https://github.com/bazelbuild/bazel/issues/8226
Bazel Release Systemcccced12019-05-07 13:52:56 -04001610
Bazel Release System2ab38662019-05-01 17:41:28 -04001611## Release 0.25.0 (2019-05-01)
1612
1613```
1614Baseline: 03662462941953dad23af88693804b8b1d4430b9
1615
1616Cherry picks:
1617
1618 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
1619 Windows: fix native test wrapper's arg. escaping
1620 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
1621 Flip --incompatible_windows_escape_jvm_flags
1622 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
1623 Sort DirectoryNode children to ensure validity.
1624 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
1625 Conditionally use deprecated signature for initWithContentsOfURL
1626 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
1627 Add http_archive entries for testing with various JDK versions.
1628 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
1629 Now that ubuntu1804 uses JDK 11, remove explicit
1630 ubuntu1804_java11 tests.
1631 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
1632 Fix wrong name of ubuntu1804_javabase9 task.
1633 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
1634 Remove @executable_path/Frameworks from rpaths
1635 + 130f86ded1ce84f959f0b78c065211902faed546:
1636 Download stderr/stdout to a temporary FileOutErr
1637```
1638
1639Incompatible changes:
1640
1641 - (Starlark rules) The legacy "py" provider can no longer be passed
1642 to or produced by native Python rules; use
1643 [PyInfo](https://docs.bazel.build/versions/master/skylark/lib/PyIn
1644 fo.html) instead. See
1645 [#7298](https://github.com/bazelbuild/bazel/issues/7298) for more
1646 information.
1647 - (Python rules) The `default_python_version` attribute of the
1648 `py_binary` and `py_test` rules has been renamed to
1649 `python_version`. Also, the `--force_python` flag has been
1650 renamed to `--python_version`. See
1651 [#7308](https://github.com/bazelbuild/bazel/issues/7308) for more
1652 information.
1653 - (Python rules) The python version now changes to whatever version
1654 is specified in a `py_binary` or `py_test`'s `python_version`
1655 attribute, instead of being forced to the value set by a command
1656 line flag. You can temporarily revert this change with
1657 `--incompatible_allow_python_version_transitions=false`. See
1658 [#7307](https://github.com/bazelbuild/bazel/issues/7307) for more
1659 information.
1660 - --incompatible_disable_third_party_license_checking` is enabled
1661 by default
1662 - Introduced --incompatible_use_python_toolchains, which supersedes
1663 --python_top/--python_path. See #7899 and #7375 for more
1664 information.
1665 - Python 3 is now the default Python version (for `py_binary` and
1666 `py_test` targets that don't specify the `python_version`
1667 attribute). Targets that are built for Python 3 will no longer
1668 have their output put in a separate `-py3` directory; instead
1669 there is now a separate `-py2` directory for Python 2 targets.
1670 See #7359 and #7593 for more information.
1671 - objc_library resource attributes are now disabled by default.
1672 Please migrate them to data instead. See
1673 https://github.com/bazelbuild/bazel/issues/7594 for more info.
1674 - Flip --incompatible_windows_escape_jvm_flags to true. See
1675 https://github.com/bazelbuild/bazel/issues/7486
1676
1677New features:
1678
1679 - genrules now support a $(RULEDIR) variable that resolves to the
1680 directory where the outputs of the rule are put.
1681 - Added --incompatible_windows_native_test_wrapper flag: enables
1682 using the Bash-less test wrapper on Windows. (No-op on other
1683 platforms.)
1684
1685Important changes:
1686
1687 - incompatible_use_jdk11_as_host_javabase: makes JDK 11 the default
1688 --host_javabase for remote jdk
1689 (https://github.com/bazelbuild/bazel/issues/7219)
1690 - Makes genquery somepath output deterministic.
1691 - Tristate attributes of native rules now reject True/False (use
1692 1/0)
1693 - Rollback of "Tristate attributes of native rules now reject
1694 True/False (use 1/0)"
1695 - Tristate attributes of native rules now reject True/False (use
1696 1/0)
1697 - Added -incompatible_do_not_split_linking_cmdline flag. See #7670
1698 - Tristate attributes of native rules now temporarily accept
1699 True/False again
1700 - `--incompatible_disable_legacy_crosstool_fields` has been flipped
1701 (https://github.com/bazelbuild/bazel/issues/6861)
1702 `--incompatible_disable_expand_if_all_available_in_flag_set` has
1703 been flipped (https://github.com/bazelbuild/bazel/issues/7008)
1704 - `--incompatible_disable_legacy_crosstool_fields` has been flipped
1705 (https://github.com/bazelbuild/bazel/issues/6861)
1706 `--incompatible_disable_expand_if_all_available_in_flag_set...
1707 RELNOTES: None.
1708 - --incompatible_no_transitive_loads is enabled by default.
1709 - Makes TreeArtifact deterministic.
1710 - --incompatible_no_transitive_loads is enabled by default.
1711 - Android NDK C++ toolchain is now configured in Starlark. This
1712 should be a backwards compatible change, but in case of bugs
1713 blame unknown commit.
1714 - `--incompatible_disable_legacy_crosstool_fields` has been flipped
1715 (https://github.com/bazelbuild/bazel/issues/6861)
1716 `--incompatible_disable_expand_if_all_available_in_flag_set` has
1717 been flipped (https://github.com/bazelbuild/bazel/issues/7008)
1718 - --incompatible_no_transitive_loads is enabled by default.
1719 - --incompatible_bzl_disallow_load_after_statement is enabled
1720 - Added `--incompatible_require_ctx_in_configure_features`, see
1721 https://github.com/bazelbuild/bazel/issues/7793 for details.
1722 - Flag --incompatible_merge_genfiles_directory is flipped. This
1723 removes the directory `bazel-genfiles` in favor of `bazel-bin`.
1724 - previously deprecated flag --experimental_remote_spawn_cache was
1725 removed
1726 - `--incompatible_disallow_load_labels_to_cross_package_boundaries`
1727 is enabled by default
1728 - Fix an issue where the Android resource processor did not surface
1729 errors from aapt2 compile and link actions.
1730 - --incompatible_no_attr_license is enabled by default
1731 - `--incompatible_disable_crosstool_file` has been flipped
1732 (https://github.com/bazelbuild/bazel/issues/7320)
1733 - A new flag `--incompatible_string_join_requires_strings` is
1734 introduced. The sequence argument of `string.join` must contain
1735 only string elements.
1736 - --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
1737 s_tree has been flipped
1738 - Incompatible flag `--incompatible_disable_legacy_cc_provider` has
1739 been flipped (see https://github.com/bazelbuild/bazel/issues/7036
1740 for details).
1741 - Don't drop the analysis cache when the same --define flag is set
1742 multiple times and the last value is the same (e.g. if the
1743 current invocation was run with "--define foo=bar" and the
1744 previous one was run with "--define foo=baz --define foo=bar").
1745 - The --incompatible_disable_genrule_cc_toolchain_dependency flag
1746 has been flipped (see
1747 https://github.com/bazelbuild/bazel/issues/6867 for details).
1748 - Incompatible change
1749 `--incompatible_remove_cpu_and_compiler_attributes_from_cc_toolcha
1750 in` has been flipped (see
1751 https://github.com/bazelbuild/bazel/issues/7075 for details).
1752 - --noexperimental_java_coverage is a no-op flag.
1753 - --experimental_java_coverage/--incompatible_java_coverage flag was
1754 removed. See #7425.
1755 - incompatible_use_toolchain_providers_in_java_common: pass
1756 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
1757 APIs instead of configured targets
1758 (https://github.com/bazelbuild/bazel/issues/7186.)
1759 - --incompatible_remote_symlinks has been flipped. The remote
1760 caching and execution protocol will now represent symlinks in
1761 outputs as such. See
1762 https://github.com/bazelbuild/bazel/issues/7917 for more details.
1763 - Bazel is now ~20MiB smaller, from unbundling the Android rules'
1764 runtime dependencies.
1765
1766This release contains contributions from many people at Google, as well as Andreas Herrmann, Andrew Suffield, Andy Scott, Benjamin Peterson, Ed Baunton, George Gensure, Ian McGinnis, Ity Kaul, Jingwen Chen, John Millikin, Keith Smiley, Marwan Tammam, Mike Fourie, Oscar Bonilla, perwestling, petros, Robert Sayre, Ryan Beasley, silvergasp, Stanimir Mladenov, Travis Cline, Vladimir Chebotarev, ??.
1767
Bazel Release System7f8bc5f2019-04-02 12:26:16 -04001768## Release 0.24.1 (2019-04-02)
1769
1770```
1771Baseline: 235e76b0e756d05599a6cbe1663ff8e13df84a86
1772
1773Cherry picks:
1774
1775 + badd82e4c5cda7b3232481e1c63a5550ac898cd8:
1776 Automated rollback of commit
1777 1b4c37c38804559b5c1ade6f9c93501875e231b0.
1778 + 33e571939085dd158422e1b3503cfc738e0a3165:
1779 Fix the Python version select() mechanism to handle
1780 PY3-as-default
1781 + 56366ee3a73e2c92b2fa36a9840478202b9618ca:
1782 Set non-empty values for msvc_env_* when VC not installed
1783 + 22b3fbf4800113df51d603d943bd9eb9517ef904:
1784 Windows, test wrapper: fix broken integration test
1785 + f14d447cb56aee563f6e686b8f5b086a3bb55d47:
1786 Add whitelist file for starlark transitions
1787 + d99bc478db1f3414b4f6cd3dc14ca70aacf6b375:
1788 Update BUILD
1789 + 3529ad7ccf0c26dfb20a9d67b9d96de15f309f8b:
1790 Rename tools/function_transition_whitelist/BUILD to
1791 tools/whitelists/function_transition_whitelist/BUILD
1792 + de0612ad3ef7cc8c44069261befdeb0d15b97c10:
1793 Update bazel_toolchains to latest release and add toolchain
1794 config target for BuildKite CI (rbe_ubuntu1604)
1795 + 3e660ad178926648e8e10e2ee7a1a30b12f9b3d1:
1796 Automated rollback of commit
1797 087734009801242b83655efb863b2d5a761ae3dc.
1798 + 314cf1f9e4b332955c4800b2451db4e926c3e092:
1799 Pass -undefined dynamic_lookup to dynamic library linking
1800 actions on Mac
1801 + fc586a86b614667a21e5a01aea3544ac0338de78:
1802 Move cc_flags target into @bazel_tools//tools/cpp.
1803 + ea1703b30f9ac43a0c3262f5729c34658ed8d473:
1804 C++: Fix crash reported in #7721
1805 + 803801d1494f06f0ce977a1f2241ef6a4d85df09:
1806 Pass execution info to xml generating spawn. Fixes #7794
1807 + f092ec388a4b58788285b928c86f0f81561d4be4:
1808 Release 0.24.0 (2019-03-26)
1809 + c56c489119e6587975964c44ceb9e429ad950736:
1810 Wrap StatusRuntimeExceptions from GrpcRemoteCache
1811```
1812
1813Baseline: f092ec388a4b58788285b928c86f0f81561d4be4
1814
1815Cherrypicks:
1816+ c56c489119e6587975964c44ceb9e429ad950736: Wrap StatusRuntimeExceptions from GrpcRemoteCache
1817
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001818## Release 0.24.0 (2019-03-26)
Bazel Release System0e4525f2019-03-11 17:43:39 +01001819
1820```
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001821Baseline: 235e76b0e756d05599a6cbe1663ff8e13df84a86
Bazel Release System0e4525f2019-03-11 17:43:39 +01001822
1823Cherry picks:
1824
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001825 + badd82e4c5cda7b3232481e1c63a5550ac898cd8:
1826 Automated rollback of commit
1827 1b4c37c38804559b5c1ade6f9c93501875e231b0.
1828 + 33e571939085dd158422e1b3503cfc738e0a3165:
1829 Fix the Python version select() mechanism to handle
1830 PY3-as-default
Bazel Release System0e4525f2019-03-11 17:43:39 +01001831 + 56366ee3a73e2c92b2fa36a9840478202b9618ca:
1832 Set non-empty values for msvc_env_* when VC not installed
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001833 + 22b3fbf4800113df51d603d943bd9eb9517ef904:
1834 Windows, test wrapper: fix broken integration test
1835 + f14d447cb56aee563f6e686b8f5b086a3bb55d47:
1836 Add whitelist file for starlark transitions
1837 + d99bc478db1f3414b4f6cd3dc14ca70aacf6b375:
1838 Update BUILD
1839 + 3529ad7ccf0c26dfb20a9d67b9d96de15f309f8b:
1840 Rename tools/function_transition_whitelist/BUILD to
1841 tools/whitelists/function_transition_whitelist/BUILD
1842 + de0612ad3ef7cc8c44069261befdeb0d15b97c10:
1843 Update bazel_toolchains to latest release and add toolchain
1844 config target for BuildKite CI (rbe_ubuntu1604)
1845 + 3e660ad178926648e8e10e2ee7a1a30b12f9b3d1:
1846 Automated rollback of commit
1847 087734009801242b83655efb863b2d5a761ae3dc.
1848 + 314cf1f9e4b332955c4800b2451db4e926c3e092:
1849 Pass -undefined dynamic_lookup to dynamic library linking
1850 actions on Mac
1851 + fc586a86b614667a21e5a01aea3544ac0338de78:
1852 Move cc_flags target into @bazel_tools//tools/cpp.
1853 + ea1703b30f9ac43a0c3262f5729c34658ed8d473:
1854 C++: Fix crash reported in #7721
1855 + 803801d1494f06f0ce977a1f2241ef6a4d85df09:
1856 Pass execution info to xml generating spawn. Fixes #7794
Bazel Release System0e4525f2019-03-11 17:43:39 +01001857```
1858
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001859Incompatible changes:
Bazel Release System0e4525f2019-03-11 17:43:39 +01001860
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001861 - Added --incompatible_py3_is_default to test switching the default
1862 Python version to PY3 for py_binary/py_test targets that do not
1863 specify a version. See #7359.
1864 - //tools/cmd_line_differ has been renamed to //tools/aquery_differ
1865 & can now compare (in addition to command lines) inputs of
1866 actions given 2 aquery results.
1867 - java_(mutable_|)proto_library: removed strict_deps attribute.
1868 - The flag --incompatible_list_based_execution_strategy_selection
1869 was added and is used to ease the migration to the new style of
1870 specifying
1871 execution strategy selection and fallback behavior. The
1872 documentation for
1873 this flag is here: https://github.com/bazelbuild/bazel/issues/7480
1874 - Added --incompatible_py2_outputs_are_suffixed, for switching the
1875 bazel-bin symlink to point to Python 3 outputs instead of Python
1876 2 outputs. See
1877 [#7593](https://github.com/bazelbuild/bazel/issues/7593).
Bazel Release Systemf28ff222019-03-04 11:12:24 +01001878
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001879New features:
Bazel Release Systemf28ff222019-03-04 11:12:24 +01001880
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001881 - Make actions.args() object chainable.
1882 - Added --incompatible_windows_style_arg_escaping flag: enables
1883 correct subprocess argument escaping on Windows. (No-op on other
1884 platforms.)
1885 - Added --incompatible_windows_escape_jvm_flags flag: enables
1886 correct java_binary.jvm_flags and java_test.jvm_flags
1887 tokenization and escaping on Windows. (No-op on other platforms.)
Bazel Release Systemf28ff222019-03-04 11:12:24 +01001888
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001889Important changes:
Bazel Release Systemf28ff222019-03-04 11:12:24 +01001890
Bazel Release System4f5c17c2019-03-26 12:08:43 -04001891 - Allow running aquery against the current state of Skyframe
1892 - Added support for the "navigation" resource directory to Android
1893 resource processing in Bazel. This is used by the Navigation
1894 Architecture Component.
1895 - --incompatible_disable_runtimes_filegroups was flipped
1896 (https://github.com/bazelbuild/bazel/issues/6942)
1897 - Incompatible flag `--incompatible_linkopts_in_user_link_flags`
1898 has been flipped (https://github.com/bazelbuild/bazel/issues/6826)
1899 - Incompatible flag `--incompatible_dont_emit_static_libgcc` has
1900 been flipped (https://github.com/bazelbuild/bazel/issues/6825)
1901 - --incompatible_disallow_filetype is enabled by default.
1902 - Fixed issue where exceptions and stacktraces were silently
1903 swallowed in the Android resource processing pipeline.
1904 - `--incompatible_disable_expand_if_all_available_in_flag_set` has
1905 been flipped (https://github.com/bazelbuild/bazel/issues/7008)
1906 - --incompatible_disallow_dict_plus is enabled by default
1907 - Adds --incompatible_disable_objc_library_resources to disable
1908 resource attributes in objc_library. Please migrate these
1909 attributes to `data` instead.
1910 - --incompatible_disallow_old_style_args_add is enabled by default.
1911 - Using the `native` module in BUILD files is deprecated. It will
1912 be forbidden with --incompatible_disallow_native_in_build_file.
1913 - (Python rules) PyRuntimeInfo is exposed to Starlark, making it
1914 possible for Starlark rules to depend on or imitate `py_runtime`.
1915 The `files` attribute of `py_runtime` is no longer mandatory.
1916 - incompatible_use_toolchain_providers_in_java_common: pass
1917 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
1918 APIs instead of configured
1919 targetshttps://github.com/bazelbuild/bazel/issues/7186.
1920 - is_using_fission crosstool variable is now exposed in all compile
1921 actions when fission is active (it used to be exposed only for
1922 linking actions).
1923 - incompatible_use_toolchain_providers_in_java_common: pass
1924 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
1925 APIs instead of configured
1926 targetshttps://github.com/bazelbuild/bazel/issues/7186.
1927 - `py_runtime` gains a `python_version` attribute for specifying
1928 whether it represents a Python 2 or 3 interpreter.
1929 - `--incompatible_java_coverage` is enabled by default.
1930 - Starlark rules can safely declare attributes named "licenses"
1931 - When using
1932 --incompatible_list_based_execution_strategy_selection, Bazel
1933 will use remote execution by default (if you specify
1934 --remote_executor), otherwise persistent workers (if the action
1935 supports it), otherwise sandboxed local execution (if the action
1936 and platform supports it) and at last unsandboxed local
1937 execution. The flags --spawn_strategy and --strategy continue to
1938 work as before - this only sets new defaults for the case where
1939 you don't specify these flags.
1940 - Set default value of --incompatible_remap_main_repo to true.
1941 - Set default value of --incompatible_remap_main_repo to true.
1942
1943This release contains contributions from many people at Google, as well as Andrew Suffield, Brandon Lico, Chris Eason, Clint Harrison, Ed Schouten, Garrett Hopper, George Gensure, Greg, John Millikin, Julie, Keith Smiley, Laurent Le Brun, Ryan Beasley, Shmuel H, Travis Cline, Vladimir Chebotarev.
Bazel Release Systemf28ff222019-03-04 11:12:24 +01001944
Bazel Release Systemed104862019-02-26 18:36:00 +01001945## Release 0.23.0 (2019-02-26)
1946
1947```
1948Baseline: 441fd75d0047f8a998d784c557736ab9075db893
1949
1950Cherry picks:
1951
1952 + 6ca7763669728253606578a56a205bca3ea883e9:
1953 Fix a typo
1954 + 2310b1c2c8b2f32db238f667747e7d5672480f4a:
1955 Ignore SIGCHLD in test setup script
1956 + f9eb1b56706f91063e9d080b850fa56964e77324:
1957 Complete channel initialization in the event loop
1958```
1959
1960Incompatible changes:
1961
1962 - //src:bazel uses the minimal embedded JDK, if you want to
1963 avoid the extra steps of minimizing the JDK, use //src:bazel-dev
1964 instead.
1965 - //src:bazel uses the minimal embedded JDK, if you want to
1966 avoid the extra steps of building bazel with the minimized JDK,
1967 use //src:bazel-dev
1968 instead.
1969 - The default value of --host_platform and --platforms will be
1970 changed to not be dependent on the configuration. This means
1971 that setting
1972 --cpu or --host_cpu will not affect the target or host platform.
1973 - Toolchain resolution for cc rules is now enabled via an
1974 incompatible flag, --incompatible_enable_cc_toolchain_resolution.
1975 The previous
1976 flag, --enabled_toolchain_types, is deprecated and will be
1977 removed.
1978 - java_(mutable_|)proto_library: removed strict_deps attribute.
1979 - Python rules will soon reject the legacy "py" struct provider
1980 (preview by enabling --incompatible_disallow_legacy_py_provider).
1981 Upgrade rules to use PyInfo instead. See
1982 [#7298](https://github.com/bazelbuild/bazel/issues/7298).
1983 - java_(mutable_|)proto_library: removed strict_deps attribute.
1984 - Two changes to native Python rules: 1) `default_python_version`
1985 and `--force_python` are deprecated; use `python_version` and
1986 `--python_version` respectively instead. You can preview the
1987 removal of the deprecated names with
1988 --incompatible_remove_old_python_version_api. See
1989 [#7308](https://github.com/bazelbuild/bazel/issues/7308). 2) The
1990 version flag will no longer override the declared version of a
1991 `py_binary` or `py_test` target. You can preview this new
1992 behavior with --incompatible_allow_python_version_transitions.
1993 See [#7307](https://github.com/bazelbuild/bazel/issues/7307).
1994
1995Important changes:
1996
1997 - There is a new flag available
1998 `--experimental_java_common_create_provider_enabled_packages`
1999 that acts as a whitelist for usages of
2000 `java_common.create_provider`. The constructor will be deprecated
2001 in Bazel 0.23.
2002 - [#7024] Allow chaining of the same function type in aquery.
2003 - Introduces --local_{ram,cpu}_resources, which will take the place
2004 of --local_resources.
2005 - [#6930] Add documentation for the aquery command.
2006 - Incompatible flag `--incompatible_dont_emit_static_libgcc` has
2007 been flipped (https://github.com/bazelbuild/bazel/issues/6825)
2008 - Incompatible flag `--incompatible_linkopts_in_user_link_flags`
2009 has been flipped (https://github.com/bazelbuild/bazel/issues/6826)
2010 - Flag --incompatible_range_type is removed.
2011 - Flag --incompatible_disallow_slash_operator is removed.
2012 - Flag --incompatible_disallow_conflicting_providers is removed.
2013 - `--incompatible_disallow_data_transition` is now enabled by
2014 default
2015 - Allow inclusion of param files in aquery output
2016 - [#6985] Add test to verify aquery's behavior for Cpp action
2017 templates.
2018 - --incompatible_require_feature_configuration_for_pic was flipped
2019 (https://github.com/bazelbuild/bazel/issues/7007).
2020 - Also ignore module-info.class in multi-version Jars
2021 - objc_framework has been deleted. Please refer to
2022 apple_dynamic_framework_import and apple_static_framework_import
2023 rules available in
2024 [rules_apple](https://github.com/bazelbuild/rules_apple/blob/maste
2025 r/doc/rules-general.md)
2026 - --test_sharding_strategy=experimental_heuristic is no more
2027 - objc_bundle_library has been removed. Please migrate to
2028 rules_apple's
2029 [apple_resource_bundle](https://github.com/bazelbuild/rules_apple/
2030 blob/master/doc/rules-resources.md#apple_resource_bundle).
2031 - You can now use the attribute `aapt_version` or the flag
2032 `--android_aapt` to pick the aapt version for android_local_test
2033 tests
2034 - In --keep_going mode, Bazel now correctly returns a non-zero exit
2035 code when encountering a package loading error during target
2036 pattern parsing of patterns like "//foo:all" and "//foo/...".
2037 - The default value for --incompatible_strict_action_env has been
2038 flipped to 'false' again, as we discovered breakages for local
2039 execution users. We'll need some more time to figure out the best
2040 way to make this work for local and remote execution. Follow
2041 https://github.com/bazelbuild/bazel/issues/7026 for more details.
2042 - Locally-executed spawns tagged "no-cache" no longer upload their
2043 outputs to the remote cache.
2044 - Introduces --host_compiler flag to allow setting a compiler for
2045 host compilation when --host_crosstool_top is specified.
2046 - --incompatible_expand_directories is enabled by default
2047 - [aquery] Handle the case of aspect-on-aspect.
2048 - Fixed a longstanding bug in the http remote cache where the value
2049 passed to
2050 --remote_timeout would be interpreted as milliseconds instead of
2051 seconds.
2052 - Enable --incompatible_use_jdk10_as_host_javabase by default, see
2053 https://github.com/bazelbuild/bazel/issues/6661
2054 - Add --incompatible_use_jdk11_as_host_javabase: makes JDK 11 the
2055 default --host_javabase for remote jdk
2056 (https://github.com/bazelbuild/bazel/issues/7219)
2057 - Highlight TreeArtifact in aquery text output.
2058 - Locally-executed spawns tagged "no-cache" no longer upload their
2059 outputs to the remote cache.
2060 - java_common APIs now accept JavaToolchainInfo and JavaRuntimeInfo
2061 instead of configured targets for java_toolchain and java_runtime
2062 - cc_common.create_cc_toolchain_config_info is stable and available
2063 for production use
2064 - incompatible_use_toolchain_providers_in_java_common: pass
2065 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
2066 APIs instead of configured targets
2067 (https://github.com/bazelbuild/bazel/issues/7186)
2068 - --incompatible_strict_argument_ordering is enabled by default.
2069 - Bazel now supports reading cache hits from a repository cache,
2070 even if it doesn't have write access to the cache.
2071 - Adding arm64e to OSX CROSSTOOL.
2072 - Ignore package-level licenses on config_setting.
2073 - Add an optional output_source_jar parameter to java_common.compile
2074 - --incompatible_disable_objc_provider_resources is now enabled by
2075 default. This disables ObjcProvider's fields related to resource
2076 processing.
2077 - Explicitly set https.protocols and exclude TLSv1.3.
2078 - Bazel now validates that JAVA_HOME points to a valid JDK and
2079 falls back to auto-detection by looking up the path of `javac`.
2080 - Upgrade the embedded JDK version to 11.0.2.
2081 - Added --incompatible_disable_crosstool_file
2082 (https://github.com/bazelbuild/bazel/issues/7320)
2083 - --incompatible_disable_objc_provider_resources is now enabled by
2084 default. This disables ObjcProvider's fields related to resource
2085 processing.
2086 - --incompatible_disable_tools_defaults_package has been flipped.
2087 - For tests that do not generate a test.xml, Bazel now uses a
2088 separate action to generate one; this results in minor
2089 differences in the generated test.xml, and makes the generation
2090 more reliable overall.
2091 - incompatible_generate_javacommon_source_jar: java_common.compile
2092 now always generates a source jar, see
2093 https://github.com/bazelbuild/bazel/issues/5824.
2094 - New incompatible flag
2095 --incompatible_disallow_struct_provider_syntax removes the
2096 ability for rule implementation functions to return struct. Such
2097 functions should return a list of providers instead. Migration
2098 tracking: https://github.com/bazelbuild/bazel/issues/7347
2099
2100This release contains contributions from many people at Google, as well as Benjamin Peterson, Ed Schouten, erenon, George Gensure, Greg Estren, Igal Tabachnik, Ittai Zeidman, Jannis Andrija Schnitzer, John Millikin, Keith Smiley, Kelly Campbell, Max Vorobev, nicolov, Robin Nabel.
2101
Bazel Release System2f82b332019-01-28 13:54:53 +01002102## Release 0.22.0 (2019-01-28)
2103
2104```
2105Baseline: deb028e3fb30b4e2953df16f35ab1f55a08ea8fa
2106
2107Cherry picks:
2108
2109 + a3a5975dca3ad04c19dc7d063fcf490a8cd612fd:
2110 Fix a race condition in remote cache
2111 + b8d0e1b05c225a4b943ce498194d069d18093d9a:
2112 Use a new GitHub token and KMS key for the release process.
2113 + 3759e3895503aa2bbd6943c5b568b8c050b9448f:
2114 remote: fix unexpected IO error (not a directory)
2115 + 4473bb1a9ec4282aa8497b86580d68e82415df4a:
2116 Fix a race condition in Bazel's Windows process management.
2117 + 9137fb940886aa516f32ca8a36feccedb545c99b:
2118 undo flag flip of --incompatible_strict_action_env
2119 + 12ab12e80ad1c9a3510aa4bbfdf3fddafc0bca00:
2120 Revert "Enabling Bazel to generate input symlinks as defined by
2121 RE AP?
2122 + 6345c747d8cb1819e70c853becadbf8a989decf1:
2123 Automated rollback of commit
2124 30536baa4a410d8c0a7adab5cd58cd8a2ac7e46c.
2125```
2126
Bazel Release System2f82b332019-01-28 13:54:53 +01002127
Bazel Release System2f82b332019-01-28 13:54:53 +01002128
Klaus Aehligcb59bd22019-01-28 14:20:37 +01002129The Bazel team is happy to announce a new release of Bazel,
2130[Bazel 0.22.0](https://github.com/bazelbuild/bazel/releases/tag/0.22.0).
Bazel Release System2f82b332019-01-28 13:54:53 +01002131
Klaus Aehligcb59bd22019-01-28 14:20:37 +01002132Baseline: deb028e3fb30b4e2953df16f35ab1f55a08ea8fa
Bazel Release System2f82b332019-01-28 13:54:53 +01002133
Klaus Aehligcb59bd22019-01-28 14:20:37 +01002134### Breaking changes
2135
2136- [`--incompatible_string_is_not_iterable`](https://github.com/bazelbuild/bazel/issues/5830)
2137
2138### Upcoming changes
2139
2140This release is a [migration window for the following changes](https://github.com/bazelbuild/bazel/labels/migration-0.22).
2141
2142- [`--incompatible_disallow_data_transition`](https://github.com/bazelbuild/bazel/issues/6153)
2143- [`--incompatible_dont_emit_static_libgcc`](https://github.com/bazelbuild/bazel/issues/6825)
2144- [`--incompatible_linkopts_in_user_link_flags`](https://github.com/bazelbuild/bazel/issues/6826)
2145- [`--incompatible_disable_legacy_crosstool_fields`](https://github.com/bazelbuild/bazel/issues/6861)
2146- [`--incompatible_use_aapt2_by_default`](https://github.com/bazelbuild/bazel/issues/6907)
2147- [`--incompatible_disable_runtimes_filegroups`](https://github.com/bazelbuild/bazel/issues/6942)
2148- [`--incompatible_disable_legacy_cc_provider`](https://github.com/bazelbuild/bazel/issues/7036)
2149- [`--incompatible_require_feature_configuration_for_pic`](https://github.com/bazelbuild/bazel/issues/7007)
2150- [`--incompatible_disable_expand_if_all_available_in_flag_set`](https://github.com/bazelbuild/bazel/issues/7008)
2151- [`--incompatible_disable_legacy_proto_provider`](https://github.com/bazelbuild/bazel/issues/7152)
2152- [`--incompatible_disable_proto_source_root`](https://github.com/bazelbuild/bazel/issues/7153)
2153
2154### General Changes
2155
2156- https://docs.bazel.build now supports versioned
2157 documentation. Use the selector at the top of the navigation bar
2158 to switch between documentation for different Bazel releases.
2159
2160- set `projectId` in all `PublishBuildToolEventStreamRequest`
2161
2162### Android
2163
2164- mobile-install now works with aapt2. Try it out with `bazel
2165 mobile-install --android_aapt=aapt2 //my:target`
2166
2167- Fixed issues with mobile-install v1 when deploying to Android 9 Pie
2168 devices. https://github.com/bazelbuild/bazel/issues/6814
2169
2170- Fixed issue where error messages from Android manifest merging
2171 actions were not fully propagated.
2172
2173- New incompatible change flag `--incompatible_use_aapt2_by_default`
2174 for defaulting to aapt2 in Android builds has been added. To build with
2175 aapt2 today, pass the flag
2176 `--incompatible_use_aapt2_by_default=true` or
2177 `--android_aapt=aapt2`, or set the `aapt_version` to `aapt2` on
2178 your `android_binary` or `android_local_test` target.
2179
2180- Fixed mobile-install v1 error when installing an app with native
2181 libraries onto an Android 9 (Pie) device. See
2182 https://github.com/bazelbuild/examples/issues/77
2183
2184- Fixed a mobile-install bug where `arm64-v8a` libraries were not
2185 deployed correctly on `arm64` devices. This was done by enabling
2186 incremental native lib deployment by default. A previously
2187 undocumented `--android_incremental_native_libs` flag is removed,
2188 and is now the regular behavior. See
2189 https://github.com/bazelbuild/bazel/issues/2239
2190
2191### Apple
2192
2193- The `objc_bundle` rule has been removed. Please migrate to rules_apple's
2194 [apple_bundle_import](https://github.com/bazelbuild/rules_apple/bl
2195 ob/master/doc/rules-resources.md#apple_bundle_import).
2196
2197- The `apple_stub_binary` rule has been deleted.
2198
2199- The `--xbinary_fdo` option that passes xbinary profiles has been added.
2200
2201### C++
2202
2203- `cc_toolchain.(static|dynamic)_runtime_libs` attributes are now optional
2204
2205### Packaging
2206
2207- `build_tar.py` in `tools/build_defs/pkg` now supports a JSON manifest
2208 that can be used to add paths that have symbols that can't be
2209 specified via the command line
2210
2211### Query
2212
2213- Filtering of inputs, outputs, and mnemonic filtering have been added to
2214 aquery.
2215
2216- The aquery and cquery query2 tests have been open-sourced.
2217
2218- The Bazel query how-to recommends ":*" instead of ":all", because "all" might
2219 be the name of a target.
2220
2221### Testing
2222
2223- The `--runs_per_test` has been placed in the TESTING documentation category.
2224
2225- A a clarifying message has been added to test case summary output when all
2226 test cases pass but the target fails.
2227
2228### Contributors
2229
2230This release contains contributions from many people at Google, as well as
2231Benjamin Peterson, Dave Lee, George Gensure, Gert van Dijk, Gustavo Storti
2232Salibi, Keith Smiley, Loo Rong Jie, Lukasz Tekieli, Mikhail Mazurskiy, Thi,
2233Travis Cline, Vladimir Chebotarev, and Yannic.
Bazel Release System2f82b332019-01-28 13:54:53 +01002234
Bazel Release Systema189d422018-12-19 13:53:11 +01002235## Release 0.21.0 (2018-12-19)
2236
2237```
2238Baseline: cb9b2afbba3f8d3a1db8bf68e65d06f1b36902f5
2239
2240Cherry picks:
2241
2242 + 12b96466ee0d6ab83f7d4cd24be110bb5021281d:
2243 Windows, test wrapper: rename the associated flag
2244 + 7fc967c4d6435de2bb4e34aac00ca2e499f55fca:
2245 Use a fixed thread pool in ByteStreamBuildEventArtifactUploader
2246 + 798b9a989aa793655d29504edb5fb85f3143db84:
2247 Add --build_event_upload_max_threads option
2248 + dbe05df23ccf4c919379e0294e0701fd3f66739c:
2249 Update the version of skylib bundled in the distfile
2250```
2251
2252Incompatible changes:
2253
2254 - The --experimental_stl command line option is removed.
2255 - aquery defaults to human readable output format.
2256
2257New features:
2258
2259 - repository_ctx.download and repository_ctx.download_and_extract
2260 now return a struct.
2261 - Android Databinding v2 can be enabled with
2262 --experimental_android_databinding_v2.
2263
2264Important changes:
2265
2266 - The deprecated and unmaintained Docker rules in
2267 tools/build_defs/docker were removed. Please use
2268 https://github.com/bazelbuild/rules_docker instead.
2269 - The new --upload_query_output_using_bep query/cquery/aquery flag
2270 causes query outputs to be uploaded via BEP.
2271 - New incompatible flag --incompatible_strict_argument_ordering
2272 - --strict_android_deps and --strict_java_deps were renamed to
2273 --experimental_strict_java_deps
2274 - config_settings that select on "compiler" value instead of values
2275 = {"compiler" : "x"} should use flag_values =
2276 {"@bazel_tools//tools/cpp:compiler": "x"}.
2277 - The new --upload_query_output_using_bep query/cquery/aquery flag
2278 causes query outputs to be uploaded via BEP.
2279 - Turn on --incompatible_disable_sysroot_from_configuration
2280 - We revamped our Android with Bazel tutorial! Check it out
2281 [here](https://docs.bazel.build/versions/master/tutorial/android-a
2282 pp.html).
2283 - --incompatible_disallow_slash_operator is now on by default
2284 - Enable --experimental_check_desugar_deps by default. This flag
2285 rules out several types of invalid Android builds at compile-time.
2286 - The --max_config_changes_to_show option lists the names of
2287 options which
2288 have changed and thus caused the analysis cache to be dropped.
2289 - The --experimental_strict_action_env option has been renamed to
2290 --incompatible_strict_action_env and is now on by default. This
2291 means Bazel will no longer use the client's PATH and
2292 LD_LIBRARY_PATH environmental variables in the default action
2293 environment. If the old behavior is desired, pass
2294 --action_env=PATH and --action_env=LD_LIBRARY_PATH.
2295 --noincompatible_strict_action_env will also temporarily restore
2296 the old behavior. However, as --action_env is a more general and
2297 explicit way to pass client environmental variables into actions,
2298 --noincompatible_strict_action_env will eventually be deprecated
2299 and removed. See #6648 for more details.
2300 - XCRUNWRAPPER_LABEL has been removed. If you used this value
2301 before, please use @bazel_tools//tools/objc:xcrunwrapper instead.
2302 - --incompatible_static_name_resolution is no unable by default
2303 - We will phase out --genrule_strategy in favor of
2304 --strategy=Genrule=<value> (for genrules) or
2305 --spawn_strategy=<value> (for all actions).
2306 - --incompatible_package_name_is_a_function is now enabled by
2307 default
2308 - Dynamic execution is now available with
2309 --experimental_spawn_strategy. Dynamic execution allows a build
2310 action to run locally and remotely simultaneously, and Bazel
2311 picks the fastest action. This provides the best of both worlds:
2312 faster clean builds than pure local builds, and faster
2313 incremental builds than pure remote builds.
2314 - --incompatible_package_name_is_a_function is now enabled by
2315 default
2316 - New incompatible flag --incompatible_merge_genfiles_directory
2317 - grpc log now logs updateActionResult
2318 - CppConfiguration doesn't do package loading anymore. That means:
2319 * it's no longer needed to have C++ toolchain available when
2320 building non-C++ projects
2321 * bazel will not analyze C++ toolchain when not needed -> speedup
2322 ~2s on bazel startup when C++ rules using hermetic toolchain are
2323 not loaded
2324 - --incompatible_package_name_is_a_fu...
2325
2326This release contains contributions from many people at Google, as well as andy g scott ?, Attila Ol?h, Benjamin Peterson, Clint Harrison, Dave Lee, Ed Schouten, Greg Estren, Gregor Jasny, Jamie Snape, Jerry Marino, Loo Rong Jie, Or Shachar, Sevki Hasirci, William Chargin.
2327
Bazel Release System85378562018-11-30 15:34:16 +01002328## Release 0.20.0 (2018-11-30)
2329
2330```
2331Baseline: 7bf7f031c332dc483257248d1c1f98ad75bbc83b
2332
2333Cherry picks:
2334
2335 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
2336 update bazel-toolchains pin to latest release Part of changes to
2337 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
2338 before 0.17.0 are not compatible with bazel 0.19.0 or above.
2339 + 241f28d05424db2d11ee245dc856b992258505e3:
2340 Revert "Toggle --incompatible_disable_late_bound_option_defaults
2341 flag."
2342 + f7e5aef145c33968f658eb2260e25630dc41cc67:
2343 Add cc_toolchain targets for the new entries in the default
2344 cc_toolchain_suite.
2345 + d2920e32ec7f3f8551a693d33c17b19f1b802145:
2346 Revert "WindowsFileSystem: open files with delete-sharing"
2347```
2348
2349[Breaking changes in 0.20](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Abreaking-change-0.20)
2350
2351 - [--incompatible_remove_native_http_archive](https://github.com/bazelbuild/bazel/issues/6570).
2352 - [--incompatible_remove_native_git_repository](https://github.com/bazelbuild/bazel/issues/6569).
2353 - [--incompatible_disable_cc_toolchain_label_from_crosstool_proto](https://github.com/bazelbuild/bazel/issues/6434).
2354 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6384).
2355 - [--incompatible_disable_cc_configuration_make_variables](https://github.com/bazelbuild/bazel/issues/6381).
2356 - [--incompatible_disallow_conflicting_providers](https://github.com/bazelbuild/bazel/issues/5902).
2357 - [--incompatible_range_type](https://github.com/bazelbuild/bazel/issues/5264).
2358
2359[0.20 is a migration window for the following changes](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Amigration-0.20)
2360
2361 - [--incompatible_use_jdk10_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6661)
2362 - [--incompatible_use_remotejdk_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6656)
2363 - [--incompatible_disable_sysroot_from_configuration](https://github.com/bazelbuild/bazel/issues/6565)
2364 - [--incompatible_provide_cc_toolchain_info_from_cc_toolchain_suite](https://github.com/bazelbuild/bazel/issues/6537)
2365 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6383)
2366 - [--incompatible_package_name_is_a_function](https://github.com/bazelbuild/bazel/issues/5827)
2367
2368[Breaking changes in the next release (0.21)](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Abreaking-change-0.21)
2369
2370 - [--incompatible_use_jdk10_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6661)
2371 - [--incompatible_use_remotejdk_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6656)
2372 - [--incompatible_disable_sysroot_from_configuration](https://github.com/bazelbuild/bazel/issues/6565)
2373 - [--incompatible_provide_cc_toolchain_info_from_cc_toolchain_suite](https://github.com/bazelbuild/bazel/issues/6537)
2374 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6383)
2375 - [--incompatible_disallow_data_transition](https://github.com/bazelbuild/bazel/issues/6153)
2376 - [--incompatible_package_name_is_a_function](https://github.com/bazelbuild/bazel/issues/5827)
2377 - [--incompatible_disallow_slash_operator](https://github.com/bazelbuild/bazel/issues/5823)
2378 - [--incompatible_static_name_resolution](https://github.com/bazelbuild/bazel/issues/5637)
2379
2380Incompatible changes:
2381
2382 - the --experimental_no_dotd_scanning_with_modules command line
2383 argument is not supported anymore.
2384 - The --prune_cpp_modules command line option is not supported
2385 anymore.
2386 - the --experimental_prune_cpp_input_discovery command line option
2387 is not supported anymore.
2388
2389New features:
2390
2391 - Added support for Android NDK r18.
2392
2393Important changes:
2394
2395 - The 'default' parameter of attr.output and attr.output_list is
2396 removed. This is controlled by
2397 --incompatible_no_output_attr_default
2398 - A number of platform-related Starlark APIs which were previously
2399 marked "experimental" are now disabled by default, and may be
2400 enabled via --experimental_platforms_api
2401 - Make legacy-test-support ("legacy_test-<api-level>") from
2402 android_sdk_repository neverlink. The legacy test support
2403 libraries shouldn't be built into test binaries. To make them
2404 available at runtime, developers should declare them via
2405 uses-library:
2406 https://developer.android.com/training/testing/set-up-project#andr
2407 oid-test-base
2408 - query remote server Capabilities (per REAPI v2)
2409 - CppRules: All cc_toolchains depended on from
2410 cc_toolchain_suite.toolchains are now analyzed when not using
2411 platforms in order to select the right cc_toolchain.
2412 - removed obsolete --explicit_jre_deps flag.
2413 - Incompatible flag
2414 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
2415 flipped.
2416 - Improve error messaging when unsupport proguard options are
2417 specified at the library level.
2418 - Incompatible flag
2419 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
2420 flipped.
2421 - Incompatible flag
2422 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
2423 flipped.
2424 - The --incompatible_disable_late_bound_option_defaults flag has
2425 been flipped (#6384)
2426 - Incompatible flag
2427 --incompatible_disable_legacy_flags_cc_toolchain_api was flipped
2428 (#6434)
2429 - Fixed issue where ctx.resolve_command created conflicting
2430 intermediate files when resolve_command was called multiple times
2431 within the same rule invocation with a long command attribute.
2432 - Incompatible flag
2433 --incompatible_disable_cc_configuration_make_variables was
2434 flipped (#6381)
2435 - If the --javabase flag is unset, it Bazel locates a JDK using
2436 the JAVA_HOME environment variable and searching the PATH. If no
2437 JDK is found --javabase will be empty, and builds targeting Java
2438 will not
2439 be supported. Previously Bazel would fall back to using the
2440 embedded
2441 JDK as a --javabase, but this is no longer default behaviour. A
2442 JDK should
2443 be explicitly installed instead to enable Java development
2444 - Bazel will now shut down when idle for 5 minutes and the system
2445 is low on RAM (linux only).
2446 - CROSSTOOL file is now read from the package of cc_toolchain, not
2447 from
2448 the package of cc_toolchain_suite. This is not expected to break
2449 anybody since
2450 cc_toolchain_suite and cc_toolchain are commonly in the same
2451 package.
2452 - All overrides of Starlark's ctx.new_file function are now
2453 deprecated.
2454 Try the `--incompatible_new_actions_api` flag to ensure your
2455 code is forward-compatible.
2456 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
2457 was flipped.
2458 - Introduce --(no)shutdown_on_low_sys_mem startup flag to toggle
2459 idle low-memory shutdown, disabled by default.
2460 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
2461 was flipped.
2462 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
2463 was flipped.
2464 - CppRules: All cc_toolchains depended on from
2465 cc_toolchain_suite.toolchains are now analyzed when not using
2466 platforms in order to select the right cc_toolchain.
2467 - The function `attr.license` is deprecated and will be removed.
2468 It can be disabled now with `--incompatible_no_attr_license`.
2469 - `range()` function now returns a lazy value
2470 (`--incompatible_range_type` is now set by default).
2471 - The code coverage report now includes the actual paths to header
2472 files instead of the ugly,
2473 Bazel generated, virtual includes path.
2474 - `--incompatible_disallow_conflicting_providers` has been switched
2475 to true
2476 - Add new flag `--incompatible_disable_systool_from_configration` to
2477 disable loading the systool from CppConfiguration.
2478 - Add new flag `--incompatible_disable_sysroot_from_configuration`
2479 to
2480 disable loading the systool from CppConfiguration.
2481 - Sorting remote Platform properties for remote execution. May
2482 affect cache keys!
2483 - Use different server log files per Bazel server process; java.log
2484 is
2485 now a symlink to the latest log.
2486
2487This release contains contributions from many people at Google, as well as a7g4 <a7g4@a7g4.net>, Alan <alan.agius@betssongroup.com>, Asaf Flescher <asafflesch@gmail.com>, Benjamin Peterson <bp@benjamin.pe>, Ed Schouten <ed.schouten@prodrive-technologies.com>, George Gensure <ggensure@uber.com>, George Kalpakas <kalpakas.g@gmail.com>, Greg <gregestren@users.noreply.github.com>, Irina Iancu <iirina@users.noreply.github.com>, Keith Smiley <keithbsmiley@gmail.com>, Loo Rong Jie <loorongjie@gmail.com>, Mark Zeren <mzeren@vmware.com>, Petros Eskinder <petroseskinder@users.noreply.github.com>, rachcatch <rachelcatchpoole@hotmail.com>, Robert Brown <robert.brown@gmail.com>, Robert Gay <robert.gay@redfin.com>, Salty Egg <2281521+zhouhao@users.noreply.github.com>.
2488
Bazel Release Systemcb3e2982018-11-19 11:19:38 -05002489## Release 0.19.2 (2018-11-19)
2490
2491```
2492Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
2493
2494Cherry picks:
2495
2496 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
2497 Fix the "nojava" platform and enable full presubmit checks for
2498 the various JDK platforms now that we have enough GCE resources.
2499 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
2500 Add openjdk_linux_archive java_toolchain for nojava platform.
2501 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
2502 Automated rollback of commit
2503 19a401c38e30ebc0879925a5caedcbe43de0028f.
2504 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
2505 Windows: Fix Precondition check for addDynamicInputLinkOptions
2506 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
2507 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
2508 it exists.
2509 + e025726006236520f7e91e196b9e7f139e0af5f4:
2510 Update turbine
2511 + 5f312dd1678878fb7563eae0cd184f2270346352:
2512 Fix event id for action_completed BEP events
2513 + f0c844c77a2406518c4e75c49188390d5e281d3d:
2514 Release 0.19.0 (2018-10-29)
2515 + c3fb1db9e4e817e8a911f5b347b30f2674a82f7c:
2516 Do not use CROSSTOOL to select cc_toolchain
2517 + 8e280838e8896a6b5eb5421fda435b96b6f8de60:
2518 Windows Add tests for msys gcc toolchain and mingw gcc toolchain
2519 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
2520 update bazel-toolchains pin to latest release Part of changes to
2521 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
2522 before 0.17.0 are not compatible with bazel 0.19.0 or above.
2523 + eb2af0f699350ad187048bf814a95af23f562c77:
2524 Release 0.19.1 (2018-11-12)
2525 + 6bc452874ddff69cbf7f66186238032283f1195f:
2526 Also update cc_toolchain.toolchain_identifier when
2527 CC_TOOLCHAIN_NAME is set
2528 + f7e5aef145c33968f658eb2260e25630dc41cc67:
2529 Add cc_toolchain targets for the new entries in the default
2530 cc_toolchain_suite.
2531 + 683c302129b66a8999f986be5ae7e642707e978c:
2532 Read the CROSSTOOL from the package of the current cc_toolchain,
2533 not from --crosstool_top
2534```
2535
2536- Fixes regression #6662, by fixing tools/cpp/BUILD
2537- Fixes regression #6665, by setting the toolchain identifier.
2538- CROSSTOOL file is now read from the package of cc_toolchain, not from the
2539 package of cc_toolchain_suite. This is not expected to break anybody since
2540 cc_toolchain_suite and cc_toolchain are commonly in the same package.
2541
Bazel Release System684f1092018-11-12 10:26:58 -05002542## Release 0.19.1 (2018-11-12)
2543
2544```
2545Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
2546
2547Cherry picks:
2548
2549 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
2550 Fix the "nojava" platform and enable full presubmit checks for
2551 the various JDK platforms now that we have enough GCE resources.
2552 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
2553 Add openjdk_linux_archive java_toolchain for nojava platform.
2554 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
2555 Automated rollback of commit
2556 19a401c38e30ebc0879925a5caedcbe43de0028f.
2557 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
2558 Windows: Fix Precondition check for addDynamicInputLinkOptions
2559 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
2560 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
2561 it exists.
2562 + e025726006236520f7e91e196b9e7f139e0af5f4:
2563 Update turbine
2564 + 5f312dd1678878fb7563eae0cd184f2270346352:
2565 Fix event id for action_completed BEP events
2566 + f0c844c77a2406518c4e75c49188390d5e281d3d:
2567 Release 0.19.0 (2018-10-29)
2568 + c3fb1db9e4e817e8a911f5b347b30f2674a82f7c:
2569 Do not use CROSSTOOL to select cc_toolchain
2570 + 8e280838e8896a6b5eb5421fda435b96b6f8de60:
2571 Windows Add tests for msys gcc toolchain and mingw gcc toolchain
2572 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
2573 update bazel-toolchains pin to latest release Part of changes to
2574 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
2575 before 0.17.0 are not compatible with bazel 0.19.0 or above.
2576```
2577
2578Important changes:
2579- Fix regression #6610, which prevents using the MINGW compiler on Windows.
2580
Klaus Aehlig5e5832c2018-10-31 15:45:53 +01002581## Release 0.19.0 (2018-10-29)
2582
2583```
2584Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
2585
2586Cherry picks:
2587
2588 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
2589 Fix the "nojava" platform and enable full presubmit checks for
2590 the various JDK platforms now that we have enough GCE resources.
2591 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
2592 Add openjdk_linux_archive java_toolchain for nojava platform.
2593 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
2594 Automated rollback of commit
2595 19a401c38e30ebc0879925a5caedcbe43de0028f.
2596 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
2597 Windows: Fix Precondition check for addDynamicInputLinkOptions
2598 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
2599 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
2600 it exists.
2601 + e025726006236520f7e91e196b9e7f139e0af5f4:
2602 Update turbine
2603 + 5f312dd1678878fb7563eae0cd184f2270346352:
2604 Fix event id for action_completed BEP events
2605```
2606
2607The Bazel team is happy to announce a new version of Bazel, [Bazel 0.19](https://github.com/bazelbuild/bazel/releases/tag/0.19.0).
2608
2609This document lists the major changes since Bazel 0.18.
2610
2611General changes
2612---------------
2613
2614* The `--incompatible_expand_directories` flag will automatically expand directories in command lines. Design doc: https://docs.google.com/document/d/11agWFiOUiz2htBLj6swPTob5z78TrCxm8DQE4uJLOwM
2615
2616* The `--loading_phase_threads` flag now defaults to `auto` (not 200, as was previously the case), which at the moment corresponds to the number of CPUs. This is appropriate for most users. However, if your sources reside on a network file system, increasing this value may yield better analysis-time performance when disk caches are cold.
2617
2618Android
2619-------
2620
2621* Fixed missing debug symbols when building native code with `--compilation_mode=dbg` that target Android ARM architectures by adding the `-g` flag.
2622
2623C++
2624---
2625
2626* Added `--incompatible_disable_legacy_flags_cc_toolchain_api` to deprecate legacy `cc_toolchain` Starlark API for legacy CROSSTOOL fields. Tracking issue is #6434. Migration docs are on the bazel website.
2627
2628* Runfiles in cc_test: the C++ runfiles library (`@bazel_tools//tools/cpp/runfiles`) can now create Runfiles objects for tests. See `//tools/cpp/runfiles/runfiles_src.h` (in the Bazel source tree) for documentation.
2629
2630* :cc_binary link action no longer hardcodes `-static-libgcc` for toolchains that support embedded runtimes (guarded by `--experimental_dont_emit_static_libgcc` temporarily).
2631
2632* The flag `--experimental_enable_cc_configuration_make_variables` is removed, use `--incompatible_disable_cc_configuration_make_variables` instead.
2633
2634Java
2635----
2636
2637* If the `--javabase` flag is unset, Bazel locates a JDK using the `JAVA_HOME` environment variable and searching the PATH. If no JDK is found `--javabase` will be empty, and builds targeting Java will not be supported. Previously Bazel would fall back to using the embedded JDK as a `--javabase`, but this is no longer default behaviour. A JDK should be explicitly installed instead to enable Java development.
2638
2639Code Coverage
2640-------------
2641
2642* LcovMerger was renamed to CoverageOutputGenerator.
2643
2644* Faster coverage collection for gcc compiled C++ code can now be tested by enabling it with `--experimental_cc_coverage`.
2645
2646Other Changes
2647-------------
2648
2649* Add `--apple_compiler` and `--apple_grte_top options`. These provide the equivalent of --compiler / --grte_top for the toolchain configured in --apple_crosstool_top.
2650
2651* There is now a `same_pkg_direct_rdeps` query function. See the query documentation for more details.
2652
2653* Propagating remote errors to the user even if `--verbose_failures=false` is set.
2654
2655* Add number of configured targets to analysis phase status output.
2656
2657* Bazel will now check stderr instead of stdout to decide if it is outputting to a terminal. `--isatty` is deprecated, use `--is_stderr_atty` instead.
2658
2659Future Changes
2660--------------
2661
2662* None of the C++ related incompatible flags mentioned in the 0.18 release were flipped, they will be flipped in the next release (0.20). We have created tracking issues for all the relevant incompatible flags:
2663 * [`--incompatible_disable_late_bound_option_defaults`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-late-bound-option-defaults): #6384
2664 * [`--incompatible_disable_depset_in_cc_user_flags`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-depsets-in-c-toolchain-api-in-user-flags): #6383
2665 * [`--incompatible_disable_cc_toolchain_label_from_crosstool_proto`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-crosstool-to-select-the-cc_toolchain-label): #6382
2666 * [`--incompatible_disable_cc_configuration_make_variables`](https://github.com/bazelbuild/bazel/issues/6381): #6381
2667 * [`--incompatible_disable_legacy_cpp_toolchain_skylark_api`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-legacy-c-configuration-api): #6380
2668 * [`incompatible_disable_legacy_flags_cc_toolchain_api`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-legacy-c-toolchain-api): #6434
2669
2670* In the 0.20 release the flags [`--incompatible_remove_native_git_repository`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#remove-native-git-repository) and [`--incompatible_remove_native_http_archive`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#remove-native-http-archive) will be turned on.
2671
2672Thank you to our contributors!
2673------------------------------
2674
2675This release contains contributions from many people at Google, as well as Andreas Herrmann, Andreas Hippler, Benjamin Peterson, David Ostrovsky, Ed Baunton, George Gensure, Igal Tabachnik, Jason Gavris, Loo Rong Jie, rmalik, and Yannic Bonenberger
2676
2677Thank you to everyone who contributed to this release!
2678
Bazel Release System92849b82018-10-31 15:41:11 +01002679## Release 0.18.1 (2018-10-31)
Bazel Release System36177972018-10-15 10:29:10 +02002680
2681```
Bazel Release System92849b82018-10-31 15:41:11 +01002682Baseline: c062b1f1730f3562d5c16a037b374fc07dc8d9a2
Bazel Release System36177972018-10-15 10:29:10 +02002683
2684Cherry picks:
2685
Bazel Release System92849b82018-10-31 15:41:11 +01002686 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
2687 Include also ext jars in the bootclasspath jar.
2688 + 2579b791c023a78a577e8cb827890139d6fb7534:
2689 Fix toolchain_java9 on --host_javabase=<jdk9> after
2690 7eb9ea150fb889a93908d96896db77d5658e5005
2691 + faaff7fa440939d4367f284ee268225a6f40b826:
2692 Release notes: fix markdown
2693 + b073a18e3fac05e647ddc6b45128a6158b34de2c:
2694 Fix NestHost length computation Fixes #5987
2695 + bf6a63d64a010f4c363d218e3ec54dc4dc9d8f34:
2696 Fixes #6219. Don't rethrow any remote cache failures on either
2697 download or upload, only warn. Added more tests.
2698 + c1a7b4c574f956c385de5c531383bcab2e01cadd:
2699 Fix broken IdlClassTest on Bazel's CI.
2700 + 71926bc25b3b91fcb44471e2739b89511807f96b:
2701 Fix the Xcode version detection which got broken by the upgrade
2702 to Xcode 10.0.
2703 + 86a8217d12263d598e3a1baf2c6aa91b2e0e2eb5:
2704 Temporarily restore processing of workspace-wide tools/bazel.rc
2705 file.
Bazel Release System83870d62018-10-29 10:31:13 -04002706 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
2707 Windows: Fix Precondition check for addDynamicInputLinkOptions
Bazel Release System83870d62018-10-29 10:31:13 -04002708 + e025726006236520f7e91e196b9e7f139e0af5f4:
2709 Update turbine
Bazel Release System36177972018-10-15 10:29:10 +02002710```
2711
Bazel Release System92849b82018-10-31 15:41:11 +01002712Important changes:
Bazel Release System83870d62018-10-29 10:31:13 -04002713
Bazel Release System92849b82018-10-31 15:41:11 +01002714 - Fix regression #6219, remote cache failures
Bazel Release System36177972018-10-15 10:29:10 +02002715
Klaus Aehlig7b417542018-10-29 15:46:36 +01002716## Release 0.18.0 (2018-10-15)
2717
2718```
2719Baseline: c062b1f1730f3562d5c16a037b374fc07dc8d9a2
2720
2721Cherry picks:
2722
2723 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
2724 Include also ext jars in the bootclasspath jar.
2725 + 2579b791c023a78a577e8cb827890139d6fb7534:
2726 Fix toolchain_java9 on --host_javabase=<jdk9> after
2727 7eb9ea150fb889a93908d96896db77d5658e5005
2728 + faaff7fa440939d4367f284ee268225a6f40b826:
2729 Release notes: fix markdown
2730 + b073a18e3fac05e647ddc6b45128a6158b34de2c:
2731 Fix NestHost length computation Fixes #5987
2732 + bf6a63d64a010f4c363d218e3ec54dc4dc9d8f34:
2733 Fixes #6219. Don't rethrow any remote cache failures on either
2734 download or upload, only warn. Added more tests.
2735 + c1a7b4c574f956c385de5c531383bcab2e01cadd:
2736 Fix broken IdlClassTest on Bazel's CI.
2737 + 71926bc25b3b91fcb44471e2739b89511807f96b:
2738 Fix the Xcode version detection which got broken by the upgrade
2739 to Xcode 10.0.
2740 + 86a8217d12263d598e3a1baf2c6aa91b2e0e2eb5:
2741 Temporarily restore processing of workspace-wide tools/bazel.rc
2742 file.
2743```
2744
2745General changes
2746
2747- New [bazelrc file list](https://docs.bazel.build/versions/master/user-manual.html#where-are-the-bazelrc-files).
2748 If you need to keep both the old and new lists of .rc files active
2749 concurrently to support multiple versions of Bazel, you can import the old
2750 file location into the new list using `try-import`. This imports a file if it
2751 exists and silently exits if it does not. You can use this method to account
2752 for a user file that may or may not exist
2753
2754- [.bazelignore](https://docs.bazel.build/versions/master/user-manual.html#.bazelignore)
2755 is now fully functional.
2756
2757- The startup flag `--host_javabase` has been renamed to
2758 `--server_javabase` to avoid confusion with the build flag
2759 `--host_javabase`.
2760
2761Android
2762
2763- The Android resource processing pipeline now supports persistence
2764 via worker processes. Enable it with
2765 `--persistent_android_resource_processor`. We have observed a 50% increase
2766 in build speed for clean local builds and up to 150% increase in build
2767 speed for incremental local builds.
2768
2769C++
2770
2771- In-memory package //tools/defaults has been removed (controlled by
2772 `--incompatible_disable_tools_defaults_package` flag). Please see
2773 [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-inmemory-tools-defaults-package)
2774 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
2775 behavior will be removed in Bazel 0.20.
2776
2777- Late bound option defaults (typical example was the `--compiler` flag, when
2778 it was not specified, it’s value was computed using the CROSSTOOL) are removed
2779 (controlled by `--incompatible_disable_late_bound_option_defaults` flag).
2780 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-late-bound-option-defaults)
2781 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
2782 behavior will be removed in Bazel 0.20.
2783
2784- Depsets are no longer accepted in `user_compile_flags` and `user_link_flags`
2785 in the C++ toolchain API (controlled by
2786 `--incompatible_disable_depset_in_cc_user_flags` flag) affects C++ users.
2787 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-depsets-in-c-toolchain-api-in-user-flags)
2788 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
2789 behavior will be removed in Bazel 0.20.
2790
2791- CROSSTOOL is no longer consulted when selecting C++ toolchain (controlled by
2792 `--incompatible_disable_cc_toolchain_label_from_crosstool_proto` flag).
2793 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-crosstool-to-select-the-cc_toolchain-label)
2794 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
2795
2796- You can now use [`toolchain_identifier` attribute](https://github.com/bazelbuild/bazel/commit/857d4664ce939f240b1d10d8d2baca6c6893cfcb)
2797 on `cc_toolchain` to pair it with CROSSTOOL toolchain.
2798
2799- C++ specific Make variables
2800 are no longer passed from the `CppConfiguration`, but from the C++ toolchain
2801 (controlled by `--incompatible_disable_cc_configuration_make_variables` flag).
2802 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-c-specific-make-variables-from-the-configuration)
2803 and migrate soon, the flag will be flipped
2804 in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
2805
2806- Skylark api accessing C++
2807 toolchain in `ctx.fragments.cpp` is removed (controlled by
2808 `--incompatible_disable_legacy_cpp_toolchain_skylark_api` flag).
2809 Please migrate soon, the flag will be flipped
2810 in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
2811
2812- cc_binary link action no longer hardcodes
2813 `-static-libgcc` for toolchains that support embedded runtimes
2814 (guarded by [`--experimental_dont_emit_static_libgcc`](https://source.bazel.build/bazel/+/2f281960b829e964526a9d292d4c3003e4d19f1c)
2815 temporarily). Proper deprecation using `--incompatible` flags will follow.
2816
2817Java
2818
2819- Future versions of Bazel will require a locally installed JDK
2820 for Java development. Previously Bazel would fall back to using
2821 the embedded `--server_javabase` if no JDK as available. Pass
2822 `--incompatible_never_use_embedded_jdk_for_javabase` to disable the
2823 legacy behaviour.
2824
2825- `--javacopt=` no longer affects compilations of tools that are
2826 executed during the build; use `--host_javacopt=` to change javac
2827 flags in the host configuration.
2828
2829Objective C
2830
2831- `objc_library` now supports the module_name attribute.
2832
2833Skylark
2834
2835- Adds `--incompatible_expand_directories` to automatically expand
2836 directories in skylark command lines. Design doc:
2837 https://docs.google.com/document/d/11agWFiOUiz2htBLj6swPTob5z78TrCxm8DQE4uJLOwM
2838
2839- Support fileset expansion in ctx.actions.args(). Controlled by
2840 `--incompatible_expand_directories`.
2841
2842Windows
2843
2844- `--windows_exe_launcher` is deprecated, this flag will be removed
2845 soon. Please make sure you are not using it.
2846
2847- Bazel now supports the symlink runfiles tree on Windows with
2848 `--experimental_enable_runfiles` flag. For more details, see
2849 [this doc](https://docs.google.com/document/d/1hnYmU1BmtCSJOUvvDAK745DSJQCapToJxb3THXYMrmQ).
2850
2851Other Changes
2852
2853- A new experimental option `--experimental_ui_deduplicate` has been added. It
2854 causes the UI to attempt to deduplicate messages from actions to keep the
2855 console output cleaner.
2856
2857- Add `--modify_execution_info`, a flag to customize action execution
2858 info.
2859
2860- Add ExecutionInfo to aquery output for ExecutionInfoSpecifier
2861 actions.
2862
2863- When computing `--instrumentation_filter`, end filter patterns with
2864 "[/:]" to match non-top-level packages exactly and treat
2865 top-level targets consistently.
2866
2867- Added the `bazel info server_log` command, which obtains the main Bazel
2868 server log file path. This can help debug Bazel issues.
2869
2870- `aapt shrink` resources now properly respect filter configurations.
2871
Bazel Release System50921e62018-09-21 12:27:04 +02002872## Release 0.17.2 (2018-09-21)
2873
2874```
2875Baseline: aa118ca818baf722aede0bc48d0a17584fa45b6e
2876
2877Cherry picks:
2878 + 0e0462589528154cb5160411991075a2000b5452:
2879 Update checker framework dataflow and javacutil versions
2880 + 3987300d6651cf0e6e91b395696afac6913a7d66:
2881 Stop using --release in versioned java_toolchains
2882 + 438b2773b8c019afa46be470b90bcf70ede7f2ef:
2883 make_deb: Add new empty line in the end of conffiles file
2884 + 504401791e0a0e7e3263940e9e127f74956e7806:
2885 Properly mark configuration files in the Debian package.
2886 + 9ed9d8ac4347408d15c8fce7c9c07e5c8e658b30:
2887 Add flag
2888 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfil
2889 es_tree.
2890 + 22d761ab42dfb1b131f1facbf490ccdb6c17b89c:
2891 Update protobuf to 3.6.1 -- add new files
2892 + 27303d79c38f2bfa3b64ee7cd7a6ef03a9a87842:
2893 Update protobuf to 3.6.1 -- update references
2894 + ddc97ed6b0367eb443e3e09a28d10e65179616ab:
2895 Update protobuf to 3.6.1 -- remove 3.6.0 sources
2896 + ead1002d3803fdfd4ac68b4b4872076b19d511a2:
2897 Fix protobuf in the WORKSPACE
2898 + 12dcd35ef7a26d690589b0fbefb1f20090cbfe15:
2899 Revert "Update to JDK 10 javac"
2900 + 7eb9ea150fb889a93908d96896db77d5658e5005:
2901 Automated rollback of
2902 https://github.com/bazelbuild/bazel/commit/808ec9ff9b5cec14f23a4b
2903 a106bc5249cacc8c54 and
2904 https://github.com/bazelbuild/bazel/commit/4c9149d558161e7d3e363f
2905 b697f5852bc5742a36 and some manual merging.
2906 + 4566a428c5317d87940aeacfd65f1018340e52b6:
2907 Fix tests on JDK 9 and 10
2908 + 1e9f0aa89dad38eeab0bd40e95e689be2ab6e5e5:
2909 Fix more tests on JDK 9 and 10
2910 + a572c1cbc8c26f625cab6716137e2d57d05cfdf3:
2911 Add ubuntu1804_nojava, ubuntu1804_java9, ubuntu1804_java10 to
2912 postsubmit.
2913 + 29f1de099e4f6f0f50986aaa4374fc5fb7744ee8:
2914 Disable Android shell tests on the "nojava" platform.
2915 + b495eafdc2ab380afe533514b3bcd7d5b30c9935:
2916 Update bazel_toolchains to latest release.
2917 + 9323c57607d37f9c949b60e293b573584906da46:
2918 Windows: fix writing java.log
2919 + 1aba9ac4b4f68b69f2d91e88cfa8e5dcc7cb98c2:
2920 Automated rollback of commit
2921 de22ab0582760dc95f33e217e82a7b822378f625.
2922 + 2579b791c023a78a577e8cb827890139d6fb7534:
2923 Fix toolchain_java9 on --host_javabase=<jdk9> after
2924 7eb9ea150fb889a93908d96896db77d5658e5005
2925 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
2926 Include also ext jars in the bootclasspath jar.
2927 + fdb09a260dead1e1169f94584edc837349a4f4a5:
2928 Release 0.17.1 (2018-09-14)
2929 + 1d956c707e1c843896ac58a341c335c9c149073d:
2930 Do not fail the build when gcov is not installed
2931 + 2e677fb6b8f309b63558eb13294630a91ee0cd33:
2932 Ignore unrecognized VM options in desugar.sh, such as the JVM 9
2933 flags to silence warnings.
2934```
2935
2936Important changes:
2937
2938 - In the future, Bazel will expand tree artifacts in runfiles, too,
2939 which causes the sandbox to link each file individually into the
2940 sandbox directory, instead of symlinking the entire directory. In
2941 this release, the behavior is not enabled by default yet. Please
2942 try it out via
2943 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
2944 s_tree and let us know if it causes issues. If everything looks
2945 good, this behavior will become the default in a following
2946 release.
2947
Bazel Release Systemfdb09a22018-09-14 12:15:54 +02002948## Release 0.17.1 (2018-09-14)
2949
2950```
2951Baseline: aa118ca818baf722aede0bc48d0a17584fa45b6e
2952
2953Cherry picks:
2954 + 0e0462589528154cb5160411991075a2000b5452:
2955 Update checker framework dataflow and javacutil versions
2956 + 3987300d6651cf0e6e91b395696afac6913a7d66:
2957 Stop using --release in versioned java_toolchains
2958 + 438b2773b8c019afa46be470b90bcf70ede7f2ef:
2959 make_deb: Add new empty line in the end of conffiles file
2960 + 504401791e0a0e7e3263940e9e127f74956e7806:
2961 Properly mark configuration files in the Debian package.
2962 + 9ed9d8ac4347408d15c8fce7c9c07e5c8e658b30:
2963 Add flag
2964 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfil
2965 es_tree.
2966 + 22d761ab42dfb1b131f1facbf490ccdb6c17b89c:
2967 Update protobuf to 3.6.1 -- add new files
2968 + 27303d79c38f2bfa3b64ee7cd7a6ef03a9a87842:
2969 Update protobuf to 3.6.1 -- update references
2970 + ddc97ed6b0367eb443e3e09a28d10e65179616ab:
2971 Update protobuf to 3.6.1 -- remove 3.6.0 sources
2972 + ead1002d3803fdfd4ac68b4b4872076b19d511a2:
2973 Fix protobuf in the WORKSPACE
2974 + 12dcd35ef7a26d690589b0fbefb1f20090cbfe15:
2975 Revert "Update to JDK 10 javac"
2976 + 7eb9ea150fb889a93908d96896db77d5658e5005:
2977 Automated rollback of
2978 https://github.com/bazelbuild/bazel/commit/808ec9ff9b5cec14f23a4b
2979 a106bc5249cacc8c54 and
2980 https://github.com/bazelbuild/bazel/commit/4c9149d558161e7d3e363f
2981 b697f5852bc5742a36 and some manual merging.
2982 + 4566a428c5317d87940aeacfd65f1018340e52b6:
2983 Fix tests on JDK 9 and 10
2984 + 1e9f0aa89dad38eeab0bd40e95e689be2ab6e5e5:
2985 Fix more tests on JDK 9 and 10
2986 + a572c1cbc8c26f625cab6716137e2d57d05cfdf3:
2987 Add ubuntu1804_nojava, ubuntu1804_java9, ubuntu1804_java10 to
2988 postsubmit.
2989 + 29f1de099e4f6f0f50986aaa4374fc5fb7744ee8:
2990 Disable Android shell tests on the "nojava" platform.
2991 + b495eafdc2ab380afe533514b3bcd7d5b30c9935:
2992 Update bazel_toolchains to latest release.
2993 + 9323c57607d37f9c949b60e293b573584906da46:
2994 Windows: fix writing java.log
2995 + 1aba9ac4b4f68b69f2d91e88cfa8e5dcc7cb98c2:
2996 Automated rollback of commit
2997 de22ab0582760dc95f33e217e82a7b822378f625.
2998 + 2579b791c023a78a577e8cb827890139d6fb7534:
2999 Fix toolchain_java9 on --host_javabase=<jdk9> after
3000 7eb9ea150fb889a93908d96896db77d5658e5005
3001 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
3002 Include also ext jars in the bootclasspath jar.
3003```
3004
3005Incompatible changes:
3006
3007 - Loading @bazel_tools//tools/build_defs/repo:git_repositories.bzl
3008 no longer works. Load @bazel_tools//tools/build_defs/repo:git.bzl
3009 instead.
3010 - If the same artifact is generated by two distinct but identical
3011 actions, and a downstream action has both those actions' outputs
3012 in its inputs, the artifact will now appear twice in the
3013 downstream action's inputs. If this causes problems in Skylark
3014 actions, you can use the uniquify=True argument in Args.add_args.
3015 - If the same artifact is generated by two distinct but identical
3016 actions, and a downstream action has both those actions' outputs
3017 in its inputs, the artifact will now appear twice in the
3018 downstream action's inputs. If this causes problems in Skylark
3019 actions, you can use the uniquify=True argument in Args.add_args.
3020 - Labels in C++ rules' linkopts attribute are not expanded anymore
3021 unless they are wrapped, e.g: $(location //foo:bar)
3022 - If the same artifact is generated by two distinct but identical
3023 actions, and a downstream action has both those actions' outputs
3024 in its inputs, the artifact will now appear twice in the
3025 downstream action's inputs. If this causes problems in Skylark
3026 actions, you can use the uniquify=True argument in Args.add_args.
3027 - New bazelrc file list.
3028 - Windows: when BAZEL_SH envvar is not defined and Bazel searches
3029 for a suitable bash.exe, Bazel will no longer look for Git Bash
3030 and no longer recommend installing it as a Bash implementation.
3031 See issue #5751.
3032 - New bazelrc file list.
3033
3034New features:
3035
3036 - The aquery command now supports --output=text.
3037 - Java, runfiles: the Java runfiles library is now in
3038 @bazel_tools//tools/java/runfiles. The old target
3039 (@bazel_tools//tools/runfiles:java-runfiles) is deprecated and
3040 will be removed in Bazel 0.18.0.
3041 - Java, runfiles: the Java runfiles library is now in
3042 @bazel_tools//tools/java/runfiles. The old target
3043 (@bazel_tools//tools/runfiles:java-runfiles) is deprecated and
3044 will be removed in Bazel 0.19.0 (not 0.18.0, as stated earlier).
3045
3046Important changes:
3047
3048 - Allow @ in package names.
3049 - Remove support for java_runtime_suite; use alias() together with
3050 select() instead.
3051 - Python wrapper scripts for MSVC are removed.
3052 - [JavaInfo] Outputs are merged in java_common.merge().
3053 - Faster analysis by improved parallelization.
3054 - --experimental_shortened_obj_file_path is removed.
3055 - Introduce the --remote_cache_proxy flag,
3056 which allows for remote http caching to connect
3057 via a unix domain socket.
3058 - No longer define G3_VERSION_INFO for c++ linkstamp compiles, as
3059 it was a duplicate of G3_TARGET_NAME.
3060 - Added support for Android NDK r17. The default STL is now
3061 `libc++`, and support for targeting `mips`, `mips64` and `ARMv5`
3062 (`armeabi`) has been removed.
3063 - Add aquery command to get analysis time information about the
3064 action graph.
3065 - Fixed compatibility with aar_import when using aapt2. AAPT2 is
3066 now supported for Android app builds without resource shrinking.
3067 To use it, pass the `--android_aapt=aapt2` flag or define
3068 android_binary.aapt_version=aapt2.
3069 - Code coverage is collected for Java binaries invoked from sh_test.
3070 - java_common.compile creates the native headers jar accesible via
3071 JavaInfo.outputs.native_headers.
3072 - Deleting deprecated no-op flag --show_package_location
3073 - The JDK shipped with Bazel was updated to JDK10.
3074 - Rename the startup flag --host_javabase to --server_javabase to
3075 avoid confusion with the build flag --host_javabase
3076 - newly added options --experimental_repository_hash_file and
3077 --experimental_verify_repository_rules allow to verify for
3078 repositories
3079 the directory generated against pre-recorded hashes. See
3080 documentation
3081 for those options.
3082 - Removed the gen_jars output group
3083 - --subcommands can now take a "pretty_print" value
3084 ("--subcommands=pretty_print") to print the
3085 arguments of subcommands as a list for easier reading.
3086 - follow-up to
3087 https://github.com/bazelbuild/bazel/commit/1ac359743176e659e9c7472
3088 645e3142f3c44b9e8
3089 - A rule error is now thrown if a Skylark rule implementation
3090 function returns multiple providers of the same type.
3091 - When using Bazel's remote execution feature and Bazel has to
3092 fallback to local execution for an action, Bazel used
3093 non-sandboxed
3094 local execution until now. From this release on, you can use the
3095 new
3096 flag --remote_local_fallback_strategy=<strategy> to tell Bazel
3097 which
3098 strategy to use in that case.
3099 - Execution Log Parser can now, when printing it out, filter the
3100 log by runner type
3101 - A rule error is now thrown if a Skylark rule implementation
3102 function returns multiple providers of the same type.
3103 - Removed the gen_jars output group
3104 - Removed the gen_jars output group
3105 - Set --defer_param_files to default to true.
3106 - Sort attribute lists in proto-form query output to fix
3107 non-deterministic genquery output.
3108 - Replace 0/1 with False/True for testonly attribute
3109 - bazel now supports a .bazelignore file specifying
3110 directories to be ignored; however, these directories still
3111 have to be well founded and, in particular, may not contain
3112 symlink cycles.
3113 - Add more detailed reporting of the differences between startup
3114 options.
3115 - update data binding to 3.2.0
3116 - For Android incremental dexing actions, Bazel now persists its
3117 DexBuilder process across individual actions. From our
3118 benchmarks, this results in a 1.2x speedup for clean local builds.
3119 - The standard `xcode_VERSION` feature now always uses exactly two
3120 components in the version, even if you specify `--xcode_version`
3121 with
3122 more or fewer than two.
3123 - A rule error will be thrown if a Skylark rule implementation
3124 function returns multiple providers of the same type. Try the
3125 `--incompatible_disallow_conflicting_providers` flag to ensure
3126 your code is forward-compatible.
3127 - Removed notion of FULLY_STATIC linking mode from C++ rules.
3128 - In documentation, we've renamed Skylark into Starlark.
3129 - Execution Log Parser can now, when printing it out, reorder the
3130 actions for easier text diffs
3131 - Linkstamps are no longer recompiled after server restart.
3132 - Use VanillaJavaBuilder and disable header compilation in
3133 toolchain_hostjdk8. The default toolchain will soon drop
3134 compatibility with JDK 8. Using a JDK 8 host_javabase
3135 will only be supported when using 'VanillaJavaBuilder' (which
3136 does not support Error Prone,
3137 Strict Java Deps, or reduced classpaths) and with header
3138 compilation disabled.
3139 - In the future, Bazel will expand tree artifacts in runfiles, too,
3140 which causes the sandbox to link each file individually into the
3141 sandbox directory, instead of symlinking the entire directory. In
3142 this release, the behavior is not enabled by default yet. Please
3143 try it out via
3144 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
3145 s_tree and let us know if it causes issues. If everything looks
3146 good, this behavior will become the default in a following
3147 release.
3148
Bazel Release System1bd58832018-08-13 15:41:26 +02003149## Release 0.16.1 (2018-08-13)
3150
3151```
3152Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5
3153
3154Cherry picks:
3155 + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
3156 reduce the size of bazel's embedded jdk
3157 + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
3158 remote: limit number of open tcp connections by default. Fixes
3159 #5491
3160 + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
3161 Fix autodetection of linker flags
3162 + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
3163 Fix autodetection of -z linker flags
3164 + 10219659f58622d99034288cf9f491865f818218:
3165 blaze_util_posix.cc: fix order of #define
3166 + ab1f269017171223932e0da9bb539e8a17dd99ed:
3167 blaze_util_freebsd.cc: include path.h explicitly
3168 + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
3169 openjdk: update macOS openjdk image. Fixes #5532
3170 + f45c22407e6b00fcba706eb62141cb9036bd38d7:
3171 Set the start time of binary and JSON profiles to zero correctly.
3172 + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
3173 remote: fix race on download error. Fixes #5047
3174 + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
3175 jdk: use parallel old gc and disable compact strings
3176 + 6bd0bdf5140525cb33dc2db068b210261d9df271:
3177 Add objc-fully-link to the list of actions that require the
3178 apple_env feature. This fixes apple_static_library functionality.
3179 + f330439fb970cfa17c70fc59c1458bb1c31c9522:
3180 Add the action_names_test_files target to the OSS version of
3181 tools/buils_defs/cc/BUILD.
3182 + d215b64362c4ede61c8ba87b5f3f57bce4785d15:
3183 Fix StackOverflowError on Windows. Fixes #5730
3184 + 366da4cf27b7f957ef39f89206db77fa2ac289df:
3185 In java_rules_skylark depend on the javabase through
3186 //tools/jdk:current_java_runtime
3187 + 30c601dc13d9e1b40a57434c022c888c7578cc56:
3188 Don't use @local_jdk for jni headers
3189 + c56699db5f9173739ba3ac55aa9fa69b6457a99b:
3190 'DumpPlatformClasspath' now dumps the current JDK's default
3191 platform classpath
3192```
3193
3194This release is a patch release that contains fixes for several serious
3195regressions that were found after the release of Bazel 0.16.0.
3196
3197In particular this release resolves the following issues:
3198
3199 - Bazel crashes with a StackOverflowError on Windows (See #5730)
3200 - Bazel requires a locally installed JDK and does not fall back
3201 to the embedded JDK (See #5744)
3202 - Bazel fails to build for Homebrew on macOS El Capitan (See #5777)
3203 - A regression in apple_static_library (See #5683)
3204
3205Please watch our blog for a more detailed release announcement.
3206
Bazel Release Systemb292ad12018-07-31 12:55:37 -04003207## Release 0.16.0 (2018-07-31)
Bazel Release System97564f62018-07-17 14:19:41 +02003208
3209```
Bazel Release Systemb292ad12018-07-31 12:55:37 -04003210Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5
Bazel Release System97564f62018-07-17 14:19:41 +02003211
3212Cherry picks:
Bazel Release Systemb292ad12018-07-31 12:55:37 -04003213 + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
3214 reduce the size of bazel's embedded jdk
3215 + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
3216 remote: limit number of open tcp connections by default. Fixes
3217 #5491
Bazel Release System97564f62018-07-17 14:19:41 +02003218 + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
3219 Fix autodetection of linker flags
3220 + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
3221 Fix autodetection of -z linker flags
Bazel Release Systemb292ad12018-07-31 12:55:37 -04003222 + 10219659f58622d99034288cf9f491865f818218:
3223 blaze_util_posix.cc: fix order of #define
3224 + ab1f269017171223932e0da9bb539e8a17dd99ed:
3225 blaze_util_freebsd.cc: include path.h explicitly
3226 + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
3227 openjdk: update macOS openjdk image. Fixes #5532
3228 + f45c22407e6b00fcba706eb62141cb9036bd38d7:
3229 Set the start time of binary and JSON profiles to zero correctly.
3230 + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
3231 remote: fix race on download error. Fixes #5047
3232 + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
3233 jdk: use parallel old gc and disable compact strings
Bazel Release System97564f62018-07-17 14:19:41 +02003234```
3235
Bazel Release Systemb292ad12018-07-31 12:55:37 -04003236Incompatible changes:
3237
3238 - The $(ANDROID_CPU) Make variable is not available anymore. Use
3239 $(TARGET_CPU) after an Android configuration transition instead.
3240 - The $(JAVA_TRANSLATIONS) Make variable is not supported anymore.
3241 - Skylark structs (using struct()) may no longer have to_json and
3242 to_proto overridden.
3243 - The mobile-install --skylark_incremental_res flag is no longer
3244 available, use the --skylark flag instead.
3245
3246New features:
3247
3248 - android_local_test now takes advantage of Robolectric's binary
3249 resource processing which allows for faster tests.
3250 - Allow @ in package names.
3251
Bazel Release System97564f62018-07-17 14:19:41 +02003252Important changes:
3253
Bazel Release Systemb292ad12018-07-31 12:55:37 -04003254 - Option --glibc is removed, toolchain selection relies solely on
3255 --cpu and --compiler options.
3256 - Build support for enabling cross binary FDO optimization.
3257 - The --distdir option is no longer experimental. This
3258 option allows to specify additional directories to look for
3259 files before trying to fetch them from the network. Files from
3260 any of the distdirs are only used if a checksum for the file
3261 is specified and both, the filename and the checksum, match.
3262 - Java coverage works now with multiple jobs.
3263 - Flip default value of --experimental_shortened_obj_file_path to
3264 true, Bazel now generates short object file path by default.
3265 - New rules for importing Android dependencies:
3266 `aar_import_external` and `aar_maven_import_external`.
3267 `aar_import_external` enables specifying external AAR
3268 dependencies using a list of HTTP URLs for the artifact.
3269 `aar_maven_import_external` enables specifying external AAR
3270 dependencies using the artifact coordinate and a list of server
3271 URLs.
3272 - The BAZEL_JAVAC_OPTS environment variable allows arguments, e.g.,
3273 "-J-Xmx2g", may be passed to the javac compiler during bootstrap
3274 build. This is helpful if your system chooses too small of a max
3275 heap size for the Java compiler during the bootstrap build.
3276 - --noexpand_configs_in_place is deprecated.
3277 - A tool to parse the Bazel execution log.
3278 - Support for LIPO has been fully removed.
3279 - Remove support for --discard_actions_after_execution.
3280 - Add --materialize_param_files flag to write parameter files even
3281 when actions are executed remotely.
3282 - Windows default system bazelrc is read from the user's
3283 ProgramData if present.
3284 - --[no]allow_undefined_configs no longer exists, passing undefined
3285 configs is an error.
Bazel Release System1281a022018-07-16 16:13:53 +02003286 - In remote caching we limit the number of open
3287 TCP connections to 100 by default. The number can be adjusted
3288 by specifying the --remote_max_connections flag.
3289
Bazel Release System5013a332018-06-26 14:07:47 +02003290## Release 0.15.0 (2018-06-26)
3291
3292```
3293Baseline: b93ae42e8e693ccbcc387841a17f58259966fa38
3294
3295Cherry picks:
3296 + 4b80f2455e7e49a95f3a4c9102a67a57dad52207:
3297 Add option to enable Docker sandboxing.
3298 + 6b1635279e8b33dc1ac505ac81825e38f8797a14:
3299 Allow disabling the simple blob caches via CLI flag overrides.
3300 + 4ec0a7524913ab2c4641368e3f8c09b347351a08:
3301 Use BUILD.bazel instead of BUILD for external projects
3302```
3303
3304Incompatible changes:
3305
3306 - Bazel now always runs binaries in with "bazel run" in
3307 interactive mode. The "--nodirect_run" command line option is now
3308 a no-op.
3309 - "bazel run --noas_test" is not supported anymore.
3310 - Indentation on the first line of a file was previously ignored.
3311 This is now fixed.
3312
3313New features:
3314
3315 - C++,runfiles: to access data-dependencies (runfiles) in C++
3316 programs, use the runfiles library built into Bazel. For usage
3317 info, see
3318 https://github.com/bazelbuild/bazel/blob/master/tools/cpp/runfiles
3319 /runfiles.h
3320
3321Important changes:
3322
3323 - Bazel now allows almost all 7-bit ASCII characters in labels.
3324 - Remove vestigial java_plugin.data attribute
3325 - Bazel supports including select Java 8 APIs into Android apps
3326 targeting pre-Nougat Android devices with
3327 --experimental_desugar_java8_libs
3328 - Flag `--incompatible_disable_glob_tracking` is removed.
3329 - SkyQuery's rbuildfiles now returns targets corresponding to
3330 broken packages.
3331 - Introduce build support for providing cache prefetch hints.
3332 - Update the skylark DefaultInfo documentation to spell out
3333 runfiles, data_runfiles and default_runfiles
3334 - An internal action for symlinking runfiles will use Command
3335 instead of a Spawns. This should have no functional chages; the
3336 only user visible consequence should be that the internal action
3337 is no longer be included in statistics when calculating processes
3338 count.
3339 - --batch is deprecated
3340 - execution strategies line no longer handles differently the case
3341 where all processes have the same strategy.
3342 - The --experimental_remote_spawn_cache flag is now enabled by
3343 default, and remote caching no longer needs --*_strategy=remote
3344 flags (it will fail if they are specified).
3345 - android_binary.aapt_version='aapt2' now supports en_XA and ar_XB
3346 - Added --apple_enable_auto_dsym_dbg flag.
3347 - non_propagated_deps has been removed from objc_library and
3348 apple_binary.
3349 - For Android projects, Bazel now supports building fonts as
3350 resources. See
3351 https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml
3352 for more information on the feature.
3353 - With --incompatible_no_support_tools_in_action_inputs enabled, Skylark
3354 action inputs are no longer scanned for tools. Move any such
3355 inputs to the newly introduced 'tools' attribute.
3356
Bazel Release System513bbf52018-06-08 14:15:20 +02003357## Release 0.14.1 (2018-06-08)
3358
3359```
3360Baseline: 5c3f5c9be7fa40d4fb3c35756891fab8483ca406
3361
3362Cherry picks:
3363 + f96f037f8f77335dc444844abcc31a372a3e1849:
3364 Windows, Java launcher: Support jar files under different drives
3365 + ff8162d01409db34893de98bd840a51c5f13e257:
3366 sh_configure.bzl: FreeBSD is also a known platform
3367 + 7092ed324137f03fcd34856bdb0595a1bdec3069:
3368 Remove unneeded exec_compatible_with from local_sh_toolchain
3369 + 57bc201346e61c62a921c1cbf32ad24f185c10c9:
3370 Do not autodetect C++ toolchain when
3371 BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 is present
3372 + 35a78c09cf2fbfc3de9c124d2142e3d72aac4348:
3373 remote: recursively delete incomplete downloaded output
3374 directory.
3375 + 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502:
3376 distfile: pack the archives needed later in the build
3377 + 27487c77387e457df18be3b6833697096d074eab:
3378 Slightly refactor SpawnAction to improve env handling
3379 + 1b333a2c37add9d04fe5bc5258ee4f73c93115e2:
3380 Fix Cpp{Compile,Link}Action environment and cache key computation
3381 + 3da8929963e9c70dff5d8859d6e988e6e7f4f9d7:
3382 Make SymlinkTreeAction properly use the configuration's
3383 environment
3384 + eca7b81cf8cc51e1fe56e5ed7d4ad5cd1668a17a:
3385 Add a missing dependency from checker framework dataflow to
3386 javacutils
3387 + 10a4de954c2061258d8222961fc3bd39516db49d:
3388 Release 0.14.0 (2018-06-01)
3389 + 4b80f2455e7e49a95f3a4c9102a67a57dad52207:
3390 Add option to enable Docker sandboxing.
3391 + 6b1635279e8b33dc1ac505ac81825e38f8797a14:
3392 Allow disabling the simple blob caches via CLI flag overrides.
3393```
3394
3395Bug fix for [#5336](https://github.com/bazelbuild/bazel/issues/5336)
3396Bug fix fot [#5308](https://github.com/bazelbuild/bazel/issues/5308)
3397
Bazel Release System3a592f62018-06-01 15:04:31 +02003398## Release 0.14.0 (2018-06-01)
3399
3400```
3401Baseline: 5c3f5c9be7fa40d4fb3c35756891fab8483ca406
3402
3403Cherry picks:
3404 + f96f037f8f77335dc444844abcc31a372a3e1849:
3405 Windows, Java launcher: Support jar files under different drives
3406 + ff8162d01409db34893de98bd840a51c5f13e257:
3407 sh_configure.bzl: FreeBSD is also a known platform
3408 + 7092ed324137f03fcd34856bdb0595a1bdec3069:
3409 Remove unneeded exec_compatible_with from local_sh_toolchain
3410 + 57bc201346e61c62a921c1cbf32ad24f185c10c9:
3411 Do not autodetect C++ toolchain when
3412 BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 is present
3413 + 35a78c09cf2fbfc3de9c124d2142e3d72aac4348:
3414 remote: recursively delete incomplete downloaded output
3415 directory.
3416 + 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502:
3417 distfile: pack the archives needed later in the build
3418 + 27487c77387e457df18be3b6833697096d074eab:
3419 Slightly refactor SpawnAction to improve env handling
3420 + 1b333a2c37add9d04fe5bc5258ee4f73c93115e2:
3421 Fix Cpp{Compile,Link}Action environment and cache key computation
3422 + 3da8929963e9c70dff5d8859d6e988e6e7f4f9d7:
3423 Make SymlinkTreeAction properly use the configuration's
3424 environment
3425 + eca7b81cf8cc51e1fe56e5ed7d4ad5cd1668a17a:
3426 Add a missing dependency from checker framework dataflow to
3427 javacutils
3428```
3429
3430Incompatible changes:
3431
3432 - Add --incompatible_disallow_legacy_javainfo flag.
3433 - Added flag --incompatible_disallow_old_style_args_add to help
3434 migrate from args.add() to args.add_all() / args.add_joined()
3435 where appropriate.
3436
3437New features:
3438
3439 - Bash,runfiles: use the new platform-independent library in
3440 `@bazel_tools//tools/bash/runfiles` to access runfiles
3441 (data-dependencies). See
3442 https://github.com/bazelbuild/bazel/blob/master/tools/bash/runfile
3443 s/runfiles.bash for usage information.
3444 - TemplateVariableInfo can now be constructed from Skylark.
3445 - The java_host_runtime_alias rule is now implemented in Java.
3446
3447Important changes:
3448
3449 - Flip default value of --experimental_shortened_obj_file_path to
3450 true, Bazel now generates short object file path by default.
3451 - Introduce fdo_profile rule that allows architecture-sensitive
3452 specification of fdo profiles.
3453 - canonicalize-flags no longer reorders the flags
3454 - CppRules: optional_compiler_flag was removed from CROSSTOOL, use
3455 features instead.
3456 - Labels of the form ////foo are disallowed.
3457 - The `/` operator is deprecated in favor of `//` (floor integer
3458 division).
3459 Try the `--incompatible_disallow_slash_operator` flag to ensure
3460 your code
3461 is forward-compatible.
3462 - Flip default value of --experimental_shortened_obj_file_path to
3463 true, Bazel now generates short object file path by default.
3464 - Exposed "mnemonic" and "env" fields on skylark "Action" objects.
3465 - Removed flag `--incompatible_disallow_toplevel_if_statement`.
3466 - Remove vestigial 'deps' and 'data' attributes from
3467 proto_lang_toolchain
3468 - Args objects (ctx.actions.args()) have new methods add_all() and
3469 add_joined() for building command lines using depsets.
3470 - `FileType` is deprecated and will be removed soon.
3471 Try the `--incompatible_disallow_filetype` flag to ensure your
3472 code
3473 is forward-compatible.
3474 - Introduce absolute_path_profile attribute that allows fdo_profile
3475 to accept absolute paths.
3476 - Support two-arg overloads for ctx.actions.args (eg.
3477 args.add("--foo", val))
3478 - Introduce 'tools' attribute to ctx.actions.run.
3479 - Fixed error message for proguard_apply_dictionary.
3480 - "bazel run" now lets one run interactive binaries. The
3481 BUILD_WORKSPACE_DIRECTORY and BUILD_WORKING_DIRECTORY environment
3482 variables indicate the working directory and the workspace root
3483 of the Bazel invocation. Tests are provided with an approximation
3484 of the official test environment.
3485 - repository rules are no longer restricted to return None.
3486 - Add --high_priority_workers flag.
3487 - CppRules: Feature configuration can be created from Skylark
3488 - Adds new-style JavaInfo provider constructor.
3489 - Make java_common.compile now uses java_toolchain javacopts by
3490 default; explicitly retrieving them using
3491 java_common.default_javac_opts is unnecessary.
3492 - CppRules: C++ command lines and env variables for C++ actions can
3493 be retrieved from feature configuration.
3494 - Skylark rule definitions may advertise providers that targets of
3495 the rule must propagate.
3496 - Bazel now supports running actions inside Docker containers.
3497 To use this feature, run "bazel build --spawn_strategy=docker
3498 --experimental_docker_image=myimage:latest".
3499 - Remote execution works for Windows binaries with launchers.
3500 - Fixing start/end lib expansion for linking. There were many cases
3501 where archive files were still being used with toolchains that
3502 support start/end lib. This change consolidates the places that
3503 make that decision so they can be more consistent.
3504 - Add support for reporting an error if
3505 android_test.binary_under_test contains incompatible versions of
3506 deps
3507 - We replaced the --experimental_local_disk_cache and
3508 --experimental_local_disk_cache_path flags into a single
3509 --disk_cache flag. Additionally, Bazel now tries to create the disk cache
3510 directory if it doesn't exist.
3511 - Save Blaze memory by not storing LinkerInput objects in
3512 LinkCommandLine
3513 - In the JavaInfo created by java_common.create_provider now
3514 includes both direct and transitive arguments in
3515 transitive_compile_time_jars and transitive_runtime_jars
3516 - Allow --worker_max_instances to take MnemonicName=value to
3517 specify max for each worker.
3518 - Allow java_toolchain.header_compiler to be an arbitrary executable
3519
Bazel Release System24c68ff2018-05-23 10:59:57 +02003520## Release 0.13.1 (2018-05-23)
3521
3522```
3523Baseline: fdee70e6e39b74bfd9144b1e350d2d8806386e05
3524
3525Cherry picks:
3526 + f083e7623cd03e20ed216117c5ea8c8b4ec61948:
3527 windows: GetOutputRoot() returns GetHomeDir()
3528 + fa36d2f48965b127e8fd397348d16e991135bfb6:
3529 Automated rollback of commit
3530 4465dae23de989f1452e93d0a88ac2a289103dd9.
3531 + 4abd2babcc50900afd0271bf30dc64055f34e100:
3532 Add error message on empty public resources
3533 + 2c957575ff24c183d48ade4345a79ffa5bec3724:
3534 test-setup: remove leading "./" from test name
3535 + e6eaf251acb3b7054c8c5ced58a49c054b5f23b1:
3536 Sort entries by segment when building a parent node to prevent
3537 unordered directory structures.
3538```
3539
3540Important changes:
3541
3542 - Remote Execution: Fixes a regression that produces directories with unsorted file/directory lists
3543
Bazel Release System1d9c6062018-04-30 10:45:38 +02003544## Release 0.13.0 (2018-04-30)
3545
3546```
3547Baseline: fdee70e6e39b74bfd9144b1e350d2d8806386e05
3548
3549Cherry picks:
3550 + f083e7623cd03e20ed216117c5ea8c8b4ec61948:
3551 windows: GetOutputRoot() returns GetHomeDir()
3552 + fa36d2f48965b127e8fd397348d16e991135bfb6:
3553 Automated rollback of commit
3554 4465dae23de989f1452e93d0a88ac2a289103dd9.
3555 + 4abd2babcc50900afd0271bf30dc64055f34e100:
3556 Add error message on empty public resources
3557 + 2c957575ff24c183d48ade4345a79ffa5bec3724:
3558 test-setup: remove leading "./" from test name
3559```
3560
3561Incompatible changes:
3562
3563 - Remove //tools/defaults:android_jar. Use
3564 @bazel_tools//tools/android:android_jar instead.
3565 - The flag --incompatible_show_all_print_messages is removed.
3566 Messages generated by `print` statements from any package will be
3567 displayed as
3568 DEBUG messages.
3569 - The --incompatible_disallow_uncalled_set_constructor flag is no
3570 longer available, the `set` constructor` is completely removed
3571 from Skylark.
3572 Use `depset` instead.
3573 - Variables PACKAGE_NAME and REPOSITORY_NAME are deprecated in
3574 favor of
3575 functions `package_name()` and `repository_name()`.
3576
3577 https://docs.bazel.build/versions/master/skylark/lib/native.html#p
3578 ackage_name
3579 - BUILD_TIMESTAMP now contains seconds (and not milliseconds) since
3580 the epoch.
3581
3582New features:
3583
3584 - Strings have a new .elems() method, that provides an iterator on
3585 the characters of the string.
3586 - Now you can access three functions in windows_cc_configure.bzl by:
3587 load("@bazel_tools/tools/cpp:windows_cc_configure.bzl",
3588 "<function_name>")
3589
3590Important changes:
3591
3592 - CppRules: Unified action_configs for static libraries
3593 - Remove support for blaze dump --vfs. It is no longer meaningful.
3594 - Enable dependency checking for aar_import targets.
3595 - internal_bootstrap_hack has been deprecated and removed.
3596 - Properly handle tree artifacts on the link command line coming
3597 from a cc_library dependency.
3598 - Allow C++ features to make proto_library emit smaller C++ code
3599 - The 'j2objc' configuration fragment is exposed to Skylark.
3600 - Remove the default content of the global bazelrc.
3601 - In int() function, do not auto-detect base if input starts with
3602 '0'.
3603 - Users can now pass --experimental_shortened_obj_file_path=true to
3604 have a shorter object file path, the object file paths (and all
3605 other related paths) will be constructed as following:
3606 If there's no two or more source files with the same base name:
3607
3608 <bazel-bin>/<target_package_path>/_objs/<target_name>/<source_base
3609 _name>.<extension>
3610 otherwise:
3611
3612 <bazel-bin>/<target_package_path>/_objs/<target_name>/N/<source_ba
3613 se_name>.<extension>
3614 N = the file?s order among the source files with the same
3615 basename, starts from 0.
3616 - Move (c/cxx)opts from legacy_compile_flags to user_compile_flags
3617 - CppRules: Remove optional_*_flag fields from CROSSTOOL, they are
3618 not
3619 used, and could be expressed using features.
3620 - Introduce --incompatible_disable_objc_provider_resources to turn
3621 off all resource-related fields of the Objc provider.
3622 - Removed the statement of "What does Bazel support?" as it's
3623 limiting/misleading. Added supported host OSes to
3624 "multi-platform" paragraph.
3625 - android_library AAR output now contains proguard.txt
3626 - Bazel now displays information about remote cache hits and
3627 execution strategies used in its UI after every build and test,
3628 and adds a corresponding line "process stats" to BuildToolLogs in
3629 BEP.
3630 - Print correct build result for builds with --aspects flag.
3631 - android_binary.manifest_merger is no longer supported.
3632
Bazel Release System546976c2018-04-11 17:34:19 +02003633## Release 0.12.0 (2018-04-11)
3634
3635```
3636Baseline: b33e5afa313322a7048044c44d854cbb666b988e
3637
3638Cherry picks:
3639 + 369409995bd75eeb0683fd24f7585d2a90320796:
3640 Automated rollback of commit
3641 c2b332b45e6ea41a14ecbd3c5f30782bcdeec301.
3642 + dbf779869751cc893ba240402d352c6e70be2978:
3643 Emit SJD errors even if we don't know the label of a dependency
3644 + 4c3098cfa6f00f90c7530b6f40d3e93062931c1d:
3645 Android tools: remove mtime-modifications
3646 + a1068c44a700ec2cff84cbd12592e9bfea25d754:
3647 NDK cc_toolchains: include bundled runtime libraries in
3648 cc_toolchain.all_files
3649 + b1be5816ec1bf8e1172c1bed4f29b4e6c6bb7202:
3650 runfiles,Python: remove library from @bazel_tools
3651 + 0a4622012ff796429220fe57d3217f262cc208a8:
3652 Fix visibility of def_parser for remote builds
3653 + 3c5373c50c7c492842f8a468906eda2c0bc90787:
3654 Remove visibility attribute from
3655 //third_party/def_parser:def_parser
3656 + f54d7e5293cc40ce3507a9adef530e46ab817585:
3657 Enable bulk writes in the HttpBlobStore
3658 + 04ce86e8ba96630f89a436167b7f3a195c5e50e7:
3659 remote/http: properly complete user promise
3660```
3661
3662Incompatible changes:
3663
3664 - The order of dict-valued attributes is now the order in the BUILD
3665 file (or in the Skylark dict they were created from) and not
3666 lexicographically sorted.
3667
3668New features:
3669
3670 - The new "--direct_run" flag on "blaze run" lets one run
3671 interactive binaries.
3672 - "blaze run --direct_run" with tests now gives the test an
3673 approximation of the official test environment.
3674 - "blaze run --direct_run" now exports the
3675 BUILD_{WORKSPACE,WORKING}_DIRECTORY variables to tell the binary
3676 about the cwd of the client and the workspace root.
3677 - New Android device test rule: android_instrumentation_test.
3678 - Add option to dump the action graph to a file: 'bazel dump
3679 --action_graph=/path/to/file'.
3680 - Pass `tags` from `java_import_external` rule to the generated
3681 `java_import` rule.
3682 - blaze query: use --proto:output_rule_attrs to filter for given
3683 attributes
3684 - Added Android NDK r15 support, including compatibility with
3685 Unified Headers.
3686 - Adds --ltobackendopt and --per_file_ltobackendopt for passing
3687 options to ThinLTO LTO backend compile actions only.
3688
3689Important changes:
3690
3691 - Fix how libraries to link is specified to archiver actions.
3692 - Fix how libraries_to_link are expanded in the archiver command
3693 line.
3694 - stop using --no-locals in android coverage builds
3695 - apple_binary can now generate dSYM outputs with the
3696 --apple_generate_dsym=true flag.
3697 - Fix FDO_STAMP_MACRO to only be set when fdoBuildStamp is not null.
3698 - Improved clarity of warning message for unsupported NDK revisions.
3699 - Add lint check for discouraging glob(["**/*.java"])
3700 - unifly lint glob(["**/*.java"]) message
3701 - Removed flags `--incompatible_checked_arithmetic`,
3702 `--incompatible_dict_literal_has_no_duplicates`,
3703 `--incompatible_disallow_keyword_only_args`, and `
3704 --incompatible_comprehension_variables_do_not_leak`.
3705 - Add "proto_source_root" flag to proto_library.
3706 - Updated default android_cpu value to armeabi-v7a
3707 - In skylark, print(target) now shows the provider keys of a
3708 target, as debug information.
3709 - The native http_archive rule is deprecated. Use the
3710 Skylark version available via
3711 load("@bazel_tools//tools/build_defs/repo:http.bzl",
3712 "http_archive")
3713 instead.
3714 - flaky_test_attempts supports the regex@attempts syntax, like
3715 runs_per_test.
3716 - Fixed include paths for NDK r13+ llvm-libc++ headers to
3717 `ndk/sources/cxx-stl/llvm-libc++/include` and
3718 `ndk/sources/cxx-stl/llvm-libc++abi/include`
3719 - --config flags now expand in place by default.
3720 - aar_import now sets java.transitive_exports.
3721 - repository_cache is no longer experimental and enabled by default.
3722 - BAZEL_LINKOPTS is now consulted when autoconfiguring c++ toolchain
3723 - The native git_repository rule is deprecated. Use the
3724 Skylark version available via
3725 load("@bazel_tools//tools/build_defs/repo:git.bzl",
3726 "git_repository")
3727 instead.
3728 - Removed flag `--incompatible_load_argument_is_label`.
3729 - CcToolchain: Introduced action_config for
3730 "c++-link-transitive-dynamic-library"
3731 - Use bazel dump --action_graph=/path/to/action.proto
3732 --action_graph:targets://foo:bar,//foo:foo to filter for certain
3733 targets in the action graph dump.
3734 - Added Android NDK r16 support. Use --cxxopt='-std=c++11` compile
3735 with the C++11 standard, and
3736 `--android_crosstool_top=@androidndk//:toolchain-libcpp` to use
3737 the `libc++` STL.
3738 - Add a --build_event_publish_all_actions flag to allow all actions
3739 to be published via the BEP.
3740 - C++: Introduced --experimental_drop_fully_static_linking_mode
3741 - Removed cc_inc_library, please use cc_library instead
3742 - CppRules: cc_binary/cc_test now enable 'static_linking_mode' or
3743 'dynamic_linking_mode'.
3744
Bazel Release Systemc86d6a02018-03-06 19:32:18 +01003745## Release 0.11.1 (2018-03-06)
3746
3747```
3748Baseline: 00d781ae78a8bd51d3c61b621d79f0bb095aff9e
3749
3750Cherry picks:
3751 + ea2d4c475febdbd59ca0e0ba46adc7be759f84e0:
3752 Update stub_finds_runfiles_test to be a real sh_test.
3753 + d855d8133f4efb73ebd5e82c54a9afb4c7565d46:
3754 java,runfiles: fix bugs in runfiles library
3755 + 56aeb04a064218b845ecc193d530c341c6ec854d:
3756 Fixing #4585: broken re-execution of orphaned actions.
3757 + cf3f81aef7c32019d70cbce218a64a03276268f0:
3758 remote: Add support for HTTP Basic Auth
3759 + 28bd997c1c8793973f63dcae4c22bbae49e7d8b7:
3760 Fixing test-setup.sh occasionally missing stdout/stderr, on
3761 systems where "tail --pid" is supported.
3762 + 109e4b4dc9e786e3a2d8d7cb245d18320dbe9216:
3763 Automated rollback of commit
3764 7e6837cc1d1aa4259f5c27ba3606b277b5f6c3e9.
3765 + b3d52b1b6d46a0f23cc91125c1d522e9d13433b4:
3766 Fix incorrect include directories when -no-canonical-prefixes is
3767 passed to clang
3768 + 1001141f0674ff4b611814edcb00a5183680ef4a:
3769 Roll forward of
3770 https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba1
3771 b52bcac5a3ff942029
3772 (https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba
3773 1b52bcac5a3ff942029). Fix #4625 by running the test process in a
3774 sub-shell.
3775 + fc98b44b6181fa4c3efd8613d887970629468d74:
3776 android,windows: bugfix in aar_resources_extractor
3777```
3778
3779Important changes:
3780
3781 - Fixes regression building Android rules on Windows.
3782
Bazel Release System09077a32018-02-23 11:09:18 -05003783## Release 0.11.0 (2018-02-23)
3784
3785```
3786Baseline: 00d781ae78a8bd51d3c61b621d79f0bb095aff9e
3787
3788Cherry picks:
3789 + ea2d4c475febdbd59ca0e0ba46adc7be759f84e0:
3790 Update stub_finds_runfiles_test to be a real sh_test.
3791 + d855d8133f4efb73ebd5e82c54a9afb4c7565d46:
3792 java,runfiles: fix bugs in runfiles library
3793 + 56aeb04a064218b845ecc193d530c341c6ec854d:
3794 Fixing #4585: broken re-execution of orphaned actions.
3795 + cf3f81aef7c32019d70cbce218a64a03276268f0:
3796 remote: Add support for HTTP Basic Auth
3797 + 28bd997c1c8793973f63dcae4c22bbae49e7d8b7:
3798 Fixing test-setup.sh occasionally missing stdout/stderr, on
3799 systems where "tail --pid" is supported.
3800 + 109e4b4dc9e786e3a2d8d7cb245d18320dbe9216:
3801 Automated rollback of commit
3802 7e6837cc1d1aa4259f5c27ba3606b277b5f6c3e9.
3803 + b3d52b1b6d46a0f23cc91125c1d522e9d13433b4:
3804 Fix incorrect include directories when -no-canonical-prefixes is
3805 passed to clang
3806 + 3904ac33a983fd8faebba1b52bcac5a3ff942029:
3807 Automated rollback of commit
3808 28bd997c1c8793973f63dcae4c22bbae49e7d8b7.
3809 + 1001141f0674ff4b611814edcb00a5183680ef4a:
3810 Roll forward of
3811 https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba1
3812 b52bcac5a3ff942029
3813 (https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba
3814 1b52bcac5a3ff942029). Fix #4625 by running the test process in a
3815 sub-shell.
3816```
3817
3818Incompatible changes:
3819
3820 - ctx.fragments.jvm is not available anymore.
3821
3822New features:
3823
3824 - java,runfiles: You can now depend on
3825 `@bazel_tools//tools/runfiles:java-runfiles` to get a
3826 platform-independent runfiles library for Java. See JavaDoc of
3827 https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles
3828 /java/com/google/devtools/build/runfiles/Runfiles.java for usage
3829 information.
3830
3831Important changes:
3832
3833 - The --[no]experimental_disable_jvm command line option is not
3834 supported anymore.
3835 - Allow expanding TreeArtifacts for libraries_to_link
3836 - Proguarded Android binaries can be built with incremental dexing.
3837 - aar_import now supports assets.
3838 - Crash in OutputJar::Close has been fixed
3839 - generator_* attributes are nonconfigurable.
3840 - Introduces --[no]keep_state_after_build
3841 - Add support for merged object files needed for -flto-unit.
3842 - Fix how libraries to link is specified to archiver actions.
3843 - Replace //tools/defaults:android_jar with
3844 @bazel_tools//tools/android:android_jar.
3845 //tools/defaults:android_jar will be removed in a future release.
3846 - java_common.compile supports neverlink
3847 - Resolved an issue where a failure in the remote cache would not
3848 trigger local re-execution of an action.
3849
Bazel Release Systeme1148362018-02-15 10:02:05 +01003850## Release 0.10.1 (2018-02-15)
3851
3852```
3853Baseline: 22c2f9a7722e8c8b7fdf8f5d30a40f1c4118e993
3854
3855Cherry picks:
3856 + f6ca78808722c8c119affdb33400838ee92d44b6:
3857 isable_presubmit
3858 + 65c13dd5a4c1b4b5a072f7680b8f1cf3c5079b52:
3859 Fix StreamResourceLeak error
3860 + e5436745e1732f5e43fc55f0deb5b19e23ce8524:
3861 windows: fix --symlink_prefix=/ throwing exception
3862 + 22ccdd1ebe1dc495e05d894a3325f6b05e681fb3:
3863 Fix turbine command lines with empty javacopts
3864 + 96c654d43eb2906177325cbc2fc2b1e90dbcc792:
3865 Remove EOL'd Linux flavours, bump CentOS to 6.9.
3866 + f0bec36864f10370cbbda4caa8beac2e0c5ee45b:
3867 Automated rollback of commit
3868 2aeaeba66857c561dd6d63c79a213f1cabc3650d.
3869 + 860af5be10b6bad68144d9d2d34173e86b40268c:
3870 Consolidate Error Prone resource handling
3871 + 2e631c99495f75270d2639542cefb531ec262d67:
3872 sandbox: properly add `tmpDir` to `writablePaths`
3873 + 5bfa5844d0d16d71e88002956e88402bfec88ef7:
3874 actions,temp: respect TMPDIR envvar
3875 + 6cc2ad8676d1ae0542b351a07a05ddbe5efac165:
3876 sandbox: add env[TMPDIR] instead of `tmpDir`
3877 + 40c757f4ab90214f95935672532a495c4551490a:
3878 Change git clone to pull all history, so all needed commits can
3879 be accessed.
3880 + 56aeb04a064218b845ecc193d530c341c6ec854d:
3881 Fixing #4585: broken re-execution of orphaned actions.
3882```
3883
3884Important changes:
3885
3886 - Resolved an issue where a failure in the remote cache would not
3887 trigger local re-execution of an action.
3888
Bazel Release System5bd27482018-02-01 09:43:33 +01003889## Release 0.10.0 (2018-02-01)
3890
3891```
3892Baseline: 22c2f9a7722e8c8b7fdf8f5d30a40f1c4118e993
3893
3894Cherry picks:
3895 + f6ca78808722c8c119affdb33400838ee92d44b6:
3896 isable_presubmit
3897 + 65c13dd5a4c1b4b5a072f7680b8f1cf3c5079b52:
3898 Fix StreamResourceLeak error
3899 + e5436745e1732f5e43fc55f0deb5b19e23ce8524:
3900 windows: fix --symlink_prefix=/ throwing exception
3901 + 22ccdd1ebe1dc495e05d894a3325f6b05e681fb3:
3902 Fix turbine command lines with empty javacopts
3903 + 96c654d43eb2906177325cbc2fc2b1e90dbcc792:
3904 Remove EOL'd Linux flavours, bump CentOS to 6.9.
3905 + f0bec36864f10370cbbda4caa8beac2e0c5ee45b:
3906 Automated rollback of commit
3907 2aeaeba66857c561dd6d63c79a213f1cabc3650d.
3908 + 860af5be10b6bad68144d9d2d34173e86b40268c:
3909 Consolidate Error Prone resource handling
3910 + 2e631c99495f75270d2639542cefb531ec262d67:
3911 sandbox: properly add `tmpDir` to `writablePaths`
3912 + 5bfa5844d0d16d71e88002956e88402bfec88ef7:
3913 actions,temp: respect TMPDIR envvar
3914 + 6cc2ad8676d1ae0542b351a07a05ddbe5efac165:
3915 sandbox: add env[TMPDIR] instead of `tmpDir`
3916 + 40c757f4ab90214f95935672532a495c4551490a:
3917 Change git clone to pull all history, so all needed commits can
3918 be accessed.
3919```
3920
3921Incompatible changes:
3922
3923 - In order to access the template variables $(JAVA) and
3924 $(JAVABASE), @bazel_tools//tools/jdk:current_java_runtime needs
3925 to be added to the toolchains= attribute from now on.
3926 - The ctx.middle_man function is not supported anymore.
3927 - The flag --incompatible_list_plus_equals_inplace is removed, its
3928 default behavior is preserved. += on lists now always mutates the
3929 left hand
3930 side.
3931 - --android_sdk no longer supports filegroup targets.
3932 - android_* rules no longer support legacy_native_support attribute.
3933
3934New features:
3935
3936 - query: Add option --noproto:flatten_selects to turn off
3937 flattening of selector lists in proto output.
3938 - New android test rule, android_local_test.
3939
3940Important changes:
3941
3942 - The --remote_rest_cache flag now respects --remote_timeout.
3943 - --experimental_java_coverage is available for testing.
3944 - The deprecated builtin `set` is no longer allowed even from within
3945 unexecuted code in bzl files. It's temporarily possible to use
3946 --incompatible_disallow_uncalled_set_constructor=false if this
3947 change causes
3948 incompatibility issues.
3949 - Linkstamping is now a separate and full-blown CppCompileAction,
3950 it's
3951 no longer a part of linking command.
3952 - Using `+`, `|` or `.union` on depsets is now deprecated. Please
3953 use the new
3954 constructor instead (see
3955 https://docs.bazel.build/versions/master/skylark/depsets.html).
3956 - config_feature_flag's default_value is optional. It is
3957 only an error to have a config_feature_flag with no default_value
3958 if that config_feature_flag has not been set in the configuration
3959 it is being evaluated in.
3960 - --[no]keep_incrementality_data is gone, replaced by the
3961 enum-valued --incremental_state_retention_strategy
3962 - Linkstamping is now a separate and full-blown CppCompileAction,
3963 it's
3964 no longer a part of linking command.
3965 - Added --checkHashMismatch flag to ZipFilterAction. Valid values
3966 are IGNORE, WARN and ERROR. --errorOnHashMismatch is deprecated,
3967 please use this flag instead.
3968 - Set build jobs equivalent to number of logical processors by
3969 default. Should improve build times significantly.
3970 - Added --(no)expand_test_suites flag.
3971 - Rename --keep_incrementality_data to --track_incremental_state
3972 - --remote_rest_cache was renamed to --remote_http_cache. Both
3973 options keep working in this release, but --remote_rest_cache
3974 will be
3975 removed in the next release.
3976 - Aspects-on-aspect see and propagate over aspect attributes.
3977 - --auth_* flags were renamed to --google_* flags. The old names
3978 will continue to work for this release but will be removed in the
3979 next
3980 release.
3981 - Remote Caching and Execution support output directories.
3982 - Remove defunct flags
3983 --experimental_incremental_dexing_for_lite_proto and
3984 --experimental_incremental_dexing_error_on_missed_jars that have
3985 long been enabled by default
3986 - New version of aapt2 and Resources.proto.
3987 - Make PIC and non PIC outputs for C++ compilation with Tree
3988 Artifacts
3989
Bazel Release System7b423cc2017-12-19 10:31:05 +01003990## Release 0.9.0 (2017-12-19)
Bazel Release System3d53cb02017-12-05 15:28:40 +01003991
3992```
Bazel Release System7b423cc2017-12-19 10:31:05 +01003993Baseline: ddd5ac16aeffa6c4693c348f73e7365240b1abc5
Bazel Release System3d53cb02017-12-05 15:28:40 +01003994
3995Cherry picks:
Bazel Release System7b423cc2017-12-19 10:31:05 +01003996 + 2cf560f83922e6df9626ba3ee063c1caf6797548:
3997 Update version of re2
3998 + a2d2615362c65be98629b39ce39754a325ed1c42:
3999 Check for null build file returned from getBuildFileForPackage.
4000 + 68c577afc2fb33b5e66b820bcc9043fed1071456:
4001 Fix some broken targets and failing tests.
4002 + 766ba8adc4487f17ebfc081aeba6f34b18b53d6c:
Bazel Release System3d53cb02017-12-05 15:28:40 +01004003 Automated rollback of commit
Bazel Release System7b423cc2017-12-19 10:31:05 +01004004 337f19cc54e77c45daa1d5f61bf0a8d3daf8268f.
4005 + a22d0e9c14e58b29d81f5a83bdcc6e5fce52eafe:
4006 Fix: uploading artifacts of failed actions to remote cache
4007 stopped working.
4008 + 03964c8ccb20d673add76c7f37245e837c3899b6:
4009 [java_common.compile] Name output source jar relative to the
4010 output jar name
Bazel Release System3d53cb02017-12-05 15:28:40 +01004011```
4012
Bazel Release System7b423cc2017-12-19 10:31:05 +01004013Incompatible changes:
4014
4015 - The deprecated `set` constructor is removed, along with the
4016 migration flag --incompatible_disallow_set_constructor. It is
4017 still temporarily
4018 allowed to refer to `set` from within unexecuted code.
4019 - The flag --incompatible_disallow_set_constructor is no longer
4020 available, the deprecated `set` constructor is not available
4021 anymore.
4022 - The path to the JVM executable is not accessible anymore as
4023 ctx.{fragments,host_fragments}.jvm.java_executable. Use
4024 JavaRuntimeInfo.java_executable_exec_path instead.
4025 - --clean_style is no longer an option.
4026
4027New features:
4028
4029 - Users can use win_def_file attribute to specify a DEF file for
4030 exporting symbols when build a shared library on Windows.
4031 - Add --experimental_android_resource_cycle_shrinking option to
4032 allow for more aggressive code and resource shrinking.
4033
4034Important changes:
4035
4036 - Late-bound attributes are exposed to skylark. This is a new API
4037 (`configuration_field()`) to depend on certain
4038 configuration-defined targets from skylark rules.
4039 - Document interaction between test_suite and target exclusions
4040 - AAR manifest files will come from the processed resource APK if it
4041 exists.
4042 RELNOTES: None for Blaze users.
4043 - Document interaction between test_suite and target exclusions
4044 - --keep_incrementality_data flag allows Bazel servers to be run in
4045 memory-saving non-incremental mode independent of --batch and
4046 --discard_analysis_cache.
4047 - Add deps attribute to Skylark maven_aar and maven_jar workspace
4048 rules.
4049 - Use --expand_configs_in_place as a startup argument to change the
4050 order in which --config expansions are interpreted.
4051 - SOURCE_DATE_EPOCH
4052 (https://reproducible-builds.org/specs/source-date-epoch/) can
4053 be used to override the timestamp used for stamped target (when
4054 using --stamp).
4055 - Package specifications can now be prefixed with `-` to indicate
4056 negation
4057 - transitive_source_jars is now exposed on JavaInfo.
4058 - Add six to deps of has_services=1 py_proto_librarys.
4059 - java_tests no complain when use_testrunner is explicitly set to 1
4060 and main_class is set.
4061 - transitive_source_jars is now exposed on JavaInfo.
4062 - Debug messages generated by `print()` are not being filtered out
4063 by --output_filter anymore, it's recommended not to use them in
4064 production code.
4065 - in the Label() function, relative_to_caller_repository is now
4066 deprecated.
4067 - java_tests no complain when use_testrunner is explicitly set to 1
4068 and main_class is set.
4069 - Bazel's default hash function was changed from MD5 to SHA256.
4070 In particular, this affects users of remote caching and
4071 execution, as
4072 all hashes will be SHA256 by default.
4073 - Remove redirects for domains be.bazel.build and cr.bazel.build
4074 from the source for docs.bazel.build (because those subdomains
4075 don't resolve here; they resolve to bazel.build, which has the
4076 redirects for them)
4077 - First argument of 'load' must be a label. Path syntax is removed.
4078 (label should start with '//' or ':').
4079 - Document startup option --host_javabase
4080 - The --host_platform and --platform flags are no longer
4081 experimental.
Bazel Release System3d53cb02017-12-05 15:28:40 +01004082
Bazel Release System0838aee2017-11-27 14:16:34 +01004083## Release 0.8.0 (2017-11-27)
4084
4085```
4086Baseline: cff0dc94f6a8e16492adf54c88d0b26abe903d4c
4087
4088Cherry picks:
4089 + 8a49b156c4edf710e3e1e0acfde5a8d27cc3a086:
4090 Fix ImportError on tools.android for junction_lib
4091 + 275ae45b1228bdd0f912c4fbd634b29ba4180383:
4092 Automated rollback of commit
4093 4869c4e17d5b1410070a1570f3244148d8f97b5d.
4094 + d0bf589f2716b3d139c210930371a684c6e158eb:
4095 Add a random number to action temp dir
4096 + 9738f35abddb7ef7a7ef314b5d2a52a3be1b830a:
4097 CcProtoLibrary: Don't add dynamic librarys to filesToBuild on
4098 Windows
4099 + 0d6ff477099fdf6c8c1c7d4e2104f9184afe0a2b:
4100 Automated rollback of commit
4101 0ebb3e54fc890946ae6b3d059ecbd50e4b5ec840.
4102```
4103
4104Incompatible changes:
4105
4106 - ctx.fragments.apple.{xcode_version,ios_minimum_os} is not
4107 supported anymore. The same information is accessible through the
4108 target @bazel_tools//tools/osx:current_xcode_config: point an
4109 implicit attribute to it (i.e.
4110 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
4111 nfig")) then use
4112 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].
4113 - ctx.fragments.apple.minimum_os_for_platform_type is not supported
4114 anymore. The same information is accessible through the target
4115 @bazel_tools//tools/osx:current_xcode_config: point an implicit
4116 attribute to it (i.e.
4117 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
4118 nfig")) then use
4119 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].minimum_o
4120 s_for_platform_type .
4121 - ctx.fragments.apple.sdk_version_for_platform is not supported
4122 anymore. The same information is accessible through the target
4123 @bazel_tools//tools/osx:current_xcode_config: point an implicit
4124 attribute to it (i.e.
4125 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
4126 nfig")) then use
4127 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].sdk_versi
4128 on_for_platform .
4129 - --javabase=<absolute path> and --host_javabase=<absolute path>
4130 are not supported anymore. If you need this functionality
4131 java_runtime_suite(name="suite", default=":runtime")
4132 java_runtime(name="runtime", java_home=<path to the JDK>) is an
4133 alternative.
4134 - The flag --incompatible_descriptive_string_representations is no
4135 longer available, old style string representations of objects are
4136 not supported
4137 anymore.
4138 - The flag --incompatible_disallow_set_constructor is no longer
4139 available, the deprecated `set` constructor is not available
4140 anymore.
4141 - += on lists now mutates them. `list1 += list2` is now equivalent
4142 to `list1.extend(list2)` and not equivalent to `list1 = list1 +
4143 list2` anymore.
4144 - the target_apple_env and apple_host_system_env methods on
4145 ctx.fragments.apple are not supported anymore. The same
4146 information is accessible through apple_common.target_apple_env
4147 and apple_common.apple_host_system_env . They need the Xcode
4148 configuration as an argument, which can be obtained by declaring
4149 an implicit dependency on it (i.e.
4150 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
4151 nfig")) and then calling e.g.
4152 apple_common.apple_host_system_env(ctx.attr._xcode_config[apple_co
4153 mmon.XcodeVersionConfig]).
4154 - C++ toolchain identifiers are not in the name of the output
4155 directory anymore.
4156 - Selecting on "xcode_version" and
4157 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
4158 What was config_setting(values={"$FOO_version": $VALUE}) is now
4159 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_
4160 flag": $VALUE}).
4161 - Selecting on "xcode_version" and
4162 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
4163 What was config_setting(values={"$FOO_version": $VALUE}) is now
4164 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_
4165 flag": $VALUE}).
4166 - The flag --incompatible_disallow_set_constructor is no longer
4167 available, the deprecated `set` constructor is not available
4168 anymore.
4169 - Selecting on "xcode_version" and
4170 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
4171 What was config_setting(values={"$FOO_version": $VALUE}) is now
4172 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_versi...
4173
4174New features:
4175
4176 - runfiles, sh: Shell scripts may now depend on
4177 //src/tools/runfiles:runfiles_sh_lib and source runfiles.sh. The
4178 script defines the `rlocation` function which returns runfile
4179 paths on every platform.
4180 - In addition to $(location), Bazel now also supports $(rootpath)
4181 to obtain
4182 the root-relative path (i.e., for runfiles locations), and
4183 $(execpath) to
4184 obtain the exec path (i.e., for build-time locations)
4185
4186Important changes:
4187
4188 - android_binary now supports custom debug keys via the debug_key
4189 attribute.
4190 - Updated Android proguard to 5.3.3. It now works with android-24+.
4191 - --experimental_use_parallel_android_resource_processing and
4192 --experimental_android_use_nocompress_extensions_on_apk are
4193 removed. These features are fully rolled out.
4194 - Fixes #2574
4195 - Fixes #3834
4196 - Enable experimental UI by default.
4197 - .
4198 RELNOTES: None.
4199 RELNOTES: No.
4200 - Add memory profiler.
4201 - [Bazel] {java,cc}_proto_library now look for dependencies in
4202 @com_google_protobuf, instead of in @com_google_protobuf_$LANG
4203 - Improved merge.sh script in cookbook.
4204 - Fixing regression to --experimental_remote_spawn_cache
4205 - Support for linker scripts in NativeDepsHelper (e.g.,
4206 android_binary)
4207 - Skylark semantics flags now affect WORKSPACE files and repository
4208 rules.
4209 - ctx.outputs.executable is deprecated. Use DefaultInfo(executable
4210 = ...) instead.
4211 - Update "mirror.bazel.build" urls to use https.
4212 - Improve --config logging when --announce_rc is present.
4213 - Document interaction between test_suite and target exclusions
4214 - Replace version numbers for Bazel installers with "<version>"
4215 (because this will change often)
4216 - Published command lines should have improved lists of effective
4217 options.
4218 - --incremental_dexing_binary_types has been removed. All builds
4219 are supported by incremental dexing (modulo proguard and some
4220 blacklisted dx flags).
4221 - Document --host_javabase, --host_java_toolchain
4222
Bazel Release System76b6d0a2017-10-18 14:34:11 +02004223## Release 0.7.0 (2017-10-18)
4224
4225```
4226Baseline: 5cc6246d429f7d9119b97ce263b4fd6893222e92
4227
4228Cherry picks:
4229 + e79a1107d90380501102990d82cbfaa8f51a1778:
4230 Windows,bootstrapping: fix build_windows_jni.sh
4231```
4232
4233Incompatible changes:
4234
4235 - The --output=location flag to 'bazel query' cannot be used with
4236 query expressions that involve the 'buildfiles' or 'loadfiles'
4237 operators. This also applies to 'genquery' rules.
4238 - Operators for equality, comparison, 'in' and 'not in' are no
4239 longer associative,
4240 e.g. x < y < z is now a syntax error. Before, it was parsed
4241 as: (x < y) < z.
4242 - In strings, octal sequences greater than \377 are now forbidden
4243 (e.g. "\\600").
4244 Previously, Blaze had the same behavior as Python 2, where
4245 "\\450" == "\050".
4246 - Using tabulation for identation is now fobidden in .bzl files
4247 - `load` is now a language keyword, it cannot be used as an
4248 identifier
4249 - lvalues must have define at least one variable (i.e. we forbid
4250 `[] = f()`).
4251 - Fixed a bug whereby multiple load() statements could appear on
4252 the same line
4253 - -extra_checks:off is no longer supported; use
4254 -XepDisableAllChecks instead
4255 - java_common.java_toolchain_attr is removed. Depend on the
4256 java_toolchain_alias() rule to accomplish the same thing.
4257 - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
4258 not supported anymore and were replaced with the
4259 cc_toolchain_alias() and java_runtime_alias() rules.
4260 - Noop flag --deprecated_generate_xcode_project deleted.
4261 - Objects in Skylark are converted to strings in a more descriptive
4262 and less harmful way (they don't leak information that shouldn't
4263 be accessed by Skylark code, e.g. nondeterministic memory addresses
4264 of objects).
4265 - `set` is deprecated in BUILD and .bzl files, please use `depset`
4266 instead. Ordering names have also been changed, please use "default",
4267 "postorder", "preorder", and "topological" instead of "stable",
4268 "compile", "naive_link", and "link" correspondingly.
4269 - Integer overflow (on signed 32 bit numbers) in BUILD/bzl files is
4270 an error.
4271 - Keyword-only syntax in a function definition is now forbidden
4272 e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`
4273 - --incompatible_comprehension_variables_do_not_leak defaults to
4274 "true."
4275 Iteration variable becomes inaccessible after a list/dict
4276 comprehension.
4277 - @bazel_tools//tools/build_defs/docker:docker.bzl is no longer
4278 available, please see https://github.com/bazelbuild/rules_docker.
4279
4280New features:
4281
4282 - Zipped LLVM profiles are now supported.
4283 - LIPO maps to ThinLTO for LLVM builds.
4284 - Change to handle LLVM FDO zipped profile contents correctly.
4285 - Do not disable fully dynamic linking with ThinLTO when invoked
4286 via LIPO options.
4287 - There is now a 'siblings' query function. See the query
4288 documentation for more details.
4289 - Added the print_action command, which outputs the
4290 actions needed to build a given target in the form of an
4291 ExtraActionSummary proto in text format.
4292 - android_binary now supports proguard_apply_dictionary to specify
4293 a custom dictionary to use for choosing names to obfuscate
4294 classes and members to.
4295
4296Important changes:
4297
4298 - Windows: bazel clean --expunge works
4299 - First argument of 'load' should be a label. Path syntax is
4300 deprecated (label should start with '//' or ':').
4301 - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
4302 instead of 0777).
4303 - The extension_safe attribute of apple_binary no longer validates
4304 transitive dependencies are compiled against extension_safe APIs.
4305 - Parentheses around the tuple are now mandatory in [a for b in c
4306 if 1, 2]
4307 - Adjust the thresholds for --test_verbose_timeout_warnings so that
4308 it can recommending timeout increases and won't recommend
4309 timeouts that are too close to the actual timeout.
4310 - Iterating on a `depset` object is deprecated. If you need an
4311 iterable, call the `.to_list()` method first.
4312 - Bazel now uses tools from action_configs in Crosstool by default
4313 (as oposed to using top level tools).
4314 - Incremental dexing errors on combination of --multidex=off and
4315 either --main-dex-list or --minimal-main-dex.
4316 - When using the dictionary literal syntax, it is now an error to
4317 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
4318 - New property on android_sdk: aapt2
4319 Choose the version of aapt on android_binary
4320 - Add idl_preprocessed attribute to android_library, so that
4321 preprocessed aidl files can be passed to android_library for
4322 compiling
4323 - Bazel's remote_worker backend for remote execution supports
4324 sandboxing on Linux now. Check
4325 https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
4326 orker/README.md for details.
4327 - Allows flags that expand to take values.
4328 - Make querying attributes formed by selector lists of list types
4329 more efficient by no longer listing every possible combination of
4330 attribute value but by more compactly storing the possible values
4331 of the list.
4332 - writing build events to a file is no longer experimental
4333 - set --rewrite_calls_to_long_compare to false by default.
4334 - ObjC and C++ coverage feature is unified under name 'coverage'
4335 - Enable --incremental_dexing for Android builds by default. Note
4336 that some dexopts are incompatible with incremental dexing,
4337 including --force-jumbo.
4338 - Evaluation will soon use checked arithmetics and throw an error
4339 instead of overflow/underflow.
4340 - Implicit iteration in the CROSSTOOL has been removed, use
4341 explicit 'iterate_over' message.
4342 - Add option for Android specific grte_top
4343 - Crosstool patches are only applied if the toolchain doesn't define
4344 'no_legacy_features' feature.
4345 - 'platform_type' is now a mandatory attribute on apple_binary and
4346 apple_static_library rules.
4347 If this change breaks your build, feel free to add platform_type
4348 = 'ios' to any apple_binary and apple_static_library
4349 targets in your project, as this was the previous default
4350 behavior.
4351 - Remove apple_watch2_extension build rule. Users should be using
4352 the skylark watchos_application and watchos_extension rules.
4353 https://github.com/bazelbuild/rules_apple has details.
4354 - Check stderr to detect if connected to a terminal. Deprecate
4355 --isatty.
4356 - Commands that shut down the server (like "shutdown") now ensure
4357 that the server process has terminated before the client process
4358 terminates.
4359 - Remove apple_watch1_extension and apple_watch_extension_binary
4360 rules. Users should be using the skylark watchos_application and
4361 watchos_extension rules.
4362 https://github.com/bazelbuild/rules_apple has details.
4363 - Windows: Wrapper-less CROSSTOOL becomes default now.
4364 set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
4365 - Ignore --glibc in the Android transition.
4366 - Remove --experimental_android_use_singlejar_for_multidex.
4367 - nocopts now also filter copts
4368 - 'strip' action is now configured via feature configuration
4369 - The Build Event Service (BES) client now properly supports
4370 Google Applicaton Default Credentials.
4371 - Flags from action_config get added first to the command line
4372 first, before the flags from features.
4373 - update dexing tools to Android SDK 26.0.1
4374 - Bazel Android support now requires build-tools 26.0.1 or later.
4375 - `bazel info output_path` no longer relies on the root directory
4376 filename being equal to the workspace name.
4377 - The `print` function now prints debug messages instead of
4378 warnings.
4379 - speedup of incremental dexing tools
4380 - --announce_rc now controls whether bazelrc startup options are
4381 printed to stderr.
4382 - Removing a few unused objc_provider keys.
4383 - Improved logging when workers have to be restarted due to its
4384 files having changed.
4385 - Top-level `if` statements are now forbidden.
4386 - Java protos are compiled to Java 7 bytecode.
4387 - All Android builds now use the desugar tool to support some Java
4388 8 features by default. To disable, use the --nodesugar_for_android flag.
4389 - Skylark-related options may now appear as "common" command
4390 options in the .bazelrc
4391 - Python is now required to build bazel.
4392 - New --build_runfile_manifests flag controls production of
4393 runfiles manifests.
4394 - Enable debug info for Java builds
4395 - Allow java_lite_proto_library in the deps of android rules.
4396 - .so files in APKs will be memory-page aligned when
4397 android_binary.nocompress_extensions contains ".so" and
4398 --experimental_android_use_nocompress_extensions_on_apk is
4399 specified.
4400 - Skylark providers can specify allowed fields and their
4401 documentation.
4402 - Support ctx.actions.args() for more efficient Skylark command
4403 line construction.
4404 - The remote HTTP/1.1 caching client (--remote_rest_cache) now
4405 distinquishes between action cache and CAS. The request URL for
4406 the action cache is prefixed with 'ac' and the URL for the CAS
4407 is prefixed with 'cas'.
4408 - `JavaInfo` is a preferred alias to `java_common.provider`.
4409 - J2ObjC version updated to 2.0.3.
4410 - A new Java coverage implementation is available. Makes possible
4411 coverage for Skylark JVM rules.
4412 - Make proguard_apply_dictionary also apply to class and package
4413 obfuscation, not just class members.
4414 - android_binary.nocompress_extensions now applies to all files in
4415 the APK, not just resources and assets.
4416 - The apple_genrule rule that is distributed with Bazel has been
4417 deleted. Users who wish to use genrules with Xcode's
4418 DEVELOPER_DIR set should use the rules in
4419 https://github.com/bazelbuild/rules_apple instead.
4420 - The swift_library rule that is distributed with Bazel has been
4421 deleted. Users who wish to compile Swift should use the rules in
4422 https://github.com/bazelbuild/rules_apple instead.
4423 - The Build Event Protocol's File.uri field is now properly
4424 encoded according to RFC2396.
4425 - Deprecated: Using the android_library.deps attribute to
4426 implicitly export targets to dependent rules. If your code is
4427 using this feature, Bazel will raise a warning. To fix, please
4428 use android_library.exports to explicitly specify exported
4429 targets. Run with
4430 --experimental_allow_android_library_deps_without_srcs=false to
4431 ensure forward compatibility when this feature is removed in a
4432 future release.
4433 - java_common.create_provider is now supported with creating ijars
4434 by default. This introduces incompatibilities for existing users.
4435 Please set use_ijar=False if you don't want to use ijars.
4436 - Tests can now write files to TEST_UNDECLARED_OUTPUTS_DIR and
4437 TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR and these will be
4438 reflected under bazel-testlogs.
4439 - remove unused --host_incremental_dexing flag
4440 - Stop using --undefined dynamic_lookup in Apple links. Enables
4441 unresolved symbol errors.
4442 - All test output files included for cached, uncached, and multiple
4443 attempt tests.
4444 - Android rules no longer restrict the manifest file to be named
4445 "AndroidManifest.xml".
4446 - Boolean flag values will now get normalized to 1 or 0 in
4447 canonicalize-flags output.
4448 - added experimental --use_new_category_enum to the help command to
4449 output options grouped by the new type of category.
4450 - Expose output jars and jdeps in java_common.provider, when
4451 available.
4452 - android_library targets are no longer allowed to use deps to
4453 export targets implicitly; please use android_library.exports
4454 instead.
4455 - New depset API
4456 - apple_binary and apple_static_library no longer support
4457 compilation attributes such as 'srcs'. If this breaks any
4458 existing targets, you may migrate all such attributes to a new
4459 objc_library target and depend on that objc_library target via
4460 the 'deps' attribute of apple_binary or apple_static_library.
4461
Bazel Release Systemed0ebc02017-10-05 23:52:25 +02004462## Release 0.6.1 (2017-10-05)
4463
4464```
4465Baseline: 87cc92e5df35d02a7c9bc50b229c513563dc1689
4466
4467Cherry picks:
4468 + a615d288b008c36c659fdc17965207bb62d95d8d:
4469 Rollback context.actions.args() functionality.
4470 + 7b091c1397a82258e26ab5336df6c8dae1d97384:
4471 Add a global failure when a test is interrupted/cancelled.
4472 + 95b0467e3eb42a8ce8d1179c0c7e1aab040e8120:
4473 Cleanups for Skylark tracebacks
4474 + cc9c2f07127a832a88f27f5d72e5508000b53429:
4475 Remove the status xml attribute from AntXmlResultWriter
4476 + 471c0e1678d0471961f1dc467666991e4cce3846:
4477 Release 0.6.0 (2017-09-28)
4478 + 8bdd409f4900d4574667fed83d86b494debef467:
4479 Only compute hostname once per server lifetime
4480 + 0bc9b3e14f305706d72180371f73a98d6bfcdf35:
4481 Fix bug in NetUtil caching.
4482```
4483
4484Important changes:
4485 - Only compute hostname once per server lifetime
4486
Bazel Release System471c0e12017-09-28 16:36:12 +02004487## Release 0.6.0 (2017-09-28)
4488
4489```
4490Baseline: 87cc92e5df35d02a7c9bc50b229c513563dc1689
4491
4492Cherry picks:
4493 + a615d288b008c36c659fdc17965207bb62d95d8d:
4494 Rollback context.actions.args() functionality.
4495 + 7b091c1397a82258e26ab5336df6c8dae1d97384:
4496 Add a global failure when a test is interrupted/cancelled.
4497 + 95b0467e3eb42a8ce8d1179c0c7e1aab040e8120:
4498 Cleanups for Skylark tracebacks
4499 + cc9c2f07127a832a88f27f5d72e5508000b53429:
4500 Remove the status xml attribute from AntXmlResultWriter
4501```
4502
4503Incompatible changes:
4504
4505 - Noop flag --deprecated_generate_xcode_project deleted.
4506 - Objects in Skylark are converted to strings in a more descriptive
4507 and less harmful way (they don't leak information that shouldn't
4508 be accessed by Skylark code, e.g. nondeterministic memory addresses
4509 of objects).
4510 - `set` is deprecated in BUILD and .bzl files, please use `depset`
4511 instead. Ordering names have also been changed, please use
4512 "default", "postorder", "preorder", and "topological" instead of
4513 "stable", "compile", "naive_link", and "link" correspondingly.
4514 - Integer overflow (on signed 32 bit numbers) in BUILD/bzl files is
4515 an error.
4516 - Keyword-only syntax in a function definition is now forbidden
4517 e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`
4518 - --incompatible_comprehension_variables_do_not_leak defaults to
4519 "true."
4520 Iteration variable becomes inaccessible after a list/dict
4521 comprehension.
4522
4523New features:
4524
4525 - There is now a 'siblings' query function. See the query
4526 documentation for more details.
4527 - Added the print_action command, which outputs the
4528 actions needed to build a given target in the form of an
4529 ExtraActionSummary proto in text format.
4530 - android_binary now supports proguard_apply_dictionary to specify
4531 a custom dictionary to use for choosing names to obfuscate
4532 classes and members to.
4533
4534Important changes:
4535
4536 - 'strip' action is now configured via feature configuration
4537 - Flags from action_config get added first to the command line
4538 first,
4539 before the flags from features.
4540 - `bazel info output_path` no longer relies on the root directory
4541 filename being equal to the workspace name.
4542 - The `print` function now prints debug messages instead of
4543 warnings.
4544 - speedup of incremental dexing tools
4545 - --announce_rc now controls whether bazelrc startup options are
4546 printed to stderr.
4547 - Removing a few unused objc_provider keys.
4548 - Improved logging when workers have to be restarted due to its
4549 files having changed.
4550 - Top-level `if` statements are now forbidden.
4551 - Java protos are compiled to Java 7 bytecode.
4552 - All Android builds now use the desugar tool to support some Java
4553 8 features by default. To disable, use the
4554 --nodesugar_for_android flag.
4555 - Skylark-related options may now appear as "common" command
4556 options in the .bazelrc
4557 - Python is now required to build bazel.
4558 - When the lvalue of an augmented assignment is a list, we now
4559 throw an error
4560 before evaluating the code (e.g. `a, b += 2, 3`).
4561 - New --build_runfile_manifests flag controls production of
4562 runfiles manifests.
4563 - Enable debug info for Java builds
4564 - Allow java_lite_proto_library in the deps of android rules.
4565 - .so files in APKs will be memory-page aligned when
4566 android_binary.nocompress_extensions contains ".so" and
4567 --experimental_android_use_nocompress_extensions_on_apk is
4568 specified.
4569 - Skylark providers can specify allowed fields and their
4570 documentation.
4571 - Support ctx.actions.args() for more efficient Skylark command
4572 line construction.
4573 - The remote HTTP/1.1 caching client (--remote_rest_cache) now
4574 distinquishes between action cache and CAS. The request URL for
4575 the action cache is prefixed with 'ac' and the URL for the CAS
4576 is prefixed with 'cas'.
4577 - `JavaInfo` is a preferred alias to `java_common.provider`.
4578 - J2ObjC version updated to 2.0.3.
4579 - A new Java coverage implementation is available. Makes possible
4580 coverage for Skylark JVM rules.
4581 - Make proguard_apply_dictionary also apply to class and package
4582 obfuscation, not just class members.
4583 - When using the dictionary literal syntax, it is now an error to
4584 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
4585 - android_binary.nocompress_extensions now applies to all files in
4586 the APK, not just resources and assets.
4587 - The apple_genrule rule that is distributed with Bazel has been
4588 deleted. Users who wish to use genrules with Xcode's
4589 DEVELOPER_DIR set should use the rules in
4590 https://github.com/bazelbuild/rules_apple instead.
4591 - The swift_library rule that is distributed with Bazel has been
4592 deleted. Users who wish to compile Swift should use the rules in
4593 https://github.com/bazelbuild/rules_apple instead.
4594
Bazel Release System5371d132017-08-25 11:24:06 +02004595## Release 0.5.4 (2017-08-25)
4596
4597```
4598Baseline: 6563b2d42d29196432d5fcafa0144b8371fbb028
4599
4600Cherry picks:
4601 + d4fa181f8607c35230b7efa1ce94188b51508962:
4602 Use getExecPathString when getting bash_main_file
4603 + 837e1b3d4859140d29aaa6bbab8fbb008e6d701e:
4604 Windows, sh_bin. launcher: export runfiles envvars
4605 + fe9ba893c0ebec19228086356af5fa8d81f2809b:
4606 grpc: Consolidate gRPC code from BES and Remote Execution. Fixes
4607 #3460, #3486
4608 + e8d4366cd374fba92f1425de0d475411c8defda4:
4609 Automated rollback of commit
4610 496d3ded0bce12b7371a93e1183ba30e6aa88032.
4611 + 242a43449dd44a22857f6ce95f7cc6a7e134d298:
4612 bes,remote: update default auth scope.
4613 + 793b409eeae2b42be7fed58251afa87b5733ca4d:
4614 Windows, sh_bin. launcher: fix manifest path
4615 + 7e4fbbe4ab3915a57b2187408c3909e5cd6c6013:
4616 Add --windows_exe_launcher option
4617 + 91fb38e92ace6cf14ce5da6527d71320b4e3f3d2:
4618 remote_worker: Serialize fork() calls. Fixes #3356
4619 + b79a9fcd40f448d3aebb2b93a2ebe80d09b38408:
4620 Quote python_path and launcher in
4621 python_stub_template_windows.txt
4622 + 4a2e17f85fc8450aa084b201c5f24b30010c5987:
4623 Add build_windows_jni.sh back
4624 + ce61d638197251f71ed90db74843b55d9c2e9ae5:
4625 don't use methods and classes removed in upstream dx RELNOTES:
4626 update dexing tools to Android SDK 26.0.1
4627 + 5393a4996d701fa192964a35cbb75e558a0599c0:
4628 Make Bazel enforce requirement on build-tools 26.0.1 or later.
4629 + 5fac03570f80856c063c6019f5beb3bdc1672dee:
4630 Fix --verbose_failures w/ sandboxing to print the full command
4631 line
4632 + f7bd1acf1f96bb7e3e19edb9483d9e07eb5af070:
4633 Only patch in C++ compile features when they are not already
4634 defined in crosstool
4635 + d7f5c120417bc2d2344dfb285322355f225d9153:
4636 Bump python-gflags to 3.1.0, take two
4637 + 3cb136d5451e9d8af58f9a99990cad0592df101a:
4638 Add python to bazel's dockerfiles
4639```
4640
4641New features:
4642
4643 - Do not disable fully dynamic linking with ThinLTO when invoked
4644 via LIPO options.
4645
4646Important changes:
4647
4648 - Ignore --glibc in the Android transition.
4649 - Remove --experimental_android_use_singlejar_for_multidex.
4650 - nocopts now also filter copts
4651 - The Build Event Service (BES) client now properly supports
4652 Google Applicaton Default Credentials.
4653 - update dexing tools to Android SDK 26.0.1
4654 - Bazel Android support now requires build-tools 26.0.1 or later.
4655 - Fix a bug in the remote_worker that would at times make it crash on Linux. See #3356
4656 - The java_proto_library rule now supports generated sources. See #2265
4657
Bazel Release System195a7a82017-07-27 20:27:32 +02004658## Release 0.5.3 (2017-07-27)
4659
4660```
4661Baseline: 88518522a18df5788736be6151fc67992efe2aad
4662
4663Cherry picks:
4664 + 820a46af10808396873c36d0f331e533118cf0c6:
4665 Automated rollback of commit
4666 6d6e87297fe8818e4c374fdfabfbcf538bca898a.
4667 + ccfb2df69ecf4746f5a15e1295af995c3a45aa94:
4668 Allow py_binary to be the executable of a Skylark action or any
4669 SpawnAction on Windows.
4670 + 06534911696838e720c8681f6f568c69d28da65e:
4671 Fix string representation for the Root class
4672 + cd159bcee72a7f377621b45409807231a636f9e2:
4673 sandbox: Allow UNIX sockets on macOS even when block-network is
4674 used.
4675 + ad73cba3caa2e08ad61ea9ca63f9111cde1f48d1:
4676 Fix python_stub_template.txt to be compatible with Python 2.4.
4677 + 9a63aff8bb771af8917903fbbc9df3b708e2c0ed:
4678 Create Windows ZIP release artifact using Bazel
4679 + 5e576637b5705aff0a7bf56b5077463dffcd712f:
4680 Automated rollback of commit
4681 820a46af10808396873c36d0f331e533118cf0c6.
4682 + b6e29ca217b02c3ba499b85479a3830f59c9b9b6:
4683 Use the correct function to generate the release notes
4684 + 0f3481ba6364f24ef76b839bdde06ae7883c9bd9:
4685 Include <cinttypes> instead of <stdint.h>
4686```
4687
4688Incompatible changes:
4689
4690 - The --output=location flag to 'bazel query' cannot be used with
4691 query expressions that involve the 'buildfiles' or 'loadfiles'
4692 operators. This also applies to 'genquery' rules.
4693 - Operators for equality, comparison, 'in' and 'not in' are no
4694 longer associative, e.g. x < y < z is now a syntax error.
4695 Before, it was parsed as: (x < y) < z.
4696 - In strings, octal sequences greater than \377 are now forbidden
4697 (e.g. "\\600"). Previously, Blaze had the same behavior as Python 2,
4698 where "\\450" == "\050".
4699 - Using tabulation for identation is now fobidden in .bzl files
4700 - `load` is now a language keyword, it cannot be used as an
4701 identifier
4702 - lvalues must have define at least one variable (i.e. we forbid
4703 `[] = f()`).
4704 - Fixed a bug whereby multiple load() statements could appear on
4705 the same line
4706 - -extra_checks:off is no longer supported; use
4707 -XepDisableAllChecks instead
4708 - java_common.java_toolchain_attr is removed. Depend on the
4709 java_toolchain_alias() rule to accomplish the same thing.
4710 - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
4711 not supported anymore and were replaced with the
4712 cc_toolchain_alias() and java_runtime_alias() rules.
4713
4714New features:
4715
4716 - Zipped LLVM profiles are now supported.
4717 - LIPO maps to ThinLTO for LLVM builds.
4718 - Change to handle LLVM FDO zipped profile contents correctly.
4719
4720Important changes:
4721
4722 - Windows: bazel clean --expunge works
4723 - First argument of 'load' should be a label. Path syntax is
4724 deprecated (label should start with '//' or ':').
4725 - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
4726 instead of 0777).
4727 - The extension_safe attribute of apple_binary no longer validates
4728 transitive dependencies are compiled against extension_safe APIs.
4729 - Parentheses around the tuple are now mandatory in [a for b in c
4730 if 1, 2]
4731 - Adjust the thresholds for --test_verbose_timeout_warnings so that
4732 it can recommending timeout increases and won't recommend
4733 timeouts that are too close to the actual timeout.
4734 - Iterating on a `depset` object is deprecated. If you need an
4735 iterable, call the `.to_list()` method first.
4736 - Bazel now uses tools from action_configs in Crosstool by default
4737 (as oposed to using top level tools).
4738 - Incremental dexing errors on combination of --multidex=off and
4739 either --main-dex-list or --minimal-main-dex.
4740 - When using the dictionary literal syntax, it is now an error to
4741 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
4742 - New property on android_sdk: aapt2
4743 Choose the version of aapt on android_binary
4744 - Add idl_preprocessed attribute to android_library, so that
4745 preprocessed aidl files can be passed to android_library for
4746 compiling
4747 - Bazel's remote_worker backend for remote execution supports
4748 sandboxing on Linux now. Check
4749 https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
4750 orker/README.md for details.
4751 - Allows flags that expand to take values.
4752 - Make querying attributes formed by selector lists of list types
4753 more efficient by no longer listing every possible combination of
4754 attribute value but by more compactly storing the possible values
4755 of the list.
4756 - Writing build events to a file is no longer experimental
4757 - set --rewrite_calls_to_long_compare to false by default.
4758 - ObjC and C++ coverage feature is unified under name 'coverage'
4759 - Enable --incremental_dexing for Android builds by default. Note
4760 that some dexopts are incompatible with incremental dexing,
4761 including --force-jumbo.
4762 - Evaluation will soon use checked arithmetics and throw an error
4763 instead of overflow/underflow.
4764 - Implicit iteration in the CROSSTOOL has been removed, use
4765 explicit 'iterate_over' message.
4766 - Add option for Android specific grte_top
4767 - Crosstool patches are only applied if the toolchain doesn't define
4768 'no_legacy_features' feature.
4769 - 'platform_type' is now a mandatory attribute on apple_binary and
4770 apple_static_library rules.
4771 If this change breaks your build, feel free to add platform_type
4772 = 'ios' to any apple_binary and apple_static_library
4773 targets in your project, as this was the previous default
4774 behavior.
4775 - Remove apple_watch2_extension build rule. Users should be using
4776 the skylark watchos_application and watchos_extension rules.
4777 https://github.com/bazelbuild/rules_apple has details.
4778 - Check stderr to detect if connected to a terminal. Deprecate
4779 --isatty.
4780 - Commands that shut down the server (like "shutdown") now ensure
4781 that the server process has terminated before the client process
4782 terminates.
4783 - Remove apple_watch1_extension and apple_watch_extension_binary
4784 rules. Users should be using the skylark watchos_application and
4785 watchos_extension rules.
4786 https://github.com/bazelbuild/rules_apple has details.
4787 - Windows: Wrapper-less CROSSTOOL becomes default now.
4788 set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
4789
Bazel Release System7b851222017-06-27 15:08:47 +02004790## Release 0.5.2 (2017-06-27)
4791
4792```
4793Baseline: e78ad83ded6e9c6d639793827e27b6570e6e9f65
4794
4795Cherry picks:
4796 + 68028317c1d3d831a24f90e2b25d1410ce045c54:
4797 experimental UI: move stopUpdateThread() out of synchronized,
4798 again
4799 + 019935dfbb61e61d08d1351b0365fb4e2d0df305:
4800 Fix bug in URI computation in RemoteModule
4801 + e9424cf9b9d72b98594966d5ac0f15bb018ec639:
4802 Automated rollback of commit
4803 7dec00574aa91327693f6ba7e90bff5bc834253e.
4804 + 9eea05d068a06ab642dd9d86d46ee5fa2e36b02e:
4805 Switching to Watcher API instead of wait_for_completion, in
4806 preparation for deprecating the wait_for_completion field.
4807 + 89659810e3048782dfb5e308e39aa8a0727e464e:
4808 Set correct execroot for info
4809 + 716b527266f47f59a2b7fb2e5fc52cb45e1691b1:
4810 Only create a single per-build instance of the remote cache /
4811 executor
4812 + 1d82d199f82409f217a42bcefebb96f723f91caa:
4813 protobuf: Update protobuf jars to be binary compatible with Java
4814 6. Fixes #3198
4815 + 524b90d9e5acc4fa568f215c9415eaa902e979f8:
4816 Change CAS URI to use the "bytestream" scheme instead of being
4817 scheme-less
4818 + 4929ad79865f8c13ef3b33c827040f4a037e4afe:
4819 Automated g4 rollback of commit
4820 923d7df521f67d031b288180560848bd35e20976.
4821 + 68b9a7e2dc17e32b194238d287e79bee1ba035b9:
4822 Automated g4 rollback of commit
4823 da56606563ee9df438db93392f681bf2abb4ac97.
4824 + 2ba693ffbe824136a0ca5f47d34710612f6302c3:
4825 Automated rollback of commit
4826 ce7c4deda60a307bba5f0c9421738e2a375cf44e.
4827```
4828
4829Incompatible changes:
4830
4831 - Blaze no longer generates xcode projects. Use tulsi.bazel.build
4832 instead.
4833
4834Important changes:
4835
4836 - Keyword-only syntax in a function definition is deprecated
4837 (e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`) and will be
4838 removed in the future.
4839 - Attempting to build an Android target without setting up
4840 android_sdk_repository will now produce a helpful error message.
4841 - Adds a sha256 attribute to git_repository and new_git_repository.
4842 This can only be used if the remote is a public GitHub
4843 repository. It forces
4844 Bazel to download the repository as a tarball, which will often
4845 be faster and
4846 more robust than cloning it.
4847 - Sandboxing is now enabled by default on FreeBSD (via
4848 processwrapper-sandbox).
4849 - android_test may use manifest placeholders with 'manifest_merger
4850 = "android"'.
4851 - load() statements should be called at the top of .bzl files,
4852 before any
4853 other statement. This convention will be enforced in the future.
4854 - Effectively remove sysroot from CppConfiguration and allow it to
4855 use select statements.
4856 - proto_library.strict_proto_deps no longer exists.
4857 - Flag --explicit_jre_deps is now a noop.
4858 - The 'legacy' Android manifest merger is deprecated. Please
4859 upgrade to the 'android' manifest merger, which is the same
4860 merger used by Gradle.
4861 https://developer.android.com/studio/build/manifest-merge.html
4862 - Using $(CC_FLAGS) in a GenRule adds a dependency to the c++
4863 toolchain
4864 - add one-version enforcement to android_local_test
4865 - Skylark support (apple_common.dotted_version(string)) for
4866 building DottedVersion objects to interface with native apple
4867 rules
4868 - CC_FLAGS can be defined using 'cc-flags-make-variable' action_config in
4869 CROSSTOOL
4870 - ios_framework native rule has been removed. This rule had been
4871 essentially broken for several months now; users should be using
4872 the skylark ios framework rule.
4873 https://github.com/bazelbuild/rules_apple has details.
4874 - Clean command no longer uses boolean values for --async,
4875 --expunge, and --expunge_async options.
4876 - Partially fixes external J2ObjC support.
4877 - '--aspects' can occur more than once on the command line.
4878 - --no_ prefix no longer recognized.
4879 - Use action_config in crosstool for static library archiving,
4880 remove ar_flag.
4881 - Added a new flag --sandbox_writable_path, which asks the sandbox
4882 to
4883 make an existing directory writable when running actions.
4884 - bazel test now also computes a default instrumentation filter if
4885 --collect_code_coverage is enabled
4886 - n/na
4887 - In .bzl files, top-level `if` statements are deprecated and will
4888 be forbidden
4889 in the future. Move them in a function body instead (or use a
4890 conditional
4891 expression instead: `x if condition else y`).
4892 - ios_device and ios_test are deprecated. Please use the new testing
4893 rules in https://github.com/bazelbuild/rules_apple instead.
4894 - bazel query --output package now displays packages from external
4895 repository with the format "@reponame//package". Packages in the
4896 main repository continue to have the format "package".
4897 - ctx.expand_make_variables is deprecated.
4898 - Bazel posts links to the CAS to the BEP if remote caching /
4899 execution is enabled
4900 - `bazel info execution_root` returns the corrrect directory name
4901 for the execution root.
4902
Bazel Release System63222de2017-06-06 11:32:04 +02004903## Release 0.5.1 (2017-06-06)
4904
4905```
4906Baseline: f3ae88ee043846e7acdffd645137075a4e72c573
4907
4908Cherry picks:
4909 + c58ba098526b748f9c73e6229cafd74748205aa1:
4910 Release to GCS: put the final release in its own directory
4911 + 0acead4ea3631240659836ce6ecd6d7f67fd352b:
4912 Update protobuf to latest master at a64497c and apply
4913 @laszlocsomor's latest changes from
4914 https://github.com/google/protobuf/pull/2969 on top of it.
4915 + d0242ce4a87929f2528f4602d0fb09d1ccfcea94:
4916 Make symlinks consistent
4917 + d953ca8b87a46decbce385cebb446ae0dd390881:
4918 Clean VanillaJavaBuilder output directories
4919 + 755669fb5de1f4e762f27c19776cac9f410fcb94:
4920 Pass all the environment variable to Bazel during bootstrapping
4921 + 6f041661ca159903691fcb443d86dc7b6454253d:
4922 Do not mark the JDK7 installer -without-jdk-installer
4923 + 720561113bfa702acfc2ca24ce3cc3fd7ee9c115:
4924 Fix #2958: Installer should not overwrite bazelrc
4925 + 511c35b46cead500d4e76706e0a709e50995ceba:
4926 Bootstrap: move the fail function to the top
4927 + 8470be1122825aae8ad0903dd1e1e2a90cce47d2:
4928 Clean up javac and Error Prone targets
4929 + 4a404de2c6c38735167e17ab41be45ef6fc4713a:
4930 Update javac version to 9-dev-r4023-2
4931 + 36ce4b433e19498a78c34540d5a166d4e0006b22:
4932 Update javac version to 9-dev-r4023-2
4933 + 38949b8526bdb3e6db22f3846aac87162c28c33f:
4934 Migrate off versioned javac and Error Prone targets
4935 + 1a57d298f8aa6ea8136d93223902104f2479cd2a:
4936 Re-enabling passing -sourcepath via javacopts.
4937 + eb565f408e03125e92d42b00756e519795be6593:
4938 Make make sure that msys build actually builds msys version
4939 + 39f328cf392056618d1a3ead4835a138b189a06d:
4940 Fix typo. Also do not override host_cpu for msvc.
4941 + 624802893f4fe72118f00a78452605d41a2e1c6f:
4942 Select correct JDK for windows_msys
4943 + c4f271d1a68366b6fa5ff38ea7d951b6a22af044:
4944 Automated g4 rollback of commit
4945 3e5edafa2a04a71cd3596e929e83222da725f3f9.
4946 + 926180997a0f296a5a009326aead887279ce0a90:
4947 Remove process-tools.cc which I forgot to delete during the last
4948 rollback.
4949 + baca6e4cb023649920871b74810927d304729e59:
4950 Fix #2982: Bazel installer should not check for installed JDK if
4951 using a bundled JDK.
4952 + 866ecc8c3d5e0b899e3f0c9c6b2265f16daae842:
4953 Disable msys path conversion on Windows.
4954 + cc21998c299b4d1f97df37b961552ff8168da17f:
4955 Rollforward #2 of: Basic open-source crosstool to support
4956 targeting apple platform types.
4957 + 0f0ccc4fc8229c1860a9c9b58089d6cfb2ee971f:
4958 Escape % in strings that will appear in Crosstool
4959 + 3b08f774e7938928e3a240a47a0a7554cdc8d50b:
4960 Adding feature for linking C Run-Time library on Windows
4961 + 3566474202d1978acfdcb7e5ff73ee03ea6f3df9:
4962 Do not use sed -E in bootstrap/compile.sh
4963 + c3cf7d917afd02d71de3800cd46ad8d14f1ddf55:
4964 Reverts non-xcode-available darwin crosstool generation.
4965```
4966
4967Important changes:
4968
4969 - Fixes regression in 0.5.0 requiring Xcode to build C++ on OSX.
4970
Bazel Release Systema3e26832017-05-26 14:11:07 +02004971## Release 0.5.0 (2017-05-26)
4972
4973```
4974Baseline: f3ae88ee043846e7acdffd645137075a4e72c573
4975
4976Cherry picks:
4977 + c58ba098526b748f9c73e6229cafd74748205aa1:
4978 Release to GCS: put the final release in its own directory
4979 + 0acead4ea3631240659836ce6ecd6d7f67fd352b:
4980 Update protobuf to latest master at a64497c and apply
4981 @laszlocsomor's latest changes from
4982 https://github.com/google/protobuf/pull/2969 on top of it.
4983 + d0242ce4a87929f2528f4602d0fb09d1ccfcea94:
4984 Make symlinks consistent
4985 + d953ca8b87a46decbce385cebb446ae0dd390881:
4986 Clean VanillaJavaBuilder output directories
4987 + 755669fb5de1f4e762f27c19776cac9f410fcb94:
4988 Pass all the environment variable to Bazel during bootstrapping
4989 + 6f041661ca159903691fcb443d86dc7b6454253d:
4990 Do not mark the JDK7 installer -without-jdk-installer
4991 + 720561113bfa702acfc2ca24ce3cc3fd7ee9c115:
4992 Fix #2958: Installer should not overwrite bazelrc
4993 + 511c35b46cead500d4e76706e0a709e50995ceba:
4994 Bootstrap: move the fail function to the top
4995 + 8470be1122825aae8ad0903dd1e1e2a90cce47d2:
4996 Clean up javac and Error Prone targets
4997 + 4a404de2c6c38735167e17ab41be45ef6fc4713a:
4998 Update javac version to 9-dev-r4023-2
4999 + 36ce4b433e19498a78c34540d5a166d4e0006b22:
5000 Update javac version to 9-dev-r4023-2
5001 + 38949b8526bdb3e6db22f3846aac87162c28c33f:
5002 Migrate off versioned javac and Error Prone targets
5003 + 1a57d298f8aa6ea8136d93223902104f2479cd2a:
5004 Re-enabling passing -sourcepath via javacopts.
5005 + eb565f408e03125e92d42b00756e519795be6593:
5006 Make make sure that msys build actually builds msys version
5007 + 39f328cf392056618d1a3ead4835a138b189a06d:
5008 Fix typo. Also do not override host_cpu for msvc.
5009 + 624802893f4fe72118f00a78452605d41a2e1c6f:
5010 Select correct JDK for windows_msys
5011 + c4f271d1a68366b6fa5ff38ea7d951b6a22af044:
5012 Automated g4 rollback of commit
5013 3e5edafa2a04a71cd3596e929e83222da725f3f9.
5014 + 926180997a0f296a5a009326aead887279ce0a90:
5015 Remove process-tools.cc which I forgot to delete during the last
5016 rollback.
5017 + baca6e4cb023649920871b74810927d304729e59:
5018 Fix #2982: Bazel installer should not check for installed JDK if
5019 using a bundled JDK.
5020 + 866ecc8c3d5e0b899e3f0c9c6b2265f16daae842:
5021 Disable msys path conversion on Windows.
5022 + cc21998c299b4d1f97df37b961552ff8168da17f:
5023 Rollforward #2 of: Basic open-source crosstool to support
5024 targeting apple platform types.
5025 + 0f0ccc4fc8229c1860a9c9b58089d6cfb2ee971f:
5026 Escape % in strings that will appear in Crosstool
5027 + 3b08f774e7938928e3a240a47a0a7554cdc8d50b:
5028 Adding feature for linking C Run-Time library on Windows
5029```
5030
5031Incompatible changes:
5032
5033 - Bazel's Linux sandbox no longer mounts an empty tmpfs on /tmp,
5034 instead the existing /tmp is mounted read-write. If you prefer
5035 to have a tmpfs on /tmp for sandboxed actions for increased
5036 hermeticity, please use the flag --sandbox_tmpfs_path=/tmp.
5037 - Converting artifacts to strings and printing them now return
5038 "File" instead of "Artifact" to be consistent with the type name.
5039 - The return type of depset.to_list() is now a list rather than a
5040 frozen list. (Modifying the list has no effect on the depset.)
5041 - Bazel now prints logs in single lines to java.log
5042 - --use_dash, --dash_url and --dash_secret are removed.
5043 - Remote repositories must define any remote repositories they
5044 themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
5045 defined
5046 in @x's WORKSPACE file).
5047 - Remote repositories must define any remote repositories they
5048 themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
5049 defined
5050 in @x's WORKSPACE file).
5051 - objc_xcodeproj has been removed, use tulsi.bazel.build instead.
5052
5053New features:
5054
5055 - If grte_top is a label, it can now follow non-configurable
5056 redirects.
5057 - Optional coverage_files attribute to cc_toolchain
5058 - "query --output=build" now includes select()s
5059 - Raw LLVM profiles are now supported.
5060
5061Important changes:
5062
5063 - Automatically generate Proguard mapping when resource shrinking
5064 and Proguard are enabled.
5065 - New rules in Bazel: proto_library, java_lite_proto_library,
5066 java_proto_library and cc_proto_library
5067 - Activate the "dead_strip" feature if objc binary stripping is
5068 enabled.
5069 - More stable naming scheme for lambda classes in desugared android
5070 code
5071 - Convert --use_action_cache to a regular option
5072 - Per-architecture dSYM binaries are now propagated by
5073 apple_binary's AppleDebugOutputsProvider.
5074 - Avoid factory methods when desugaring stateless lambdas for
5075 Android
5076 - desugar calls to Objects.requireNonNull(Object o) with
5077 o.getClass() for android
5078 - Add an --copy_bridges_from_classpath argument to android
5079 desugaring tool
5080 - Change how desugar finds desugared classes to have it working on
5081 Windows
5082 - Evaluation of commands on TargetsBelowDirectory patterns
5083 (e.g. //foo/...) matching packages that fail to load now report
5084 more
5085 detailed error messages in keep_going mode.
5086 - Allow to have several inputs and outputs
5087 - Repository context's execute() function can print stdout/stderr
5088 while running. To enable, pass quiet=False.
5089 - Bazel can now be built with a bundled version of the OpenJDK.
5090 This makes it possible to use Bazel on systems without a JDK, or
5091 where
5092 the installed JDK is too old.
5093 - The --jobs flag now defaults to "auto", which causes Bazel to
5094 use a reasonable degree of parallelism based on the local
5095 machine's
5096 capacity.
5097 - Bazel benchmark (perf.bazel.build) supports Java and Cpp targets.
5098 - no factory methods generated for lambda expressions on android
5099 - The Linux sandbox no longer changes the user to 'nobody' by
5100 default, instead the current user is used as is. The old behavior
5101 can be
5102 restored via the --sandbox_fake_username flag.
5103 - /tmp and /dev/shm are now writable by default inside the
5104 Linux sandbox.
5105 - Bazel can now use the process-wrapper + symlink tree based
5106 sandbox implementation in FreeBSD.
5107 - turn on --experimental_incremental_dexing_error_on_missed_jars by
5108 default.
5109 - All android_binarys are now signed with both Apk Signature V1 and
5110 V2. See https://source.android.com/security/apksigning/v2.html
5111 for more details.
5112 - Windows MSVC wrappers: Not filtering warning messages anymore,
5113 use --copt=-w and --host_copt=-w to suppress them.
5114 - A downloader bug was fixed that prevented RFC 7233 Range
5115 connection resumes from working with certain HTTP servers
5116 - Introduces experimental android_device rule for configuring and
5117 launching Android emulators.
5118 - For boolean flags, setting them to false using --no_<flag_name>
5119 is deprecated. Use --no<flag_name> without the underscore, or
5120 --<flag_name>=false instead.
5121 - Add --experimental_android_compress_java_resources flag to store
5122 java
5123 resources as compressed inside the APK.
5124 - Removed --experimental_use_jack_for_dexing and libname.jack
5125 output of
5126 android_library.
5127 - blaze canonicalize-flags now takes a --show_warnings flag
5128 - Changing --invocation_policy will no longer force a server
5129 restart.
5130 - Bazel now supports Android NDK14.
5131 - android_binary multidex should now work without additional flags.
5132 - Use action_config in crosstool for static library archiving,
5133 remove ar_flag.
5134 - new option for bazel canonicalize-flags, --canonicalize_policy
5135 - Use action_config in crosstool for static library archiving,
5136 remove ar_flag.
5137 - android_library exports_manifest now defaults to True.
5138 - Fix select condition intersections.
5139 - Adds a --override_repository option that takes a repository
5140 name and path. This forces Bazel to use the directory at that path
5141 for the repository. Example usage:
5142 `--override_repository=foo=/home/user/gitroot/foo`.
5143 - fix idempotency issue with desugaring lambdas in interface
5144 initializers for android
5145 - --experimental_android_use_singlejar_for_multidex is now a no-op
5146 and will eventually be removed.
5147 - Every local_repository now requires a WORKSPACE file.
5148 - Remove jack and jill attributes of the android_sdk rule.
5149 - Add Skylark stubs needed to remove sysroot from CppConfiguration.
5150 - Desugar try-with-resources so that this language feature is
5151 available
5152 to deveces with API level under 19.
5153 - The flag --worker_max_retries was removed. The
5154 WorkerSpawnStrategy no longer retries execution of failed Spawns,
5155 the reason being that this just masks compiler bugs and isn't
5156 done for any other execution strategy either.
5157 - Bazel will no longer gracefully restart workers that crashed /
5158 quit, instead this triggers a build failure.
5159 - All java resources are now compressed in android_binary APKs by
5160 default.
5161 - All java resources are now compressed in android_binary APKs by
5162 default.
5163 - android_ndk_repository now creates a cc_library
5164 (@androidndk//:cpufeatures) for the cpufeatures library that is
5165 bundled in the Android NDK. See
5166 https://developer.android.com/ndk/guides/cpu-features.html for
5167 more details.
5168 - 'output_groups' and 'instrumented_files' cannot be specified in
5169 DefaultInfo.
5170 - You can increase the CPU reservation for tests by adding a
5171 "cpu:<n>" (e.g. "cpu:4" for four cores) tag to their rule in a
5172 BUILD file. This can be used if tests would otherwise overwhelm
5173 your system if there's too much parallelism.
5174 - Deprecate use_singlejar_for_proguard_libraryjars and force
5175 behavior to always on.
5176
Bazel Release System8d635fc2017-03-16 13:18:30 +01005177## Release 0.4.5 (2017-03-16)
5178
5179```
5180Baseline: 2e689c29d5fc8a747216563235e905b1b62d63b0
5181
5182Cherry picks:
5183 + a28b54033227d930672ec7f2714de52e5e0a67eb:
5184 Fix Cpp action caching
5185 + 6d1d424b4c0da724e20e14235de8012f05c470f8:
5186 Fix paths of binaries in .deb packages.
5187 + 0785cbb672357d950e0c045770c4567df9fbdc43:
5188 Update to guava 21.0 and Error Prone version 2.0.18-20160224
5189 + 30490512eb0e48a3774cc4e4ef78680e77dd4e47:
5190 Update to latest javac and Error Prone
5191 + 867d16eab3bfabae070567ecd878c291978ff338:
5192 Allow ' ', '(', ')' and '$' in labels
5193 + 7b295d34f3a4f42c13aafc1cc8afba3cb4aa2985:
5194 Pass through -sourcepath to the JavaBuilder
5195 + 14e4755ce554cdfc685fc9cc2bfb5b699a3b48f4:
5196 PathFragment comparisons are now platform-aware
5197 + ed7795234ca7ccd2567007f2c502f853cd947e50:
5198 Flag to import external repositories in python import path
5199 + 81ae08bbc13f5f4a04f18caae339ca77ae2699c1:
5200 Suppress error for non-exhaustive switches
5201 + e8d1177eef9a9798d2b971630b8cea59471eec33:
5202 Correctly returns null if an environment variables is missing
5203 + 869d52f145c077e3499b88df752cebc60af51d66:
5204 Fix NPE in Android{S,N}dkRepositoryFunction.
5205 + d72bc57b60b26245e64f5ccafe023a5ede81cc7f:
5206 Select the good guava jars for JDK7 build
5207 + 92ecbaeaf6fa11dff161254df38d743d48be8c61:
5208 Windows: Assist JNI builds with a target for jni_md.h.
5209 + 36958806f2cd38dc51e64cd7bcc557bd143bbdb6:
5210 Add java_common.create_provider to allow creating a
5211 java_common.provider
5212 + 8c00f398d7be863c4f502bde3f5d282b1e18f504:
5213 Improve handling of unknown NDK revisions in
5214 android_ndk_repository.
5215 + b6ea0d33d3ab72922c8fb3ec1ff0e437af09584d:
5216 Add the appropriate cxx_builtin_include_directory entries for
5217 clang to the Android NDK crosstool created by
5218 android_ndk_repository.
5219```
5220
5221Incompatible changes:
5222
5223 - Depsets (former sets) are converted to strings as "depset(...)"
5224 instead of
5225 "set(...)".
5226 - Using --symlink_prefix is now applied to the output
5227 symlink (e.g. bazel-out) and the exec root symlink (e.g.
5228 bazel-workspace).
5229 - Bazel now uses the test's PATH for commands specified as
5230 --run_under; this can affect users who explicitly set PATH to
5231 a more
5232 restrictive value than the default, which is to forward the
5233 local PATH
5234 - It's not allowed anymore to compare objects of different types
5235 (i.e. a string to an integer) and objects for which comparison
5236 rules are not
5237 defined (i.e. a dict to another dict) using order operators.
5238
5239New features:
5240
5241 - environ parameter to the repository_rule function let
5242 defines a list of environment variables for which a change of
5243 value
5244 will trigger a repository refetching.
5245
5246Important changes:
5247
5248 - android_ndk_repository now supports Android NDK R13.
5249 - Android resource shrinking is now available for android_binary
5250 rules. To enable, set the attribute 'shrink_resources = 1'. See
5251 https://bazel.build/versions/master/docs/be/android.html#android_b
5252 inary.shrink_resources.
5253 - resolve_command/action's input_manifest return/parameter is now
5254 list
5255 - For increased compatibility with environments where UTS
5256 namespaces are not available, the Linux sandbox no longer hides
5257 the hostname of the local machine by default. Use
5258 --sandbox_fake_hostname to re-enable this feature.
5259 - proto_library: alias libraries produce empty files for descriptor
5260 sets.
5261 - Adds pkg_rpm rule for generating RPM packages.
5262 - Allow CROSSTOOL files to have linker flags specific to static
5263 shared libraries.
5264 - Make it mandatory for Java test suites in bazel codebase, to
5265 contain at least one test.
5266 - Support for Java 8 lambdas, method references, type annotations
5267 and repeated annotations in Android builds with
5268 --experimental_desugar_for_android.
5269 - Removed .xcodeproj automatic output from objc rules. It can still
5270 be generated by requesting it explicitly on the command line.
5271 - Flips --explicit_jre_deps flag on by default.
5272 - Activate the "dbg", "fastbuild", and "opt" features in the objc
5273 CROSSTOOL.
5274 - Remove support for configuring JDKs with filegroups; use
5275 java_runtime and java_runtime_suite instead
5276 - android_ndk_repository api_level attribute is now optional. If not
5277 specified, the highest api level in the ndk/platforms directory
5278 is used.
5279
Bazel Release System6712cac2017-02-01 19:53:37 +01005280## Release 0.4.4 (2017-02-01)
5281
5282```
5283Baseline: 4bf8cc30a
5284
5285Cherry picks:
5286 + ef1c6fd33: msvc_tools.py.tpl: Change default runtime library to
5287 static
5288```
5289
5290Incompatible changes:
5291
5292 - Only targets with public visibility can be bound to something in
5293 //external: .
5294 - The deprecated -x startup option has been removed.
5295 - docker_build: change the repository names embedded by
5296 docker_build. You can revert to the old behavior by setting
5297 legacy_repository_naming=True.
5298 - The string methods strip(), lstrip(), and rstrip() now
5299 by default remove the same whitespace characters as Python 3
5300 does, and accept
5301 None as an argument.
5302 - Deprecated globals HOST_CFG and DATA_CFG are removed. Use strings
5303 "host" and "data" instead.
5304 - repository_ctx environment is now affected by --action_env flag
5305 (value from the
5306 client environment will be replaced by value given on the command
5307 line through --action_env).
5308 - All executable labels must also have a cfg parameter specified.
5309 - Removed the cmd_helper.template function.
5310 The function was equivalent to:
5311 def template(items, template):
5312 return [template.format(path = i.path, short_path =
5313 i.short_path)
5314 for i in items]
5315 - Tuples that end with a trailing comma must now be inside parens,
5316 e.g. (1,) instead of 1,
5317 - The traversal orders for depsets have been renamed. The old names
5318 are deprecated and will be removed in the future. New names:
5319 "stable" -> "default", "compile" -> "postorder", "link" ->
5320 "topological", "naive_link" -> "preorder".
5321
5322New features:
5323
5324 - Skylark: you can now multiply a list by an integer to get the
5325 concatenation of N copies of this list, e.g. [a,b] * 3 =
5326 [a,b,a,b,a,b]
5327 - Allow Android aidl tool to add a jar to the program's classpath,
5328 such as if needed to support generated sources.
5329 - Add transitive proguard_specs when android_sdk.aidl_lib is
5330 specified
5331 - Windows: "/dev/null" is now a supported path, e.g.
5332 --bazelrc=/dev/null now works
5333
5334Important changes:
5335
5336 - Bazel Android builds use the apksigner tool from the Android SDK
5337 build-tools. Bazel Android builds now require build-tools version
5338 24.0.3 or
5339 later.
5340 - Android SDK external bindings for support libraries, e.g.
5341 //external:android/appcompat_v4, are removed because the support
5342 library JARs that they referenced no longer ship with the Android
5343 SDK.
5344 - aar_import rule is now documented.
5345 - An IE bug was fixed in repository_ctx.download_and_extract
5346 - Update "-I" to "-isystem" in documentation to reflect current
5347 behavior.
5348 - android_sdk_repository build_tools_version is now optional. The
5349 highest installed build-tools will be used if none is specified.
5350 - New flag --sandbox_add_mount_pair to specify customized
5351 source:target path pairs to bind mount inside the sandbox.
5352 - expose proto_library descriptor set to skylark via
5353 <dep>.proto.descriptor_set
5354 - The `set` constructor is deprecated in favor of `depset`
5355 - Autodetect gold linker in cc_configure.bzl
5356 - Remove build flag --experimental_j2objc_annotation_processing. It
5357 is on by default now.
5358 - Set clang's -mwatchos-version-min correctly using the value of
5359 --watchos_minimum_os, not --watchos_sdk_version.
5360 - singlejar can now create jar files larger than 4GB.
5361 - android_sdk_repository and android_ndk_repository now read
5362 $ANDROID_HOME and $ANDROID_NDK_HOME if the path attribute is not
5363 set.
5364 - Removed broken api levels 3, 4 and 5 from Android NDK 12.
5365 - Default --android_dynamic_mode to off.
5366 - android_sdk_repository no longer requires api_level. If one is
5367 not specified, the highest android platform installed will be
5368 used. Furthermore, android_sdk's are created for all android
5369 platforms installed and can be specified with the --android_sdk
5370 flag.
5371 - To iterate over or test for membership in a set, prefer using the
5372 new to_list() method. E.g., "for x in myset.to_list():", or
5373 "print(x in myset.to_list())". Iteration/membership-test on the
5374 raw set itself is deprecated.
5375 - Remove support for --javawarn; use e.g. --javacopt=-Xlint:all
5376 instead
5377
Bazel Release Systemd3b23642016-12-22 13:30:47 +01005378## Release 0.4.3 (2016-12-22)
Bazel Release System80865ff2016-11-30 13:18:54 +01005379
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01005380```
Bazel Release Systemd3b23642016-12-22 13:30:47 +01005381Baseline: c645a45
Bazel Release System80865ff2016-11-30 13:18:54 +01005382
5383Cherry picks:
Bazel Release Systemd3b23642016-12-22 13:30:47 +01005384 + af878d0: Add coverage support for java test. (series 4/4 of
5385 open-sourcing coverage command for java test)
5386 + 09b92a8: Rollback of commit
5387 67b4d5250edcefa7220e928e529b1f385e2dc464.
5388 + b11dd48: Fix bad bug with the parallel implementation of
5389 BinaryOperatorExpression. Turns out that
5390 ForkJoinTask#adapt(Callable) returns a ForkJoinTask
5391 whose Future#get on error throws a ExecutionException
5392 wrapping a RuntimeException wrapping the thrown checked
5393 exception from the callable. This is documented
5394 behavior [1] that I incorrectly didn't know about.
5395 + 9012bf1: Fix scripts/packages/convert_changelog to read the
5396 changelog correctly
5397 + 55c97bc: Release script: if master branch does not exist, fall
5398 back on origin/master
5399 + 4fb378c: Debian repository: override section and priority fields
5400 + acbcbc2: Fix release notes in emails
5401 + 4975760: Fix PathFragment to not use Java8-only static hashCode
5402 methods.
5403 + 05fd076: Disable sandboxing for XibCompile actions.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01005404```
Bazel Release System80865ff2016-11-30 13:18:54 +01005405
5406Incompatible changes:
5407
Bazel Release Systemd3b23642016-12-22 13:30:47 +01005408 - Skylark maven_jar and maven_aar settings attribute is now a label
5409 so it can be checked into your workspace.
5410 - --{no}experimental_use_rclass_generator is now a nop.
5411
5412New features:
5413
5414 - Coverage support (*experimental*) for pure Java target.
5415 Use `bazel coverage //my:target` to generate coverage information
5416 from a `java_test`.
Bazel Release System80865ff2016-11-30 13:18:54 +01005417
5418Important changes:
5419
Bazel Release Systemd3b23642016-12-22 13:30:47 +01005420 - Enable fallback URLs in Skylark http rules.
5421 - cc_proto_library generates C++ code from proto_library rules.
5422 - cc_library now supports the strip_prefix and strip_include_prefix
5423 attributes for control of include paths.
5424 - Skylark dicts internally don't rely on keys order anymore and
5425 accept any hashable values (i.e. structs with immutable values)
5426 as keys. Iteration order of dictionaries is no longer specified.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01005427
5428## Release 0.4.2 (2016-12-02)
5429
5430```
5431Baseline: 6331a94
5432
5433Cherry picks:
5434 + 7b835d9: Do not patch WORKSPACE in the release process
5435```
5436
5437Incompatible changes:
5438
5439 - Callback functions in Skylark no longer support the cfg
5440 parameter. This is a cleanup and only affects the signatures of
5441 callbacks, since the parameter hasn't been set since September
5442 2016.
5443
5444Important changes:
5445
5446 - Alias proto_library's produce a descriptor set that contains all
5447 srcs of its dependencies.
5448 - proto_library supports strict proto deps.
5449 - Top level @androidsdk support library targets have been replaced
5450 by @androidsdk//<group id>:<artifact id>-<version> for Android
5451 SDK Support and Google Play Services libraries.
5452
Bazel Release System15402a92016-11-30 10:12:30 +01005453## Release 0.4.1 (2016-11-21)
5454
5455```
5456Baseline: 9a796de
5457
5458Cherry picks:
5459 + 88bfe85: Description redacted. -- MOS_MIGRATED_REVID=139219934
5460 + b09ea94: Rollback of commit
5461 a3f5f576cd35798140ba3e81d03d919dd4ecb847.
5462```
5463
5464New features:
5465
5466 - android_library now has a "exported_plugins" attribute just like
5467 java_library
5468 - Use --strict_system_includes to apply hdrs_check=strict also to
5469 cc_library.includes, even if sandboxing is disabled.
5470 - Bazel on Windows: java_binary can now be the executable of
5471 Skylark rule actions (ctx.action's executable argument)
5472 - Packages are defined in BUILD.bazel as well as BUILD files.
5473
5474Important changes:
5475
5476 - getattr()'s 3-arg form no longer raises an error when the
5477 retrieved field is a built-in method.
5478 - --apk_signing_method default changed to v1. Android APKs are now
5479 signed with the new ApkSignerTool by default.
5480 - New rule: proto_lang_toolchain(), to support LANG_proto_library
5481 rules on multiple platforms.
5482 - Fix for Android clang++ std::stack segfault on 32bit x86. See
5483 https://code.google.com/p/android/issues/detail?id=220159
5484 - Default android_manifest_merger is now "android" which uses the
5485 official Android manifest merger.
5486 http://tools.android.com/tech-docs/new-build-system/user-guide/man
5487 ifest-merger
5488 - Do not propagate aspect to its own attributes when using '*'.
5489 - Comparing sets (`if set1 < set2:`) is not allowed anymore in
5490 Skylark because it didn't work correctly anyway.
5491 - When --experimental_extra_action_top_level_only, Bazel reports
5492 extra-actions for actions registered by Aspects injected by a
5493 top-level rule (approximately).
5494 - Blacklists for proto_lang_toolchain() no longer have to be
5495 proto_library's.
5496 - Extra actions now contain aspect-related information.
5497 - Fix slicing bug where "abc"[:-4:-1] would give wrong answer
5498
Bazel Release Systemd0761e62016-11-02 13:36:35 -04005499## Release 0.4.0 (2016-10-26)
5500
5501```
5502Baseline: 088bbc6
5503
5504Cherry picks:
5505 + b01160c: Stamp Windows release.
5506 + 2d6736e: Add --no-tty for gpg signing
5507 + 9b1dfb8: Remove .sig file before gpg signing
5508 + 81aede1: Reimplement whole archive on Windows
5509```
5510
5511Incompatible changes:
5512
5513 - Skylark: updating list/dicts while they are being looped over is not
5514 allowed. Use an explicit copy if needed ("for x in list(mylist):").
5515 - Bazel now uses the --cpu flag to look up Jvms; it falls back
5516 to "default" if it can't find a Jvm matching the CPU value.
5517 - --command_port=-1 to use AF_UNIX for client/server communications
5518 is not supported anymore.
5519 - Sandboxed actions can access the network by default, unless their
5520 target has a "block-network" tag.
5521
5522New features:
5523
5524 - Files now have an "extension" property in Skylark.
5525
5526Important changes:
5527
5528 - Added a new flag --sandbox_tmpfs_path, which asks the sandbox to
5529 mount an empty, writable directory at a specified path when
5530 running actions. (Supported on Linux only for now.)
5531 - Update protoc-3.0.0-mingw.exe to a working (statically linked)
5532 binary
5533 - apple_static_library rule to create multi-architecture static
5534 archive files from Objc/C++/Swift dependencies on apple platforms
5535 - JS: Add support for localization with closure managed rules.
5536 - Create a flag --android_dynamic_mode to turn off dynamic mode
5537 during the Android split transition.
5538 - Darwin sandboxing is default.
5539 - Remove flag --experimental_zip_tree_artifact from j2objc Java
5540 annotation processing support.
5541 - A few functions are added to BUILD files for consistency (hash,
5542 dir,
5543 hasattr, getattr) with .bzl files, although they are not very
5544 useful.
5545 - --watchfs is now a command option; the startup option of the same
5546 name is deprecated. I.e., use bazel build --watchfs, not
5547 blaze --watchfs
5548 build.
5549
Bazel Release System33579a42016-10-07 13:05:11 -04005550## Release 0.3.2 (2016-10-07)
5551
5552```
5553Baseline: 023a7bd
5554
5555Cherry picks:
5556 + bebbbe5: Fix dependency on libtool's helper script
5557 make_hashed_objlist.py.
5558 + 8a0d45f: Add the version information to the bazel.exe file
5559 + 2bc0939: Allow new_ rules to overwrited BUILD files in
5560 downloaded repos
5561 + c5545fd: Rollback of commit
5562 96d46280bc5a4803ba2242a4ad16939f85a3b212.
5563 + eb87208: Make cc_configure on Windows more robust
5564 + c30432c: Fix cc_configure on Windows
5565 + 95b16a8: sandbox: Replace the error-prone lazy cleanup of
5566 sandbox directories by a simple synchronous cleanup.
5567 + e898023: Fix #1849: Sandboxing on OS X should be turned off by
5568 default for 0.3.2.
5569 + ffdc05d: Add action_config and feature for linking on Windows
5570```
5571
5572Incompatible changes:
5573
5574 - If you maintain a rule that uses persistent workers, you'll have
5575 to specify execution_requirements={"supports-workers": 1} in the
5576 ctx.action that intends to run a tool with workers. The
5577 WorkerSpawnStrategy will alert you with a warning message if you
5578 forget to make this change and fallback to non-worker based
5579 execution.
5580 - It is now an error to include a precompiled library (.a, .lo, .so)
5581 in a cc_library which would generate a library with the same name
5582 (e.g., libfoo.so in cc_library foo) if that library also contains
5583 other linkable
5584 sources.
5585 - The main repository's execution root is under the main
5586 repository's workspace name, not the source directory's basename.
5587 This shouldn't
5588 have any effect on most builds, but it's possible it could break
5589 someone doing
5590 weird things with paths in actions.
5591 - Blaze doesn't support Unix domain sockets for communication
5592 between its client and server anymore. Therefore, the
5593 --command_port command line argument doesn't accept -1 as a valid
5594 value anymore.
5595 - Skylark: It is an error to shadow a global variable with a local
5596 variable after the global has already been accessed in the
5597 function.
5598 - bin_dir and genfiles_dir are now properties of ctx, not
5599 configuration. That is, to access the bin or genfiles directory
5600 from a
5601 Skylark rule, use ctx.bin_dir or ctx.genfiles_dir (not
5602 ctx.configuration.{bin,genfiles}_dir). At the moment, you can
5603 access
5604 {bin,genfiles}_dir from either, but the ctx.configuration version
5605 will
5606 stop working in a future release.
5607 - filegroup-based C++ toolchains are not supported anymore.
5608 --*_crosstool_top options must always point to a
5609 cc_toolchain_suite rule (or an alias of one).
5610 - repository_ctx.{download,download_and_extract,execute} API now use
5611 named parameters for optional parameters and no
5612 longer uses argument
5613 type to distinguished between arguments
5614 (executable attribute name
5615 must be specified when preceding optional
5616 arguments are missing).
5617
5618New features:
5619
5620 - print and fail are now available in BUILD files.
5621
5622Important changes:
5623
5624 - Added @bazel_tools//tools/build_defs/repo/git.bzl as a Skylark
5625 rule for Git repositories.
5626 - Added @bazel_tools//tools/build_defs/repo/maven_rules.bzl as a
5627 Skylark rule for Maven repositories.
5628 - Add global hash() function for strings (only)
5629 - Improve Android split transition handling.
5630 - Removes exports_manifest attribute from android_binary rule.
5631 - java_proto_library: control strict-deps through a rule-level and
5632 a package-level attribute.
5633 - Persistent workers are now used by default for Java compilation
5634 in Bazel, which should speed up your Java builds by ~4x. You can
5635 switch back to the old behavior via --strategy=Javac=standalone.
5636 Check out http://www.bazel.io/blog/2015/12/10/java-workers.html
5637 for more details.
5638 - objc_* rules can now depend on any target that returns an "objc"
5639 provider.
5640 - Adds support for NDK12 to `android_ndk_repository` rule in Bazel.
5641 - Test targets can disable the JUnit4 test security manager via a
5642 property.
5643 - Disable the Android split transition if --android_cpu and
5644 fat_apk_cpu are both empty.
5645 - New sandboxing implementation for Linux in which all actions run
5646 in a separate execroot that contains input files as symlinks back
5647 to the originals in the workspace. The running action now has
5648 read-write access to its execroot and /tmp only and can no longer
5649 write in arbitrary other places in the file system.
5650 - Add worker support to single jar.
5651 - Invoke source jar action as a worker.
5652 - Sandboxed builds allow network access for builds by default.
5653 Tests will still be run without networking, unless
5654 "requires-network" is specified as a tag.
5655 - Add path.realpath() method for Skylark repositories.
5656 - On Mac devices, detect locally installed versions of xcode to:
5657 1. Use a sensible default if xcode is required but
5658 --xcode_version is unspecified.
5659 2. Use sensible default iOS SDK version for the targeted version
5660 of xcode if ios_sdk_version is unspecified.
5661 - Emacs' [C-x `], a.k.a. next-error, works again in emacsen >= 25.1
5662 - swift_library can be used to build watchOS apps.
5663 - Exposes the is_device field on Apple platform objects and adds
5664 the apple_common.platform_type(name) method to retrieve a
5665 platform_type value that can be passed to methods like the Apple
5666 fragment's multi_arch_platform.
5667 - Move Skylark git_repository rules to git.bzl
5668 - Add support for aspects to attr.label() attributes
5669 - Global varaiables HOST_CFG and DATA_CFG are deprecated in favor
5670 of strings "host"
5671 and "data.
5672 Argument `cfg = "host"` or `cfg = "data"` is mandatory if
5673 `executable = True` is provided for a label.
5674 - The deprecation attribute of all rules now causes warnings
5675 to be printed when other targets depend on a target with that
5676 attribute set.
5677 - Change default of --[no]instrument_test_targets to false, change
5678 default --instrumentation_filter (which previously tried to
5679 exclude test targets by heuristic) to only exclude targets in
5680 javatests.
5681 - Remove deprecated absolute paths in blaze IDE artifacts
5682 - When using android_binary.manifest_merger="android" the merger
5683 produces a summary log next to the merged manifest artifact.
5684 - Allow different default mallocs per configuration.
5685
Bazel Release System70c772b2016-07-29 10:28:13 +02005686## Release 0.3.1 (2016-07-29)
5687
5688```
5689Baseline: 792a9d6
5690
5691Cherry picks:
5692 + 25e5995: Rollback of commit
5693 a2770334ea3f3111026eb3e1368586921468710c.
5694 + 2479405: Fix NPE with unset maven_jar sha1
5695 + 3cf2126: Rewrite the extra action info files if the data within
5696 them changes.
5697 + 5a9c6b4: JavaBuilder: Reintroduce the -extra_checks flag.
5698```
5699
5700Incompatible changes:
5701
5702 - Removed predefined Python variable "generic_cpu".
5703 - Skylark rules: if you set "outputs" or an attribute to a
5704 function, this function must now list its required attributes as
5705 parameters (instead of an attribute map).
5706 - The host_platform and target_platform entries are not written to
5707 the master log anymore.
5708 - Bazel requires Hazelcast 3.6 or higher now for remote execution
5709 support, because we upgraded our client library and the protocol
5710 it uses is incompatible with older versions.
5711
5712New features:
5713
5714 - LIPO context (--lipo_context) can now also be a cc_test (in
5715 addition to cc_binary)
5716
5717Important changes:
5718
5719 - If --android_crosstool_top is set, native code compiled for
5720 android will always use --android_compiler and not --compiler in
5721 choosing the crosstool toolchain, and will use --android_cpu if
5722 --fat_apk_cpu is not set.
5723 - Add --instrument_test_targets option.
5724 - apple_binary supports a new platform_type attribute, which, if
5725 set to "watchos", will build dependencies for Apple's watchOS2.
5726 - objc_binary now supports late-loaded dynamic frameworks.
5727 - Native Swift rules no longer pull in module maps unconditionally.
5728 Use --experimental_objc_enable_module_maps for that.
5729 - Merged manifests are guaranteed to have the application element
5730 as the last child of the manifest element as required by Android
5731 N.
5732 - The Android manifest merger is now available as an option for
5733 android_binary rules. The merger will honor tools annotations in
5734 AndroidManifest.xml and will perform placeholder substitutions
5735 using the values specified in android_binary.manifest_values. The
5736 merger may be selected by setting the manifest_merger attribute
5737 on android_binary.
5738 - The progress message would not clear packages that need to be
5739 loaded twice.
5740 - Remove warning for high value of --jobs.
5741 - Use the correct build configuration for shared native deps during
5742 Android split transitions.
5743 - When building ObjectiveC++, pass the flag -std=gnu++11.
5744 - use xcrun simctl instead of iossim to launch the app for "blaze
5745 run".
5746 - Glob arguments 'exclude' and 'exclude_directories' must be named
5747 - Bazel no longer regards an empty file as changed if its mtime has
5748 changed.
5749
Bazel Release Systemccadf8d2016-06-10 13:28:40 +02005750## Release 0.3.0 (2016-06-10)
5751
5752```
5753Baseline: a9301fa
5754
5755Cherry picks:
5756 + ff30a73: Turn --legacy_external_runfiles back on by default
5757 + aeee3b8: Fix delete[] warning on fsevents.cc
5758```
5759
5760Incompatible changes:
5761
5762 - The --cwarn command line option is not supported anymore. Use
5763 --copt instead.
5764
5765New features:
5766
5767 - On OSX, --watchfs now uses FsEvents to be notified of changes
5768 from the filesystem (previously, this flag had no effect on OS X).
5769 - add support for the '-=', '*=', '/=', and'%=' operators to
5770 skylark. Notably, we do not support '|=' because the semantics
5771 of skylark sets are sufficiently different from python sets.
5772
5773Important changes:
5774
5775 - Use singular form when appropriate in blaze's test result summary
5776 message.
5777 - Added supported for Android NDK revision 11
5778 - --objc_generate_debug_symbols is now deprecated.
5779 - swift_library now generates an Objective-C header for its @objc
5780 interfaces.
5781 - new_objc_provider can now set the USES_SWIFT flag.
5782 - objc_framework now supports dynamic frameworks.
5783 - Symlinks in zip files are now unzipped correctly by http_archive,
5784 download_and_extract, etc.
5785 - swift_library is now able to import framework rules such as
5786 objc_framework.
5787 - Adds "jre_deps" attribute to j2objc_library.
5788 - Release apple_binary rule, for creating multi-architecture
5789 ("fat") objc/cc binaries and libraries, targeting ios platforms.
5790 - Aspects documentation added.
5791 - The --ues_isystem_for_includes command line option is not
5792 supported anymore.
5793 - global function 'provider' is removed from .bzl files. Providers
5794 can only be accessed through fields in a 'target' object.
5795
Bazel Release System9fdd6012016-05-17 11:12:31 +02005796## Release 0.2.3 (2016-05-10)
5797
5798```
5799Baseline: 5a2dd7a
5800```
5801
5802Incompatible changes:
5803
5804 - All repositories are now directly under the x.runfiles directory
5805 in the runfiles tree (previously, external repositories were at
5806 x.runfiles/main-repo/external/other-repo. This simplifies
5807 handling remote repository runfiles considerably, but will break
5808 existing references to external repository runfiles.
5809 Furthermore, if a Bazel project does not provide a workspace name
5810 in the WORKSPACE file, Bazel will now default to using __main__
5811 as the workspace name (instead of "", as previously). The
5812 repository's runfiles will appear under x.runfiles/__main__/.
5813 - Bazel does not embed protocol buffer-related rules anymore.
5814 - It is now an error for a cc rule's includes attribute to point to
5815 the workspace root.
5816 - Bazel warns if a cc rule's includes attribute points out of
5817 third_party.
5818 - Removed cc_* attributes: abi / abi_deps. Use select() instead.
5819
5820New features:
5821
5822 - select({"//some:condition": None }) is now possible (this "unsets"
5823 the attribute).
5824
5825Important changes:
5826
5827 - java_import now allows its 'jars' attribute to be empty.
5828 - adds crunch_png attribute to android_binary
5829 - Replace --java_langtools, --javabuilder_top, --singlejar_top,
5830 --genclass_top, and --ijar_top with
5831 java_toolchain.{javac,javabuilder,singlejar,genclass,ijar}
5832 - External repository correctness fix: adding a new file/directory
5833 as a child of a new_local_repository is now noticed.
5834 - iOS apps are signed with get-task-allow=1 unless building with -c
5835 opt.
5836 - Generate debug symbols (-g) is enabled for all dbg builds of
5837 objc_ rules.
5838 - Bazel's workspace name is now io_bazel. If you are using Bazel's
5839 source as an external repository, then you may want to update the
5840 name you're referring to it as or you'll begin seeing warnings
5841 about name mismatches in your code.
5842 - Fixes integer overflow in J2ObjC sources to be Java-compatible.
5843 - A FlagPolicy specified via the --invocation_policy flag will now
5844 match the current command if any of its commands matches any of
5845 the commands the current command inherits from, as opposed to
5846 just the current command.
5847 - The key for the map to cc_toolchain_suite.toolchains is now a
5848 string of the form "cpu|compiler" (previously, it was just "cpu").
5849 - Fix interaction between LIPO builds and C++ header modules.
5850 - Ctrl-C will now interrupt a download, instead of waiting for it to
5851 finish.
5852 - Proxy settings can now be specified in http_proxy and https_proxy
5853 environment variables (not just HTTP_PROXY and HTTPS_PROXY).
5854 - Skylark targets can now read include directories from
5855 ObjcProvider.
5856 - Expose parameterized aspects to Skylark.
5857 - Support alwayslink cc_library dependencies in objc binaries.
5858 - Import cc_library dependencies in generated Xcode project.
5859
Bazel Release System1aedd1f12016-04-25 09:47:50 +02005860## Release 0.2.2b (2016-04-22)
Bazel Release System951cea22016-04-21 14:10:12 +02005861
5862```
5863Baseline: 759bbfe
Bazel Release System1aedd1f12016-04-25 09:47:50 +02005864
5865Cherry picks:
Bazel Release System951cea22016-04-21 14:10:12 +02005866 + 1250fda: Rollback of commit
5867 351475627b9e94e5afdf472cbf465f49c433a25e.
5868 + ba8700e: Correctly set up build variables for the correct pic
5869 mode for fake_binary rules.
5870 + 386f242: Automated [] rollback of commit
5871 525fa71b0d6f096e9bfb180f688a4418c4974eb4.
Bazel Release System1aedd1f12016-04-25 09:47:50 +02005872 + 97e5ab0: Fix cc_configure include path for Frameworks on OS X.
5873 + a20352e: cc_configure: always add -B/usr/bin to the list of gcc
5874 option
5875 + 0b26f44: cc_configure: Add piii to the list of supported
5876 cpu_value
5877 + 3e4e416: cc_configure: uses which on the CC environment variable
5878 + aa3dbd3: cc_configure.bzl: strip end of line when looking for
5879 the cpu
5880 + 810d60a: cc_configure: Add -B to compiler flag too
Bazel Release System951cea22016-04-21 14:10:12 +02005881```
5882
Bazel Release System1aedd1f12016-04-25 09:47:50 +02005883Patch release, only includes fixes to C++ auto-configuration.
Bazel Release System951cea22016-04-21 14:10:12 +02005884
Bazel Release System950c1ab2016-03-31 17:18:55 +02005885## Release 0.2.1 (2016-03-21)
5886
5887```
5888Baseline: 19b5675
5889```
5890
5891Incompatible changes:
5892
5893 - Skylark rules that are available from their own repository will
5894 now issue a warning when accessed through @bazel_tools.
5895 - Set --legacy_bazel_java_test to off by default. java_test will
5896 now have a slightly different behaviour, correctly emitting XML
5897 file but, as a downside, it needs correct declaration of the
5898 test suite (see https://github.com/bazelbuild/bazel/issues/1017).
5899 - Labels in .bzl files in remote repositories will be resolved
5900 relative to their repository (instead of the repository the
5901 Skylark rule is used in).
5902 - Renamed proto_java_library to java_proto_library. The former
5903 is now deprecated and will print out a warning when used.
5904 - android_sdk now compiles android_jack on the fly from
5905 android_jar, which means android_jar must be a jar and
5906 android_jack is now deprecated. The Jack tools (jack, jill,
5907 resource_extractor) must be specified.
5908 - Any project that depended on the objc_options rule will be
5909 broken. Can be fixed by adding attrs (infoplists,copts) directly
5910 to rules depending on the options.
5911 - .aidl files correctly require import statements for types
5912 defined in the same package and the same android_library.
5913
5914New features:
5915
5916 - Experimental Windows support is available.
5917 - Experimental support for writing remote repository rules in
5918 Skylark is available.
5919 - iOS ipa_post_processor attribute allows for user-defined IPA
5920 edits.
5921 - Adds a to_json method to Skylark structs, providing conversion to
5922 JSON format.
5923 - Native python rule can depend on skylark rule as long as skylark
5924 rule provides 'py' provider.
5925 - When using both --verbose_failures and --sandbox_debug, Bazel
5926 prints instructions how to spawn a debugging shell inside the
5927 sandbox.
5928 - add flag --sandbox_add_path, which takes a list of additional
5929 paths as argument and mount these paths to sandbox.
5930
5931Important changes:
5932
5933 - @androidsdk//:org_apache_http_legacy added for the legacy Apache
5934 classes for android sdk version 23 and above.
5935 - Genrules correctly work when used with bazel run.
5936 - When namespace-sandbox is run with the -D (debug) flag and
5937 inside a terminal, it spawns a shell inside the sandbox to aid in
5938 debugging when the sandboxed command fails.
5939 - Added --artifact to workspace generator for generating workspace
5940 and build file rules from artifact coodrinates.
5941 - Specifying --experimental_android_resource_shrinking on the
5942 command line will enable a resource shrinking pass on
5943 android_binary targets that already use Proguard.
5944 - J2ObjC updated to 1.0.1 release.
5945 - Added "root_symlinks" and "symlinks" parameters to Skylark
5946 runfiles() method.
5947 - You can no longer use objc_binary targets for the xctest_app
5948 attribute of an ios_test rule.
5949 - Enable overriding jsonnet binaries and stdlib for Jsonnet rules.
5950 - mount target of /etc/resolv.conf if it is a symlink.
5951 - Tests that failed to build because execution was halted no longer
5952 print their status.
5953 - Bazel warns if a cc rule's includes attribute contains up-level
5954 references that escape its package.
5955 - Add repository_ctx.download and repository_ctx.download_and_extract
5956 function.
5957
Bazel Release Systemf98290d2016-02-23 13:51:16 +01005958## Release 0.2.0 (2016-02-18)
5959
5960```
5961Baseline: 9e100ac
5962```
5963
5964Incompatible changes:
5965
5966 - ObjC compile actions for J2ObjC-translated code now only has
5967 access to headers from the java deps of the associated original
5968 java rule.
5969 These compile actions no longer takes the compiler options
5970 specified in "copts" attribute on objc_binary/ios_test rules.
5971 J2ObjC dead code removal (enabled through flag
5972 "--j2objc_dead_code_removal") now happens *after* ObjC
5973 compilation.
5974 - maven_jar no longer supports separate artifact_id, group_id, and
5975 verison fields. This information should be provided in the
5976 artifact field,
5977 instead.
5978
5979New features:
5980
5981 - Better support for toolchains that don't have a dynamic linker.
5982 - build_file_content attribute added to new_git_repository,
5983 new_http_archive, and new_local_repository.
5984 - Add support for .tar.bz2 archives to http_archive rules.
5985
5986Important changes:
5987
5988 - The --skyframe flag is no longer available for the build command.
5989 - The --artifacts flag was removed from the dump command.
5990 - The sha256 attribute is now optional (although recommended!) for
5991 remote repository rules.
5992 - Add instrumented file provider support to Skylark rules.
5993 - Add imports attribute to native Python rules.
5994 - Allow overriding -gsplit-dwarf from copts.
5995 - Improved sandbox performance on XFS filesystems.
5996
Bazel Release System00cf25d2016-02-09 18:36:51 +01005997## Release 0.1.5 (2016-02-05)
5998
5999```
6000Baseline: 3a95f35
6001 + 8378cd8: Rollback of commit
6002 a9b84575a32476a5faf991da22b44661d75c19b6.
6003```
6004
6005Incompatible changes:
6006
6007 - Set stamping to false by default (i.e., --nostamp)
6008 - Removed --objc_dump_syms_binary.
6009 - Removes --objc_gcov_binary flag.
6010 - Remove JAVAC "Make" variable
6011 - The startup flag --blaze_cpu is removed,
6012
6013New features:
6014
6015 - A new java test runner that support XML output and test filtering
6016 is supported. It can be used by specifying --nolegacy_bazel_java_test
6017 or by specifying the test_class attribute on a java_test.
6018 - Skylark aspects can now specify configuration fragment
6019 dependencies with fragments and host_fragments like rules can.
6020
6021Important changes:
6022
6023 - Support for downloading remote resources through proxies by
6024 setting HTTP_PROXY (or HTTPS_PROXY).
6025 - Timestamps within Android apks are removed to make apks
6026 deterministic.
6027 - Support aggregation over existing rules in Skylark extensions
6028 through native.rules and native.rule.
6029 - A tools/bazel script in the workspace will be executed
6030 as an opportunity to use a fixed version of Bazel (not
6031 implemented for the homebrew recipe yet).
6032 - --noimplicit_deps and --nohost_deps work correctly for Aspect
6033 attributes.
6034 - JDK-related targets are now available via @local_jdk (instead of
6035 @local-jdk).
6036 - j2objc tools can now be accessed via @bazel_j2objc, not
6037 @bazel-j2objc.
6038 - Repository rules must use names that are valid workspace names.
6039 - [rust] Update to Rust 1.6
6040 - Add support for .tar.xz archives to http_archive rules.
6041 - Make C++ modules compatible with tools using
6042 --compilation_prerequisites_only
6043 - [d] Update to DMD 2.070.0
6044
Bazel Release System446d9922016-01-21 10:59:31 +01006045## Release 0.1.4 (2016-01-15)
6046
6047```
6048Baseline: e933d5e
6049 + 3d796fe: Rollback of commit
6050 ac6ed79e1a3fa6b0ca91657b28e2a35f7e49758c.
6051 + 7a02e5d: Fix installer under OS X
6052 + 848740c: Fix bazel version for debian package
6053 + 7751d43: Add a method for getting the root of a rule workspace
6054 to the Label method
6055```
6056
6057Important changes:
6058
6059 - add loadfiles() query operator, to find skylark files loaded by
6060 targets.
6061 - Added ability to declare and use aspects in Skylark.
6062 - Skylark load statements may now reference .bzl files via build
6063 labels, in addition to paths. In particular, such labels can be
6064 used to reference Skylark files in external repositories; e.g.,
6065 load("@my_external_repo//some_pkg:some_file.bzl", ...).
6066 Path-based loads are now deprecated and may be disabled in the
6067 future. Caveats: Skylark files currently do not respect package
6068 visibility; i.e., all Skylark files are effectively public. Also,
6069 loads may not reference the special //external package.
6070 - Relative paths can now be used for 'path' with
6071 new_local_repository and local_repository.
6072
Bazel Release System1518253e2016-01-11 10:10:19 +01006073## Release 0.1.3 (2016-01-07)
6074
6075```
6076Baseline: 23ad8f6
6077 + de2183d: Only depend on the WORKSPACE file for external files
6078 that are under the external/ directory, i.e. were
6079 created by Bazel.
6080 + f8f855c: Rollback of commit
6081 12bad3af0eade9c4b79d76f9e1c950ad2e3214c2.
6082 + f627562: Stop parsing the WORKSPACE file when a parse error is
6083 detected
6084 + 763f139: Add -fno-canonical-system-headers to CROSSTOOL files so
6085 that gcc doesn't resolve symlinks in .d files, which
6086 would confuse Blaze.
6087 + b95995b: Use openjdk7 as dependency for debian package of jdk7
6088 flavor
6089```
6090
6091New features:
6092
6093 - Skylark macros are now enabled in WORKSPACE file.
6094 - .bazelrc allows workspace-relative imports as "import
6095 %workspace%/path/to/rcfile"
6096 - Evaluate the query expression in a file by passing
6097 --query_file=<file> to query
6098
6099Important changes:
6100
6101 - Remove obsolete --objc_per_proto_includes flag.
6102 - iOS apps and extensions now have launch_storyboard
6103 - Passing multiple JVM options via a single --host_jvm_args flag is
6104 now deprecated. Pass each JVM option behind its own
6105 --host_jvm_args flag.
6106 - Resources defined locally on an android_library rule will respect
6107 the neverlink attribute.
6108 - Update Rust to 1.4
6109 - Fix resource handling for exported android_library rules
6110 - Files in external repositories are now treated as mutable, which
6111 will make the correctness guarantees of using external
6112 repositories stronger (existent), but may cause performance
6113 penalties.
6114
Bazel Release System0d2e4092015-12-04 23:31:41 +01006115## Release 0.1.2 (2015-11-20)
6116
6117```
6118Baseline: ee0ade3
6119 + 1e66ccd: RELNOTES: Symlink dirents of directories containing a
6120 file named
6121 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA
6122 _A_RECURSIVE_TARGET_PATTERN" will *not* be traversed
6123 for transitive target patterns. The motivation here is
6124 to allow directories that intentionally contain wonky
6125 symlinks (e.g. foo/bar -> foo) to opt out of being
6126 consumed by Blaze. For example, given
6127 + f5773fc: Set the ijar MAX_BUFFER_SIZE to 256 MB
6128```
6129
6130New features:
6131
6132 - java_library now supports the proguard_specs attribute for
6133 passing Proguard configuration up to Android (not Java) binaries.
6134 - http_file can specify "executable" to make the downloaded file
6135 runnable.
6136 - Debian and tar packaging is now supported
6137 (see tools/build_defs/pkg/README.md).
6138 - cpxx_builtin_include_directory specifications allow more
6139 flexibility.
6140 - accept %crosstool_top% in cxx_builtin_include_directory
6141 - android_binary now supports proguard_apply_mapping to re-use a
6142 previously generated proguard mapping.
6143
6144Important changes:
6145
6146 - remove webstatusserver (--use_webstatusserver).
6147 - Add support for objc textual headers, which will not be compiled
6148 when modules are enabled.
6149 - actoolzip, momczip and swiftstdlibtoolzip have all been made into
6150 bash scripts and have been renamed to actoolwrapper, momcwrapper
6151 and swiftstdlibtoolwrapper respectively. The old versions will be
6152 deleted in a later change.
6153 - [rust] Add rust_bench_test and rust_doc_test rules and improve
6154 usability of rust_test tule.
6155 - Java rules now support a resource_strip_prefix attribute that
6156 allows the removal of path prefixes from Java resources.
6157 - [docker_build] incremental loading is default now.
6158 Specify explicitly //package:target.tar (with the .tar extension)
6159 to obtain the full image.
6160 - --ios_signing_cert_name allows specifying a cert for iOS app
6161 signing
6162 - Go rules for Bazel.
6163 - [jsonnet] Update to Jsonnet 0.8.1.
6164 - [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to
6165 allow passing external variables to Jsonnet via --var and
6166 --code_var.
6167 - Adds --override_workspace_root blaze flag to hand-set
6168 workspace_root and mainGroup in xcodeproj.
6169 - Allow dots in package names.
6170 - When used as a forwarding rule (i.e., has no sources),
6171 android_library
6172 will also forward any exported_plugins in its dependencies.
6173 - Add support for Windows-created zip files with non-posix
6174 permissions.
6175 - [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.
6176 - C++ compile actions run in a sandbox now on systems that support
6177 sandboxed execution.
6178 - The names of the clang compilers in the Android NDK crosstool no
6179 longer reference gcc.
6180 - 420 dpi is now a valid density for andoid_binary.densities.
6181 - Bazel does strict validation of include files now to ensure
6182 correct incremental builds. If you see compilation errors when
6183 building C++ code, please make sure that you explicitly declare
6184 all header files in the srcs or hdrs attribute of your cc_*
6185 targets and that your cc_* targets have correct "deps" on
6186 cc_library's that they use.
6187 - [jsonnet] Fix jsonnet_to_json rule to read code_vars from
6188 code_vars instead of vars.
6189 - Tests, genrules, and Skylark actions without the
6190 "requires-network" tag will no longer be able to access the
6191 network.
6192 - C++ libraries no longer need includes = ["."] (or similar copts)
6193 to include paths relative to a remote repository's root.
6194 - Support exports attribute for android_library
6195 - Symlink dirents of directories containing a file named
6196 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA_A_RECURSI
6197 VE_TARGET_PATTERN" will *not* be traversed for transitive target
6198 patterns. The motivation here is to allow directories that
6199 intentionally contain wonky symlinks (e.g. foo/bar -> foo) to opt
6200 out of being consumed by Blaze.
6201
Bazel Release Systemfa35b182015-10-14 12:11:51 -04006202## Release 0.1.1 (2015-10-05)
6203
6204```
6205Baseline: 22616ae
6206 + 1ef338f: Rollback of "Propagates cc_library linkopts attribute
6207 to dependent objc_libraries.": breaks certain
6208 objc_binary build targets.
6209 + 5fb1073: Reintroduce an inconsistency check (albeit, in a weaker
6210 form) removed by a previous change that was trying to
6211 optimize away a filesystem call.
6212 + 6d00468b2eb976866cfb814d562e0d53a580a46f: Add IdlClass to the embedded default android tools
6213 repository and rearrange BuildJar's JarHelper so that
6214 it too can be embedded.
6215 + a5199039934a2e399a7201adc0d74e2f2d2b0ff3: Fixes Android integration tests by wiring up idlclass
6216 rules in integration environment.
6217```
6218
6219Incompatible changes:
6220
6221 - Bazel requires JDK 8 to run.
6222 - Attribute "copts" is removed from j2objc_library.
6223
6224New features:
6225
6226 - a cc_binary rule may list '.s' and '.asm' files in the srcs
6227 - Support for build with libsass.
6228 - labels in "linkopts" may match any label in either "deps" or
6229 "srcs" to be considered valid.
6230 - Maven servers that require username & password authentication are
6231 now supported (see maven_server documentation).
6232
6233Important changes:
6234
6235 - Support empty plist files
6236 - The <compatible-screens> section of the AndroidManifest.xml will
6237 not be overwritten if it already contains a <screen> tag for each
6238 of the densities specified on the android_binary rule.
6239 - Add Jsonnet rules to Bazel
6240 - Remove deprecated xcode_options flag.
6241 - Workspace names are now restricted to being in their base
6242 directory
6243 (that is, the names cannot contain up-level references or /./).
6244 - j2objc_library on Bazel now transpiles transitive proto_library
6245 dependencies. (Note that java_* rules in Bazel do not yet support
6246 protos; currently they ignore proto dependencies.)
6247 - new_http_archive can specify a root directory.
6248 - Adds support for dylibs on devices for Xcode 7.
6249 - [d] d_docs rules now depend on a d_binary, a d_library or
6250 d_source_library.
6251 - [docker] docker_build now set the permission to 0555 to files
6252 added to the layer, use `mode = "0644"` to use the legacy behavior.
6253 - android_binary now has a main_dex_proguard_specs attribute to
6254 specify which classes should be in the main dex.
6255 - [rust] Add rust_docs rule for generating rustdoc.
Bazel Release System79e40ac2015-09-08 23:38:00 +02006256## Release 0.1.0 (2015-09-08)
6257
6258```
6259Baseline: a0881e8
6260 + 87374e6: Make android_binary use a constant, hard-coded,
6261 checked-in debug key.
6262 + 2984f1c: Adds some safety checks in the Bazel installer
6263 + 4e21d90: Remove BUILD.glob and incorporate the necessary
6264 filegroups into the android_{ndk,sdk}_repository rules
6265 themselves.
6266 + 1ee813e: Fix Groovy rules to work with sandboxing
6267 + 8741978: Add initial D rules to Bazel.
6268 + 2c2e70d: Fix the installer and fixing the package shiped into
6269 binary version of Bazel.
6270```
6271
6272Initial release.
Bazel Release System6712cac2017-02-01 19:53:37 +01006273
Bazel Release System8d635fc2017-03-16 13:18:30 +01006274
Bazel Release Systema3e26832017-05-26 14:11:07 +02006275
Bazel Release System63222de2017-06-06 11:32:04 +02006276
Bazel Release System7b851222017-06-27 15:08:47 +02006277
Bazel Release System195a7a82017-07-27 20:27:32 +02006278
Bazel Release System5371d132017-08-25 11:24:06 +02006279
Bazel Release System471c0e12017-09-28 16:36:12 +02006280
Bazel Release Systemed0ebc02017-10-05 23:52:25 +02006281
Bazel Release System76b6d0a2017-10-18 14:34:11 +02006282
Bazel Release System0838aee2017-11-27 14:16:34 +01006283
Bazel Release System3d53cb02017-12-05 15:28:40 +01006284
Bazel Release System5bd27482018-02-01 09:43:33 +01006285
Bazel Release Systeme1148362018-02-15 10:02:05 +01006286
Bazel Release System09077a32018-02-23 11:09:18 -05006287
Bazel Release Systemc86d6a02018-03-06 19:32:18 +01006288
Bazel Release System546976c2018-04-11 17:34:19 +02006289
Bazel Release System1d9c6062018-04-30 10:45:38 +02006290
Bazel Release System24c68ff2018-05-23 10:59:57 +02006291
Bazel Release System3a592f62018-06-01 15:04:31 +02006292
Bazel Release System513bbf52018-06-08 14:15:20 +02006293
Bazel Release System5013a332018-06-26 14:07:47 +02006294
Bazel Release System1281a022018-07-16 16:13:53 +02006295
Bazel Release System1bd58832018-08-13 15:41:26 +02006296
Bazel Release Systemfdb09a22018-09-14 12:15:54 +02006297
Bazel Release System50921e62018-09-21 12:27:04 +02006298
Bazel Release System36177972018-10-15 10:29:10 +02006299
Bazel Release System92849b82018-10-31 15:41:11 +01006300
Bazel Release System684f1092018-11-12 10:26:58 -05006301
Bazel Release Systemcb3e2982018-11-19 11:19:38 -05006302
Bazel Release System85378562018-11-30 15:34:16 +01006303