blob: 12d7513ce97745f32cfcb29c837e4f70e7c55ba8 [file] [log] [blame] [view]
Bazel Release Systemf4a08032019-07-10 18:11:04 +02001## Release 0.28.0 (2019-07-10)
Bazel Release System7e809492019-07-10 17:50:43 +02002
3```
Bazel Release Systemf4a08032019-07-10 18:11:04 +02004Baseline: 2e374a9c6e3d4ed71f0145de287c4b2fe43c76d6
Bazel Release System7e809492019-07-10 17:50:43 +02005
6Cherry picks:
7
Bazel Release System7e809492019-07-10 17:50:43 +02008 + 6d0b14b95a71175362030b4811ca74512b00a890:
9 rule_test: apply "tags" to all rules in the macro
10```
11
Bazel Release Systemf4a08032019-07-10 18:11:04 +020012Incompatible changes:
13
14 - Add --incompatible_enable_profile_by_default to enable the JSON
15 profile by default.
16 - The --incompatible_windows_style_arg_escaping flag is flipped to
17 "true", and the "false" case unsupported. Bazel no longer accepts
18 this flag.
19
Bazel Release System7e809492019-07-10 17:50:43 +020020Important changes:
21
Bazel Release Systemf4a08032019-07-10 18:11:04 +020022 - Bazel now supports hiding compiler warnings for targets that
23 you're not explicitly building (see
24 https://docs.bazel.build/versions/master/user-manual.html#flag--au
25 to_output_filter).
26 - Flag `--incompatible_restrict_escape_sequences` is added. See
27 https://github.com/bazelbuild/bazel/issues/8380
28 - The "info" command now supports the "starlark-semantics"
29 argument, which outputs a representation of the effective Starlark
30 semantics option values.
31 - The `outputs` parameter of the `rule()` function is deprecated
32 and attached to flag `--incompatible_no_rule_outputs_param`.
33 Migrate rules to use `OutputGroupInfo` or `attr.output` instead.
34 See https://github.com/bazelbuild/bazel/issues/7977 for more info.
Bazel Release System7e809492019-07-10 17:50:43 +020035 - When `--incompatible_strict_action_env` is enabled, the default
36 `PATH` now includes `/usr/local/bin`.
37 - Turn on --experimental_build_setting_api by default for starlark
38 build settings (see
39 https://docs.bazel.build/versions/master/skylark/config.html#user-
40 defined-build-settings for more info)
Bazel Release Systemf4a08032019-07-10 18:11:04 +020041 - `@bazel_tools//tools/jdk:toolchain_java10` and
42 `@bazel_tools//tools/jdk:toolchain_java11` are now available to
43 enable java 10, respectively java 11 language level support.
44 - The `command` parameter of the `actions.run_shell()` function
45 will be restricted to only accept strings (and not string
46 sequences). This check is attached to flag
47 `--incompatible_run_shell_command_string`. One may migrate by
48 using the `arguments` parameter of `actions.run()` instead. See
49 https://github.com/bazelbuild/bazel/issues/5903 for more info.
50 - Incompatible change
51 `--incompatible_use_platforms_repo_for_constraints` has been
52 added. See https://github.com/bazelbuild/bazel/issues/8622 for
53 details.
54 - Incompatible change
55 `--incompatible_use_platforms_repo_for_constraints` has been
56 added. See https://github.com/bazelbuild/bazel/issues/8622 f...
57 - Bazel's C++ autoconfiguration now understands `BAZEL_LINKLIBS`
58 environment variable to specify system libraries that should be
59 appended to the link command line.
60 - paths under the execution root starting with "." or "_" will be
61 re-linked across builds
62 - execution_log_json_file now allows actions without outputs.
63 - Labels aapt as deprecated for aapt_version, and heavily endorses
64 aapt2.
65 - Update doc links still pointing to cc_binary.features to point to
66 common features
67 - Incompatible change
68 `--incompatible_use_platforms_repo_for_constraints` has been
69 added. See https://github.com/bazelbuild/bazel/issues/8622 for
70 details.
71 RELNOTES:
72 - --incompatible_disable_nocopts flag has been added. See
73 https://github.com/bazelbuild/bazel/issues/8706 for details.
74 - Fixed treatment of <dist:module /> tags in AndroidManifest.xml
75 - Fixed asset precedence for android_binary rules with aapt2.
76 - Bazel now officially supports running on CentOS 7.
77 - The runtime dynamic libraries are no longer in default output
78 group of cc_binary.
79 - set the FDOBuildType as CSFDO for binaries built with
80 --cs_fdo_absolute_path.
81 - Bazel can now be bootstrapped and built on arm64 platforms
82 without requiring any flags or patches.
83 - Fixed treatment of AndroidManifest.xml attributes which contained
84 XML escaping
85 - Retire experimental blaze flag
86 experimental_link_compile_output_separately. The same behavior is
87 available through the feature dynamic_link_test_srcs.
88 - --incompatible_load_java_rules_from_bzl was added to forbid
89 loading the native java rules directly. See more on tracking
90 issue #8746
91 - Turn on --experimental_build_setting_api by default for starlark
92 build settings (see
93 https://docs.bazel.build/versions/master/skylark/config.html#user-
94 defined-build-settings for more info)
95 - Attribute names are going to be restricted and must be
96 syntactically valid identifiers.
97 https://github.com/bazelbuild/bazel/issues/6437
Bazel Release System7e809492019-07-10 17:50:43 +020098 - rule_test: fix Bazel 0.27 regression ("tags" attribute was
99 ingored, https://github.com/bazelbuild/bazel/issues/8723
100
Bazel Release Systemf4a08032019-07-10 18:11:04 +0200101This 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 +0200102
Bazel Release System316cb9b2019-07-02 19:45:51 +0200103## Release 0.27.1 (2019-07-02)
104
105```
106Baseline: 8c3b3fba3f68833bd97d3df2db9c48f0539efc3b
107
108Cherry picks:
109
110 + 123c68daed17b19927372e4df7f7a2256db6b80e:
111 Warn in more cases of possible Python version mismatch in host
112 config
113 + 052167e907373ac7ea43238c3049739f6e94a9d1:
114 Add a non-strict autodetecting Python toolchain
115 + 6ef6d879ab69225d54ecab3db847fb4eff33bbeb:
116 Default java toolchain target
117 + 50fa3ec27efdd95771c70faa38a4543d4fed44f2:
118 Fix problems with the non-strict Python toolchain
119 + e2a626c4f61fe4ceb79a5675d09a6f25ca7b5b22:
120 Automated rollback of commit
121 bc6f7cb330bb531f062bb301f3703876051191f5.
122 + 6efc5b787ad3164cc2fb779c73377695032b4524:
123 Treat existence of managed directories as a part of repository
124 dirtiness.
125 + 3a4be3c93813987a27a97dade3f9ebbc5770e349:
126 Add /usr/local/bin to default PATH under strict action env
127 + 5c1005c0947b010ee36ca851b8ba07c9479cf682:
128 Automated rollback of commit
129 536a166270590a8dbc701718550383f3a07cc763.
130 + c82eb4878c7dc829455caeb915affe36c89df06f:
131 Release 0.27.0 (2019-06-17)
132 + d4589630428c1c1bc08a9baf36257e636fe9d746:
133 Check for both :lcov_merger and $lcov_merger attributes in
134 TestActionBuilder.
135```
136
137Important changes:
138
139 - Add new options --cs_fdo_absolute_path= to support the absolute
140 path
141 profile for LLVM's context-sensitive FDO.
142 - When `--incompatible_strict_action_env` is enabled, the default
143 `PATH` now includes `/usr/local/bin`.
144 - Turn on --experimental_build_setting_api by default for starlark
145 build settings (see
146 https://docs.bazel.build/versions/master/skylark/config.html#user-
147 defined-build-settings for more info)
148
149This release contains contributions from many people at Google, as well as Ricky Pai.
150
Bazel Release Systemaecb1e82019-06-17 14:57:36 +0200151## Release 0.27.0 (2019-06-17)
Bazel Release Systeme6976fb2019-06-06 13:01:57 +0200152
153```
Bazel Release Systemaecb1e82019-06-17 14:57:36 +0200154Baseline: 5935259724bebd1c4bdebc90e159d0f655c8c219
Bazel Release Systeme6976fb2019-06-06 13:01:57 +0200155
156Cherry picks:
157
Bazel Release Systemaecb1e82019-06-17 14:57:36 +0200158 + fe81b49e727efdcc90a270520af193af75f4e31d:
159 Support of using the absolute path profile for LLVM's Context
160 Sensitive FDO
161 + ce5e7180d98e1244fdfba0349952727826cbd173:
162 Demote OptionProcessor from globals
163 + 3ed9d3681c3e130aafcf3c405ff1795c601bdf95:
164 Properly wire up BES half-close. The lack thereof was a simple
165 oversight.
166 + 4ca768e9f87701fb92598d0a8325a5fc8881a852:
167 standardize graph output indentation with 2 spaces
168 + aff189a7c514a0171a53a2dcdd37c93ecaa672ad:
169 Make sure default Linux artifacts have an associated action,
170 even when artifact names are altered.
171 + 8c3b3fba3f68833bd97d3df2db9c48f0539efc3b:
172 Failures early in package loading will now fail all --keep_going
173 builds.
174 + 123c68daed17b19927372e4df7f7a2256db6b80e:
175 Warn in more cases of possible Python version mismatch in host
176 config
177 + 052167e907373ac7ea43238c3049739f6e94a9d1:
178 Add a non-strict autodetecting Python toolchain
179 + 6ef6d879ab69225d54ecab3db847fb4eff33bbeb:
180 Default java toolchain target
181 + 50fa3ec27efdd95771c70faa38a4543d4fed44f2:
182 Fix problems with the non-strict Python toolchain
183 + e2a626c4f61fe4ceb79a5675d09a6f25ca7b5b22:
184 Automated rollback of commit
185 bc6f7cb330bb531f062bb301f3703876051191f5.
186 + 6efc5b787ad3164cc2fb779c73377695032b4524:
187 Treat existence of managed directories as a part of repository
188 dirtiness.
189 + 3a4be3c93813987a27a97dade3f9ebbc5770e349:
190 Add /usr/local/bin to default PATH under strict action env
191 + 5c1005c0947b010ee36ca851b8ba07c9479cf682:
192 Automated rollback of commit
193 536a166270590a8dbc701718550383f3a07cc763.
Bazel Release Systeme6976fb2019-06-06 13:01:57 +0200194```
195
Bazel Release Systemaecb1e82019-06-17 14:57:36 +0200196Incompatible changes:
197
198 - --incompatible_disable_objc_provider_resources no longer has
199 effect. Use of deprecated resource fields on the Objc provider is
200 now disallowed regardless of this flag.
201 - deleted deprecated --experimental-remote-retry* flags, please use
202 --remote_retries instead
203 - flipped --incompatible_list_based_execution_strategy_selection
204 flag to be true by default. See
205 https://github.com/bazelbuild/bazel/issues/7480 for details.
206 - Octal integer literals in Starlark are required to start with
207 "Oo".
208 - The "native" module is no longer available in BUILD files, all
209 its members can be accessed directly as global symbols. This can
210 be temporarily reverted by providing
211 --incompatible_disallow_native_in_build_file=false as a flag to
212 Blaze.
213 - The "native" module is no longer available in BUILD files, all
214 its members can be accessed directly as global symbols. This can
215 be temporarily reverted by providing
216 --incompatible_disallow_native_in_build_file=false as a flag to
217 Blaze.
218 - Turn off binary style profile format.
219 - The "native" module is no longer available in BUILD files, all
220 its members can be accessed directly as global symbols. This can
221 be temporarily reverted by providing
222 --incompatible_disallow_native_in_build_f...
223 - cleanup that affects user provided apple frameworks is
224 now enabled by default. See
225 https://github.com/bazelbuild/bazel/issues/7944 for more info.
226 - Python rules now determine the Python runtime using toolchains
227 rather than `--python_top` and `--python_path`, which are
228 deprecated. See
229 [#7899](https://github.com/bazelbuild/bazel/issues/7899) for
230 information on declaring Python toolchains and migrating your
231 code. As a side-benefit, this addresses
232 [#4815](https://github.com/bazelbuild/bazel/issues/4815)
233 (incorrect interpreter version used) on non-Windows platforms.
234 Note however that some builds break due to getting the version
235 they asked for -- consider setting `python_version = "PY2"` on
236 Python 2 targets and `--host_force_python=PY2` if any Python 2
237 targets are used in the host configuration. You can temporarily
238 opt out of this change with
239 `--incompatible_use_python_toolchains=false`.
240 - Depsets can't be iterated over unless they're converted to lists
241 using the .to_list() method. Use
242 --incompatible_depset_is_not_iterable=false to
243 temporarily restore the previous behaviour.
244
245New features:
246
247 - Bash, runfiles: the copy-pasted init code of the Bash runfiles
248 library is now shorter, see `tools/bash/runfiles/runfiles.bash`.
249 The rlocation() implementation is the same.
250 - Bash, runfiles: the copy-pasted init code of the Bash runfiles
251 library is now shorter, see `tools/bash/runfiles/runfiles.bash`.
252 The rlocation() implementation is the same.
253 - Bash, runfiles: the copy-pasted init code of the Bash runfiles
254 library is now shorter, see `tools/bash/runfiles/runfiles.bash`.
255 To use the new init code, you need Bazel 0.27 or newer. The old
256 (longer) init code still works.
257
258Important changes:
259
260 - The `outputs` parameter of the `rule()` function is deprecated
261 and attached to flag `--incompatible_no_rule_outputs_param`.
262 Migrate rules to use `OutputGroupInfo` or `attr.output` instead.
263 See https://github.com/bazelbuild/bazel/issues/7977 for more info.
264 - The --incompatible_disable_objc_library_resources flag is being
265 removed. Please remove it from your configs as it otherwise will
266 fail the build.
267 - Add a generic additional_linker_inputs attribute on cc_binary
268 rules.
269 - Windows, C++ autoconfigure: BAZEL_VC and BAZEL_VS may now have
270 quotes, so if you set these envvars' values in cmd.exe via
271 TAB-completion then you no longer need to remove the surrounding
272 quotes.
273 - pkg_deb has new attributes: `config` and `templates` that can be
274 used for integration with debconf
275 - Allow cc_import() of a DLL with no interface library on Windows,
276 used to document runtime dependencies.
277 - All host-configured Python tools that are built for the wrong
278 Python version will now emit a warning message when they exit
279 with non-zero status. See #7899.
280 - deprecated --remote_local_fallback_strategy. Use
281 `--strategy=remote,local` instead. See
282 https://github.com/bazelbuild/bazel/issues/7480.
283 - Introduce --incompatible_disable_native_android_rules flag
284 - The Android desugaring actions now support a persistent worker
285 mode for faster local build performance. Enable it with
286 `--strategy=Desugar=worker`.
287 - --incompatible_static_name_resolution_in_build_files is now
288 enabled by default
289 - --incompatible_disable_deprecated_attr_params is now enabled by
290 default (#5818)
291 - Repository containing autoconfigured C++ toolchain
292 `@local_config_cc` has been split in 2 - see
293 `local_config_cc_toolchains`.
294 - --incompatible_string_join_requires_strings is now enabled by
295 default
296 - Flag --incompatible_new_actions_api is enabled by dewfault (#5825)
297 - New flag `--incompatible_disallow_empty_glob`. See
298 https://github.com/bazelbuild/bazel/issues/8195
299 - --incompatible_no_kwargs_in_build_files is enabled by default
300 - Incompatible flag
301 `--incompatible_require_ctx_in_configure_features` has been
302 flipped. See https://github.com/bazelbuild/bazel/issues/7793 for
303 more information.
304 - `BAZEL_USE_XCODE_TOOLCHAIN=1` tells Bazel not to look for Xcode to
305 decide whether to enable toolchains for Apple rules, but to
306 assume Xcode is
307 available. Can be also used when building on Darwin and no C++ or
308 ObjC is being
309 built, so there is no need to detect Xcode.
310 - Android desugaring actions now use persistent workers by default.
311 This has been measured to provide up to 20% reduction in build
312 times. To disable it, use the `--strategy=Desugar=sandboxed`
313 flag. See https://github.com/bazelbuild/bazel/issues/8342 and
314 https://github.com/bazelbuild/bazel/issues/8427 for more details
315 on local build speed optimization for Android apps.
316 - Fixed an issue with Android builds where `--fat_apk_cpu` doesn't
317 pack all selected shared libraries from `aar_import` targets into
318 the APK. See
319 [#8283](https://github.com/bazelbuild/bazel/issues/8283).
320 - Turn on --experimental_starlark_config_transitions by default for
321 starlark transitions (see
322 https://docs.bazel.build/versions/master/skylark/config.html#user-
323 defined-transitions for more info)
324 - Turn on --experimental_build_setting_api by default for starlark
325 build settings (see
326 https://docs.bazel.build/versions/master/skylark/config.html#user-
327 defined-build-settings for more info)
328 - Incompatible flag
329 `--incompatible_dont_enable_host_nonhost_crosstool_features` has
330 been flipped. See https://github.com/bazelbuild/bazel/issues/7407
331 for more information.
332 - Added support for Android NDK 19 and 20.
333 - Flip --incompatible_no_support_tools_in_action_inputs
334 - --remote_executor, --remote_cache or --bes_backend=someurl.com
335 would be treated as grpcs://someurl.com, if the
336 --incompatible_tls_enabled_removed flag enabled. See
337 https://github.com/bazelbuild/bazel/issues/8061 for details.
338 - Add new options --cs_fdo_absolute_path= to support the absolute
339 path
340 profile for LLVM's context-sensitive FDO.
341 - When `--incompatible_strict_action_env` is enabled, the default
342 `PATH` now includes `/usr/local/bin`.
343 - Turn on --experimental_build_setting_api by default for starlark
344 build settings (see
345 https://docs.bazel.build/versions/master/skylark/config.html#user-
346 defined-build-settings for more info)
347
348This 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 +0200349
Klaus Aehligc84f7d32019-06-17 15:26:27 +0200350## Release 0.26.1 (2019-06-06)
351
352```
353Baseline: cb82ed84d44db0169a8fbf15f9cee434b77002bb
354
355Cherry picks:
356
357 + d1c0d205945f5a765efb0a48593b1cd82699ce32:
358 Allow WORKSPACE file to be a symlink if no managed directories
359 is used.
360 + c3d2aa74ccd23dfb8a8173c2b3e2955f0c5892cb:
361 Fix ios, tvos and watchos arm64 constraints
362 + 55e42052a22a60b68d88a89932b2a068311b1a95:
363 Bump java_tools_javac10 from 3.1 to 3.2
364```
365
366Patch release on top of 0.26.0, fixing
367- https://github.com/bazelbuild/bazel/issues/8475
368- https://github.com/bazelbuild/bazel/issues/8520
369- https://github.com/bazelbuild/intellij/issues/845
370
Bazel Release System8089b272019-05-28 10:31:53 +0200371## Release 0.26.0 (2019-05-28)
Bazel Release System48845c32019-05-23 15:21:53 -0400372
373```
Bazel Release System8089b272019-05-28 10:31:53 +0200374Baseline: daa8ae565ab2023e49134f0aad233b0a8bd7a5d0
Bazel Release System48845c32019-05-23 15:21:53 -0400375
376Cherry picks:
377
Bazel Release System8089b272019-05-28 10:31:53 +0200378 + 61c7ffa60ae9c1937dd6d8ee30a8c0471094ee71:
379 Automated rollback of commit
380 87388e24814b177f54ca7697b4233489f90c587e.
381 + 898d7b6138af73f03daf35b767d252560087de70:
382 Add test for repository overrides, conflicting with managed
383 directories being added when Bazel server is already started.
384 + c2001a4569483596d9dc74ba9cabcbe4b6f1887f:
385 Automated rollback of commit
386 bbe47a1564a832e1a175206f2dfbc92af94c120b.
387 + e67c961905792cd63950c6f6efc33275ad243c49:
388 Fix a non-determinism in create_embedded_tools.py.
Bazel Release System48845c32019-05-23 15:21:53 -0400389 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
390 Remove unsupported cpu attribute from cc_toolchains.
Bazel Release System8089b272019-05-28 10:31:53 +0200391 + 597e289b097d3bfed8eea1cb0924bbeb04877e42:
392 remote: made CombinedCache a composition of Disk and Http Cache
393 + 942f7cf6a0da0a4ecc804615424f039e50963933:
394 C++: Fixes bug in C++ API with external repo aspects
Bazel Release System48845c32019-05-23 15:21:53 -0400395 + 85a5a2bd569a5274950fc7327a044c395248c024:
396 Configure @androidsdk//:emulator_x86 and :emulator_arm to point
397 to the unified emulator binary
Bazel Release System8089b272019-05-28 10:31:53 +0200398 + 9835cb4135503768cdf1161746b95d7969ccb938:
399 Automated rollback of commit
400 844e4e297b404d6ff28b818d8150d4b9c47de887.
401 + c963ba21073b514961946b8b4b45b091f08fdaa1:
402 Windows, Python: fix arg. esc. also in host config
403 + a1ea487e0a9e180a36fa4aab57f7c746ddcf367a:
404 Do not pre-cache changed files under managed directories
405 + 7dc78cdd04eedf2f4373b170053ba5fc2a990929:
406 Add explicit execution and target constraints for autodiscovered
407 cc t?
408 + dd9ac13f7e3b71bdf2eca717bc7681bdd12389a2:
409 Fix a bug when a relative path is used for the execution log
Bazel Release System48845c32019-05-23 15:21:53 -0400410 + 0ff19c6d0adf3c0df94fff59ca3bd13cbcf99897:
411 Fix StandaloneTestStrategy.appendStderr
Bazel Release System8089b272019-05-28 10:31:53 +0200412 + 7f495315749478e75a3424726cc273a535b7c3b8:
413 Fix the autodetecting Python toolchain on Mac
414 + ddce7235ef29a0aba727c265eae865d15af4ed09:
415 Avoid exporting PATH unnecessarily
416 + 35dd05a059fa7fddfdd888cfc69102994e3c04dc:
417 Allow Starlark rules to be able to use the `exec_compatible_with`
Bazel Release System48845c32019-05-23 15:21:53 -0400418```
419
Klaus Aehlig63bf1152019-05-28 10:41:12 +0200420### Incompatible changes
421
422- [`--incompatible_windows_escape_jvm_flags`](https://github.com/bazelbuild/bazel/issues/7486)
423 is enabled by default, and removed.
424
425- [`--incompatible_windows_style_arg_escaping`](https://github.com/bazelbuild/bazel/issues/7454)
426 is enabled by default.
427
428- [`--incompatible_no_output_attr_default`](https://github.com/bazelbuild/bazel/issues/7950)
429 is enabled by default.
430
431- [`--incompatible_depset_union`](https://github.com/bazelbuild/bazel/issues/5817)
432 is enabled by default.
433
434- [`--incompatible_disable_genrule_cc_toolchain_dependency`](https://github.com/bazelbuild/bazel/issues/6867) removed
435
436- [`--Incompatible_disallow_rule_execution_platform_constraints_allowed`](https://github.com/bazelbuild/bazel/issues/8136):
437 When enabled, disallows the use of the `execution_platform_constraints_allowed`
438 attribute when defining new rules.
439
440- [`--incompatible_disable_objc_provider_resources`](https://github.com/bazelbuild/bazel/issues/5710)
441 is now enabled by default.
442
443### Apple
444
445- The `--ios_multi_cpus`, `--watchos_cpus`, `--macos_cpus` and `--tvos_cpus` are
446 now additive. This means that you can now split the `--ios_multi_cpus=arm64,armv7`
447 into `--ios_multi_cpus=arm64` and `--ios_multi_cpus=armv7`.
448
449- Add `--incompatible_objc_framework_cleanup` to control whether to enable some
450 objc framework cleanup that changes the API. Specifically, the cleanup changes
451 the objc provider API pertaining to frameworks. This change is expected to be
452 transparent to most users unless they write their own Starlark rules to handle
453 frameworks. See https://github.com/bazelbuild/bazel/issues/7594 for details.
454
455- `objc_library` does not support resource attributes any more. Please read
456 [#7594](https://github.com/bazelbuild/bazel/issues/7594) for more info.
457
458### Android
459
460- Android resource conflicts will no longer be reported between a strong attr
461 resource and a weak attr resource, if the weak attr does not have format
462 specified.
463
464### C++
465
466- [Allow debugging C++ features logic](https://github.com/bazelbuild/bazel/commit/53156db1e30fe7197889c3cbc8d1321ff9b85143
467
468- Add new options [`--cs_fdo_instrument`](https://docs.bazel.build/versions/master/command-line-reference.html#flag--cs_fdo_instrument)
469 and [`--cs_fdo_profile`](https://docs.bazel.build/versions/master/command-line-reference.html#flag--cs_fdo_profile)
470 to support LLVM's context-sensitive FDO (CSFDO).
471
472- [Bazel C++ compile/link Starlark API](https://github.com/bazelbuild/bazel/issues/4570).
473 Can be used with experimental flag `--experimental_cc_skylark_api_enabled_packages`.
474
475- `cc_toolchain.static_runtime_lib` and `cc_toolchain.dynamic_runtime_lib` are
476 now exposed to Starlark.
477
478- C++ Starlark API for compilation and linking is no longer whitelisted
479
480- Incompatible flag `--incompatible_make_thinlto_command_lines_standalone` has
481 been added. See https://github.com/bazelbuild/bazel/issues/6791 for details.
482
483- Feature `disable_whole_archive_for_static_lib` has been added to allow turning
484 off legacy_whole_archive for individual targets.
485 https://github.com/bazelbuild/bazel/issues/7362
486
487### Python
488
489- Fixed an issue where some `py_runtimes` were incompatible with using
490 `--build_python_zip` ([#5104](https://github.com/bazelbuild/bazel/issues/5104)).
491
492### Starlark
493
494- The flag [`--incompatible_restrict_named_params`](https://github.com/bazelbuild/bazel/issues/8147)
495 is added. [Buildifier](https://github.com/bazelbuild/buildtools) will soon be
496 updated to automatically fix this in your code.
497
498- The flag [`--incompatible_no_kwargs_in_build_files`](https://github.com/bazelbuild/bazel/issues/8021)
499 is added. It fixes a bug where the `**kwarg` notation was allowed in `BUILD`
500 files.
501
502- The flag [`--incompatible_static_name_resolution_in_build_files`](https://github.com/bazelbuild/bazel/issues/8022)
503 is added. This fixes a bug where invalid code was silently accepted.
504
505- The flag [`--incompatible_disallow_old_octal_notation`](https://github.com/bazelbuild/bazel/issues/8059)
506 is added. It removes a deprecated notation for octal numbers.
507 [Buildifier](https://github.com/bazelbuild/buildtools) can update your code
508 automatically.
509
510- [`struct.to_proto()`](https://docs.bazel.build/versions/master/skylark/lib/struct.html#to_proto)
511 can now convert dictionaries into proto3 text message.
512
513- The [`glob`](https://docs.bazel.build/versions/master/be/functions.html#glob)
514 function has a new argument `allow_empty`. When set to `False` (this will be
515 the default in the future), the glob fails when it doesn't match anything.
516 Please explicitly set `allow_empty = True` to the globs that need it.
517
518### Windows
519
520- Windows, Python: the new `--incompatible_windows_escape_python_args` flag
521 (`false` by default) builds `py_binary` and `py_test` targets with correct
522 command line argument escaping. Similar to
523 https://github.com/bazelbuild/bazel/issues/7486 but for `py_*` rules.
524
525### Other changes
526
527- cquery supports `--output=build`
528
529- Generated Go protobufs now depend on `//net/proto2/go:proto_gendeps` instead
530 of `//net/proto2/go:proto`
531
532- Added `--incompatible_remove_binary_profile` to disable the old binary
533 profiles. Instead use the JSON profile format:
534 https://docs.bazel.build/versions/master/skylark/performance.html#json-profile
535
536- Introducing `--execution_log_binary_file` and `--execution_log_json_file`
537 that output a stable sorted execution log. They will offer a stable
538 replacement to `--experimental_execution_log_file`.
539
540- New platform_mappings ability to allow gradual flag to platforms/toolchains
541 migration. See also https://github.com/bazelbuild/bazel/issues/6426
542
543- Added support for compiling against fully qualified `R` classes from
544 `aar_import` dependencies.
545
546- `--tls_enabled` flag is deprecated. Please provide `grpcs` as a scheme in
547 the URLs if TLS should be used for a remote connection.
548
549### Community
550
551- Alex Eagle gave a talk at ng-conf:
552 [The Bazel Opt-in Preview is Here!](https://www.youtube.com/watch?v=J1lnp-nU4wM)
553
554- The latest release of
555 [rules_haskell](https://github.com/tweag/rules_haskell/releases/tag/v0.9)
556 includes many new improvements, including an initial Windows support.
557
558- The latest
559 [Buildifier release](https://github.com/bazelbuild/buildtools/releases/tag/0.25.1)
560 includes Windows binaries, as well as a JSON output for diagnostics.
561
562- Natan Silnitsky gave the talk
563 [How to successfully migrate to Bazel from Maven or Gradle](https://www.youtube.com/watch?v=2UOFm-Cc_cU)
564 at the Java Eastern Europe Conference.
565
566This release contains contributions from many people at Google, as well as
567Benjamin Peterson, Brian Topping, clyang82, Dave Lee, George Gensure,, Greg,
568Guro Bokum, Keith Smiley, Max Vorobev, Michael Hackner, Robert Brown, Robert
569Sayre, Ryan Beasley, and Yannic.
570
571
572## Release 0.25.3 (2019-05-23)
573
574```
575Baseline: 03662462941953dad23af88693804b8b1d4430b9
576
577Cherry picks:
578
579 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
580 Windows: fix native test wrapper's arg. escaping
581 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
582 Flip --incompatible_windows_escape_jvm_flags
583 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
584 Sort DirectoryNode children to ensure validity.
585 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
586 Conditionally use deprecated signature for initWithContentsOfURL
587 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
588 Add http_archive entries for testing with various JDK versions.
589 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
590 Now that ubuntu1804 uses JDK 11, remove explicit
591 ubuntu1804_java11 tests.
592 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
593 Fix wrong name of ubuntu1804_javabase9 task.
594 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
595 Remove @executable_path/Frameworks from rpaths
596 + 130f86ded1ce84f959f0b78c065211902faed546:
597 Download stderr/stdout to a temporary FileOutErr
598 + 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9:
599 Release 0.25.0 (2019-05-01)
600 + ed48a4a5fddbd93b057c3aa726e15720d79dcf8f:
601 Add implementation to removed methods to address
602 https://github.com/bazelbuild/bazel/issues/8226
603 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
604 Remove unsupported cpu attribute from cc_toolchains.
605 + cccced1e7fc7eaf4ba8f2c9d73dbac72b2686df9:
606 Release 0.25.1 (2019-05-07)
607 + 0900660d67b53a56a13d1fa16a788e4cecbb1c0e:
608 Use package identifier instead of package name
609 + 85a5a2bd569a5274950fc7327a044c395248c024:
610 Configure @androidsdk//:emulator_x86 and :emulator_arm to point
611 to the unified emulator binary
612 + 6549ac5bba3eef2b1813b5a75757437383bf38f0:
613 Release 0.25.2 (2019-05-10)
614 + 0ff19c6d0adf3c0df94fff59ca3bd13cbcf99897:
615 Fix StandaloneTestStrategy.appendStderr
616```
617
Bazel Release System48845c32019-05-23 15:21:53 -0400618Incompatible changes:
619
620 - Flip --incompatible_windows_escape_jvm_flags to true. See
621 https://github.com/bazelbuild/bazel/issues/7486
622
Klaus Aehlig63bf1152019-05-28 10:41:12 +0200623This 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 -0400624
Klaus Aehlig63bf1152019-05-28 10:41:12 +0200625## Release 0.25.2 (2019-05-10)
Bazel Release System6549ac52019-05-10 16:44:09 -0400626
Klaus Aehlig63bf1152019-05-28 10:41:12 +0200627```
628Baseline: 03662462941953dad23af88693804b8b1d4430b9
Bazel Release System6549ac52019-05-10 16:44:09 -0400629
Klaus Aehlig63bf1152019-05-28 10:41:12 +0200630Cherry picks:
Bazel Release System6549ac52019-05-10 16:44:09 -0400631
Klaus Aehlig63bf1152019-05-28 10:41:12 +0200632 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
633 Windows: fix native test wrapper's arg. escaping
634 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
635 Flip --incompatible_windows_escape_jvm_flags
636 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
637 Sort DirectoryNode children to ensure validity.
638 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
639 Conditionally use deprecated signature for initWithContentsOfURL
640 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
641 Add http_archive entries for testing with various JDK versions.
642 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
643 Now that ubuntu1804 uses JDK 11, remove explicit
644 ubuntu1804_java11 tests.
645 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
646 Fix wrong name of ubuntu1804_javabase9 task.
647 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
648 Remove @executable_path/Frameworks from rpaths
649 + 130f86ded1ce84f959f0b78c065211902faed546:
650 Download stderr/stdout to a temporary FileOutErr
651 + 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9:
652 Release 0.25.0 (2019-05-01)
653 + ed48a4a5fddbd93b057c3aa726e15720d79dcf8f:
654 Add implementation to removed methods to address
655 https://github.com/bazelbuild/bazel/issues/8226
656 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
657 Remove unsupported cpu attribute from cc_toolchains.
658 + cccced1e7fc7eaf4ba8f2c9d73dbac72b2686df9:
659 Release 0.25.1 (2019-05-07)
660 + 0900660d67b53a56a13d1fa16a788e4cecbb1c0e:
661 Use package identifier instead of package name
662 + 85a5a2bd569a5274950fc7327a044c395248c024:
663 Configure @androidsdk//:emulator_x86 and :emulator_arm to point
664 to the unified emulator binary
665```
666
667* Add fix for https://github.com/bazelbuild/bazel/issues/8254
668* Add fix for https://github.com/bazelbuild/bazel/issues/8280
669
670## Release 0.25.1 (2019-05-07)
671
672```
673Baseline: 03662462941953dad23af88693804b8b1d4430b9
674
675Cherry picks:
676
677 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
678 Windows: fix native test wrapper's arg. escaping
679 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
680 Flip --incompatible_windows_escape_jvm_flags
681 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
682 Sort DirectoryNode children to ensure validity.
683 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
684 Conditionally use deprecated signature for initWithContentsOfURL
685 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
686 Add http_archive entries for testing with various JDK versions.
687 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
688 Now that ubuntu1804 uses JDK 11, remove explicit
689 ubuntu1804_java11 tests.
690 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
691 Fix wrong name of ubuntu1804_javabase9 task.
692 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
693 Remove @executable_path/Frameworks from rpaths
694 + 130f86ded1ce84f959f0b78c065211902faed546:
695 Download stderr/stdout to a temporary FileOutErr
696 + 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9:
697 Release 0.25.0 (2019-05-01)
698 + ed48a4a5fddbd93b057c3aa726e15720d79dcf8f:
699 Add implementation to removed methods to address
700 https://github.com/bazelbuild/bazel/issues/8226
701 + 81aefe7ee01cc73646a53f9c72ed40ead09f9f5a:
702 Remove unsupported cpu attribute from cc_toolchains.
703```
704
705Adding 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 -0400706
Bazel Release System2ab38662019-05-01 17:41:28 -0400707## Release 0.25.0 (2019-05-01)
708
709```
710Baseline: 03662462941953dad23af88693804b8b1d4430b9
711
712Cherry picks:
713
714 + 3f7f255f9a8345b8898e3953e7e53d68106cc63d:
715 Windows: fix native test wrapper's arg. escaping
716 + afeb8d0b7fef619159fc8fbaaeb8bd41dd2619bd:
717 Flip --incompatible_windows_escape_jvm_flags
718 + 4299b6549cbc1b3e4494c91ed2f51d49b14c7980:
719 Sort DirectoryNode children to ensure validity.
720 + 231270c67d5aa771462245531fa9b2ee7d3d0ae8:
721 Conditionally use deprecated signature for initWithContentsOfURL
722 + 75a3a531b08e727ade4fa3cb0a574bd142727cce:
723 Add http_archive entries for testing with various JDK versions.
724 + 4a6354a3a5ca23583f8b62e3e439a04ce75b863f:
725 Now that ubuntu1804 uses JDK 11, remove explicit
726 ubuntu1804_java11 tests.
727 + ae102fbde3c1ff87e4f67007a275fb30792a4e8d:
728 Fix wrong name of ubuntu1804_javabase9 task.
729 + 0020a97fdc20ca099ec6386771b20d3236f9890d:
730 Remove @executable_path/Frameworks from rpaths
731 + 130f86ded1ce84f959f0b78c065211902faed546:
732 Download stderr/stdout to a temporary FileOutErr
733```
734
735Incompatible changes:
736
737 - (Starlark rules) The legacy "py" provider can no longer be passed
738 to or produced by native Python rules; use
739 [PyInfo](https://docs.bazel.build/versions/master/skylark/lib/PyIn
740 fo.html) instead. See
741 [#7298](https://github.com/bazelbuild/bazel/issues/7298) for more
742 information.
743 - (Python rules) The `default_python_version` attribute of the
744 `py_binary` and `py_test` rules has been renamed to
745 `python_version`. Also, the `--force_python` flag has been
746 renamed to `--python_version`. See
747 [#7308](https://github.com/bazelbuild/bazel/issues/7308) for more
748 information.
749 - (Python rules) The python version now changes to whatever version
750 is specified in a `py_binary` or `py_test`'s `python_version`
751 attribute, instead of being forced to the value set by a command
752 line flag. You can temporarily revert this change with
753 `--incompatible_allow_python_version_transitions=false`. See
754 [#7307](https://github.com/bazelbuild/bazel/issues/7307) for more
755 information.
756 - --incompatible_disable_third_party_license_checking` is enabled
757 by default
758 - Introduced --incompatible_use_python_toolchains, which supersedes
759 --python_top/--python_path. See #7899 and #7375 for more
760 information.
761 - Python 3 is now the default Python version (for `py_binary` and
762 `py_test` targets that don't specify the `python_version`
763 attribute). Targets that are built for Python 3 will no longer
764 have their output put in a separate `-py3` directory; instead
765 there is now a separate `-py2` directory for Python 2 targets.
766 See #7359 and #7593 for more information.
767 - objc_library resource attributes are now disabled by default.
768 Please migrate them to data instead. See
769 https://github.com/bazelbuild/bazel/issues/7594 for more info.
770 - Flip --incompatible_windows_escape_jvm_flags to true. See
771 https://github.com/bazelbuild/bazel/issues/7486
772
773New features:
774
775 - genrules now support a $(RULEDIR) variable that resolves to the
776 directory where the outputs of the rule are put.
777 - Added --incompatible_windows_native_test_wrapper flag: enables
778 using the Bash-less test wrapper on Windows. (No-op on other
779 platforms.)
780
781Important changes:
782
783 - incompatible_use_jdk11_as_host_javabase: makes JDK 11 the default
784 --host_javabase for remote jdk
785 (https://github.com/bazelbuild/bazel/issues/7219)
786 - Makes genquery somepath output deterministic.
787 - Tristate attributes of native rules now reject True/False (use
788 1/0)
789 - Rollback of "Tristate attributes of native rules now reject
790 True/False (use 1/0)"
791 - Tristate attributes of native rules now reject True/False (use
792 1/0)
793 - Added -incompatible_do_not_split_linking_cmdline flag. See #7670
794 - Tristate attributes of native rules now temporarily accept
795 True/False again
796 - `--incompatible_disable_legacy_crosstool_fields` has been flipped
797 (https://github.com/bazelbuild/bazel/issues/6861)
798 `--incompatible_disable_expand_if_all_available_in_flag_set` has
799 been flipped (https://github.com/bazelbuild/bazel/issues/7008)
800 - `--incompatible_disable_legacy_crosstool_fields` has been flipped
801 (https://github.com/bazelbuild/bazel/issues/6861)
802 `--incompatible_disable_expand_if_all_available_in_flag_set...
803 RELNOTES: None.
804 - --incompatible_no_transitive_loads is enabled by default.
805 - Makes TreeArtifact deterministic.
806 - --incompatible_no_transitive_loads is enabled by default.
807 - Android NDK C++ toolchain is now configured in Starlark. This
808 should be a backwards compatible change, but in case of bugs
809 blame unknown commit.
810 - `--incompatible_disable_legacy_crosstool_fields` has been flipped
811 (https://github.com/bazelbuild/bazel/issues/6861)
812 `--incompatible_disable_expand_if_all_available_in_flag_set` has
813 been flipped (https://github.com/bazelbuild/bazel/issues/7008)
814 - --incompatible_no_transitive_loads is enabled by default.
815 - --incompatible_bzl_disallow_load_after_statement is enabled
816 - Added `--incompatible_require_ctx_in_configure_features`, see
817 https://github.com/bazelbuild/bazel/issues/7793 for details.
818 - Flag --incompatible_merge_genfiles_directory is flipped. This
819 removes the directory `bazel-genfiles` in favor of `bazel-bin`.
820 - previously deprecated flag --experimental_remote_spawn_cache was
821 removed
822 - `--incompatible_disallow_load_labels_to_cross_package_boundaries`
823 is enabled by default
824 - Fix an issue where the Android resource processor did not surface
825 errors from aapt2 compile and link actions.
826 - --incompatible_no_attr_license is enabled by default
827 - `--incompatible_disable_crosstool_file` has been flipped
828 (https://github.com/bazelbuild/bazel/issues/7320)
829 - A new flag `--incompatible_string_join_requires_strings` is
830 introduced. The sequence argument of `string.join` must contain
831 only string elements.
832 - --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
833 s_tree has been flipped
834 - Incompatible flag `--incompatible_disable_legacy_cc_provider` has
835 been flipped (see https://github.com/bazelbuild/bazel/issues/7036
836 for details).
837 - Don't drop the analysis cache when the same --define flag is set
838 multiple times and the last value is the same (e.g. if the
839 current invocation was run with "--define foo=bar" and the
840 previous one was run with "--define foo=baz --define foo=bar").
841 - The --incompatible_disable_genrule_cc_toolchain_dependency flag
842 has been flipped (see
843 https://github.com/bazelbuild/bazel/issues/6867 for details).
844 - Incompatible change
845 `--incompatible_remove_cpu_and_compiler_attributes_from_cc_toolcha
846 in` has been flipped (see
847 https://github.com/bazelbuild/bazel/issues/7075 for details).
848 - --noexperimental_java_coverage is a no-op flag.
849 - --experimental_java_coverage/--incompatible_java_coverage flag was
850 removed. See #7425.
851 - incompatible_use_toolchain_providers_in_java_common: pass
852 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
853 APIs instead of configured targets
854 (https://github.com/bazelbuild/bazel/issues/7186.)
855 - --incompatible_remote_symlinks has been flipped. The remote
856 caching and execution protocol will now represent symlinks in
857 outputs as such. See
858 https://github.com/bazelbuild/bazel/issues/7917 for more details.
859 - Bazel is now ~20MiB smaller, from unbundling the Android rules'
860 runtime dependencies.
861
862This 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, ??.
863
Bazel Release System7f8bc5f2019-04-02 12:26:16 -0400864## Release 0.24.1 (2019-04-02)
865
866```
867Baseline: 235e76b0e756d05599a6cbe1663ff8e13df84a86
868
869Cherry picks:
870
871 + badd82e4c5cda7b3232481e1c63a5550ac898cd8:
872 Automated rollback of commit
873 1b4c37c38804559b5c1ade6f9c93501875e231b0.
874 + 33e571939085dd158422e1b3503cfc738e0a3165:
875 Fix the Python version select() mechanism to handle
876 PY3-as-default
877 + 56366ee3a73e2c92b2fa36a9840478202b9618ca:
878 Set non-empty values for msvc_env_* when VC not installed
879 + 22b3fbf4800113df51d603d943bd9eb9517ef904:
880 Windows, test wrapper: fix broken integration test
881 + f14d447cb56aee563f6e686b8f5b086a3bb55d47:
882 Add whitelist file for starlark transitions
883 + d99bc478db1f3414b4f6cd3dc14ca70aacf6b375:
884 Update BUILD
885 + 3529ad7ccf0c26dfb20a9d67b9d96de15f309f8b:
886 Rename tools/function_transition_whitelist/BUILD to
887 tools/whitelists/function_transition_whitelist/BUILD
888 + de0612ad3ef7cc8c44069261befdeb0d15b97c10:
889 Update bazel_toolchains to latest release and add toolchain
890 config target for BuildKite CI (rbe_ubuntu1604)
891 + 3e660ad178926648e8e10e2ee7a1a30b12f9b3d1:
892 Automated rollback of commit
893 087734009801242b83655efb863b2d5a761ae3dc.
894 + 314cf1f9e4b332955c4800b2451db4e926c3e092:
895 Pass -undefined dynamic_lookup to dynamic library linking
896 actions on Mac
897 + fc586a86b614667a21e5a01aea3544ac0338de78:
898 Move cc_flags target into @bazel_tools//tools/cpp.
899 + ea1703b30f9ac43a0c3262f5729c34658ed8d473:
900 C++: Fix crash reported in #7721
901 + 803801d1494f06f0ce977a1f2241ef6a4d85df09:
902 Pass execution info to xml generating spawn. Fixes #7794
903 + f092ec388a4b58788285b928c86f0f81561d4be4:
904 Release 0.24.0 (2019-03-26)
905 + c56c489119e6587975964c44ceb9e429ad950736:
906 Wrap StatusRuntimeExceptions from GrpcRemoteCache
907```
908
909Baseline: f092ec388a4b58788285b928c86f0f81561d4be4
910
911Cherrypicks:
912+ c56c489119e6587975964c44ceb9e429ad950736: Wrap StatusRuntimeExceptions from GrpcRemoteCache
913
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400914## Release 0.24.0 (2019-03-26)
Bazel Release System0e4525f2019-03-11 17:43:39 +0100915
916```
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400917Baseline: 235e76b0e756d05599a6cbe1663ff8e13df84a86
Bazel Release System0e4525f2019-03-11 17:43:39 +0100918
919Cherry picks:
920
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400921 + badd82e4c5cda7b3232481e1c63a5550ac898cd8:
922 Automated rollback of commit
923 1b4c37c38804559b5c1ade6f9c93501875e231b0.
924 + 33e571939085dd158422e1b3503cfc738e0a3165:
925 Fix the Python version select() mechanism to handle
926 PY3-as-default
Bazel Release System0e4525f2019-03-11 17:43:39 +0100927 + 56366ee3a73e2c92b2fa36a9840478202b9618ca:
928 Set non-empty values for msvc_env_* when VC not installed
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400929 + 22b3fbf4800113df51d603d943bd9eb9517ef904:
930 Windows, test wrapper: fix broken integration test
931 + f14d447cb56aee563f6e686b8f5b086a3bb55d47:
932 Add whitelist file for starlark transitions
933 + d99bc478db1f3414b4f6cd3dc14ca70aacf6b375:
934 Update BUILD
935 + 3529ad7ccf0c26dfb20a9d67b9d96de15f309f8b:
936 Rename tools/function_transition_whitelist/BUILD to
937 tools/whitelists/function_transition_whitelist/BUILD
938 + de0612ad3ef7cc8c44069261befdeb0d15b97c10:
939 Update bazel_toolchains to latest release and add toolchain
940 config target for BuildKite CI (rbe_ubuntu1604)
941 + 3e660ad178926648e8e10e2ee7a1a30b12f9b3d1:
942 Automated rollback of commit
943 087734009801242b83655efb863b2d5a761ae3dc.
944 + 314cf1f9e4b332955c4800b2451db4e926c3e092:
945 Pass -undefined dynamic_lookup to dynamic library linking
946 actions on Mac
947 + fc586a86b614667a21e5a01aea3544ac0338de78:
948 Move cc_flags target into @bazel_tools//tools/cpp.
949 + ea1703b30f9ac43a0c3262f5729c34658ed8d473:
950 C++: Fix crash reported in #7721
951 + 803801d1494f06f0ce977a1f2241ef6a4d85df09:
952 Pass execution info to xml generating spawn. Fixes #7794
Bazel Release System0e4525f2019-03-11 17:43:39 +0100953```
954
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400955Incompatible changes:
Bazel Release System0e4525f2019-03-11 17:43:39 +0100956
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400957 - Added --incompatible_py3_is_default to test switching the default
958 Python version to PY3 for py_binary/py_test targets that do not
959 specify a version. See #7359.
960 - //tools/cmd_line_differ has been renamed to //tools/aquery_differ
961 & can now compare (in addition to command lines) inputs of
962 actions given 2 aquery results.
963 - java_(mutable_|)proto_library: removed strict_deps attribute.
964 - The flag --incompatible_list_based_execution_strategy_selection
965 was added and is used to ease the migration to the new style of
966 specifying
967 execution strategy selection and fallback behavior. The
968 documentation for
969 this flag is here: https://github.com/bazelbuild/bazel/issues/7480
970 - Added --incompatible_py2_outputs_are_suffixed, for switching the
971 bazel-bin symlink to point to Python 3 outputs instead of Python
972 2 outputs. See
973 [#7593](https://github.com/bazelbuild/bazel/issues/7593).
Bazel Release Systemf28ff222019-03-04 11:12:24 +0100974
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400975New features:
Bazel Release Systemf28ff222019-03-04 11:12:24 +0100976
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400977 - Make actions.args() object chainable.
978 - Added --incompatible_windows_style_arg_escaping flag: enables
979 correct subprocess argument escaping on Windows. (No-op on other
980 platforms.)
981 - Added --incompatible_windows_escape_jvm_flags flag: enables
982 correct java_binary.jvm_flags and java_test.jvm_flags
983 tokenization and escaping on Windows. (No-op on other platforms.)
Bazel Release Systemf28ff222019-03-04 11:12:24 +0100984
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400985Important changes:
Bazel Release Systemf28ff222019-03-04 11:12:24 +0100986
Bazel Release System4f5c17c2019-03-26 12:08:43 -0400987 - Allow running aquery against the current state of Skyframe
988 - Added support for the "navigation" resource directory to Android
989 resource processing in Bazel. This is used by the Navigation
990 Architecture Component.
991 - --incompatible_disable_runtimes_filegroups was flipped
992 (https://github.com/bazelbuild/bazel/issues/6942)
993 - Incompatible flag `--incompatible_linkopts_in_user_link_flags`
994 has been flipped (https://github.com/bazelbuild/bazel/issues/6826)
995 - Incompatible flag `--incompatible_dont_emit_static_libgcc` has
996 been flipped (https://github.com/bazelbuild/bazel/issues/6825)
997 - --incompatible_disallow_filetype is enabled by default.
998 - Fixed issue where exceptions and stacktraces were silently
999 swallowed in the Android resource processing pipeline.
1000 - `--incompatible_disable_expand_if_all_available_in_flag_set` has
1001 been flipped (https://github.com/bazelbuild/bazel/issues/7008)
1002 - --incompatible_disallow_dict_plus is enabled by default
1003 - Adds --incompatible_disable_objc_library_resources to disable
1004 resource attributes in objc_library. Please migrate these
1005 attributes to `data` instead.
1006 - --incompatible_disallow_old_style_args_add is enabled by default.
1007 - Using the `native` module in BUILD files is deprecated. It will
1008 be forbidden with --incompatible_disallow_native_in_build_file.
1009 - (Python rules) PyRuntimeInfo is exposed to Starlark, making it
1010 possible for Starlark rules to depend on or imitate `py_runtime`.
1011 The `files` attribute of `py_runtime` is no longer mandatory.
1012 - incompatible_use_toolchain_providers_in_java_common: pass
1013 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
1014 APIs instead of configured
1015 targetshttps://github.com/bazelbuild/bazel/issues/7186.
1016 - is_using_fission crosstool variable is now exposed in all compile
1017 actions when fission is active (it used to be exposed only for
1018 linking actions).
1019 - incompatible_use_toolchain_providers_in_java_common: pass
1020 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
1021 APIs instead of configured
1022 targetshttps://github.com/bazelbuild/bazel/issues/7186.
1023 - `py_runtime` gains a `python_version` attribute for specifying
1024 whether it represents a Python 2 or 3 interpreter.
1025 - `--incompatible_java_coverage` is enabled by default.
1026 - Starlark rules can safely declare attributes named "licenses"
1027 - When using
1028 --incompatible_list_based_execution_strategy_selection, Bazel
1029 will use remote execution by default (if you specify
1030 --remote_executor), otherwise persistent workers (if the action
1031 supports it), otherwise sandboxed local execution (if the action
1032 and platform supports it) and at last unsandboxed local
1033 execution. The flags --spawn_strategy and --strategy continue to
1034 work as before - this only sets new defaults for the case where
1035 you don't specify these flags.
1036 - Set default value of --incompatible_remap_main_repo to true.
1037 - Set default value of --incompatible_remap_main_repo to true.
1038
1039This 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 +01001040
Bazel Release Systemed104862019-02-26 18:36:00 +01001041## Release 0.23.0 (2019-02-26)
1042
1043```
1044Baseline: 441fd75d0047f8a998d784c557736ab9075db893
1045
1046Cherry picks:
1047
1048 + 6ca7763669728253606578a56a205bca3ea883e9:
1049 Fix a typo
1050 + 2310b1c2c8b2f32db238f667747e7d5672480f4a:
1051 Ignore SIGCHLD in test setup script
1052 + f9eb1b56706f91063e9d080b850fa56964e77324:
1053 Complete channel initialization in the event loop
1054```
1055
1056Incompatible changes:
1057
1058 - //src:bazel uses the minimal embedded JDK, if you want to
1059 avoid the extra steps of minimizing the JDK, use //src:bazel-dev
1060 instead.
1061 - //src:bazel uses the minimal embedded JDK, if you want to
1062 avoid the extra steps of building bazel with the minimized JDK,
1063 use //src:bazel-dev
1064 instead.
1065 - The default value of --host_platform and --platforms will be
1066 changed to not be dependent on the configuration. This means
1067 that setting
1068 --cpu or --host_cpu will not affect the target or host platform.
1069 - Toolchain resolution for cc rules is now enabled via an
1070 incompatible flag, --incompatible_enable_cc_toolchain_resolution.
1071 The previous
1072 flag, --enabled_toolchain_types, is deprecated and will be
1073 removed.
1074 - java_(mutable_|)proto_library: removed strict_deps attribute.
1075 - Python rules will soon reject the legacy "py" struct provider
1076 (preview by enabling --incompatible_disallow_legacy_py_provider).
1077 Upgrade rules to use PyInfo instead. See
1078 [#7298](https://github.com/bazelbuild/bazel/issues/7298).
1079 - java_(mutable_|)proto_library: removed strict_deps attribute.
1080 - Two changes to native Python rules: 1) `default_python_version`
1081 and `--force_python` are deprecated; use `python_version` and
1082 `--python_version` respectively instead. You can preview the
1083 removal of the deprecated names with
1084 --incompatible_remove_old_python_version_api. See
1085 [#7308](https://github.com/bazelbuild/bazel/issues/7308). 2) The
1086 version flag will no longer override the declared version of a
1087 `py_binary` or `py_test` target. You can preview this new
1088 behavior with --incompatible_allow_python_version_transitions.
1089 See [#7307](https://github.com/bazelbuild/bazel/issues/7307).
1090
1091Important changes:
1092
1093 - There is a new flag available
1094 `--experimental_java_common_create_provider_enabled_packages`
1095 that acts as a whitelist for usages of
1096 `java_common.create_provider`. The constructor will be deprecated
1097 in Bazel 0.23.
1098 - [#7024] Allow chaining of the same function type in aquery.
1099 - Introduces --local_{ram,cpu}_resources, which will take the place
1100 of --local_resources.
1101 - [#6930] Add documentation for the aquery command.
1102 - Incompatible flag `--incompatible_dont_emit_static_libgcc` has
1103 been flipped (https://github.com/bazelbuild/bazel/issues/6825)
1104 - Incompatible flag `--incompatible_linkopts_in_user_link_flags`
1105 has been flipped (https://github.com/bazelbuild/bazel/issues/6826)
1106 - Flag --incompatible_range_type is removed.
1107 - Flag --incompatible_disallow_slash_operator is removed.
1108 - Flag --incompatible_disallow_conflicting_providers is removed.
1109 - `--incompatible_disallow_data_transition` is now enabled by
1110 default
1111 - Allow inclusion of param files in aquery output
1112 - [#6985] Add test to verify aquery's behavior for Cpp action
1113 templates.
1114 - --incompatible_require_feature_configuration_for_pic was flipped
1115 (https://github.com/bazelbuild/bazel/issues/7007).
1116 - Also ignore module-info.class in multi-version Jars
1117 - objc_framework has been deleted. Please refer to
1118 apple_dynamic_framework_import and apple_static_framework_import
1119 rules available in
1120 [rules_apple](https://github.com/bazelbuild/rules_apple/blob/maste
1121 r/doc/rules-general.md)
1122 - --test_sharding_strategy=experimental_heuristic is no more
1123 - objc_bundle_library has been removed. Please migrate to
1124 rules_apple's
1125 [apple_resource_bundle](https://github.com/bazelbuild/rules_apple/
1126 blob/master/doc/rules-resources.md#apple_resource_bundle).
1127 - You can now use the attribute `aapt_version` or the flag
1128 `--android_aapt` to pick the aapt version for android_local_test
1129 tests
1130 - In --keep_going mode, Bazel now correctly returns a non-zero exit
1131 code when encountering a package loading error during target
1132 pattern parsing of patterns like "//foo:all" and "//foo/...".
1133 - The default value for --incompatible_strict_action_env has been
1134 flipped to 'false' again, as we discovered breakages for local
1135 execution users. We'll need some more time to figure out the best
1136 way to make this work for local and remote execution. Follow
1137 https://github.com/bazelbuild/bazel/issues/7026 for more details.
1138 - Locally-executed spawns tagged "no-cache" no longer upload their
1139 outputs to the remote cache.
1140 - Introduces --host_compiler flag to allow setting a compiler for
1141 host compilation when --host_crosstool_top is specified.
1142 - --incompatible_expand_directories is enabled by default
1143 - [aquery] Handle the case of aspect-on-aspect.
1144 - Fixed a longstanding bug in the http remote cache where the value
1145 passed to
1146 --remote_timeout would be interpreted as milliseconds instead of
1147 seconds.
1148 - Enable --incompatible_use_jdk10_as_host_javabase by default, see
1149 https://github.com/bazelbuild/bazel/issues/6661
1150 - Add --incompatible_use_jdk11_as_host_javabase: makes JDK 11 the
1151 default --host_javabase for remote jdk
1152 (https://github.com/bazelbuild/bazel/issues/7219)
1153 - Highlight TreeArtifact in aquery text output.
1154 - Locally-executed spawns tagged "no-cache" no longer upload their
1155 outputs to the remote cache.
1156 - java_common APIs now accept JavaToolchainInfo and JavaRuntimeInfo
1157 instead of configured targets for java_toolchain and java_runtime
1158 - cc_common.create_cc_toolchain_config_info is stable and available
1159 for production use
1160 - incompatible_use_toolchain_providers_in_java_common: pass
1161 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
1162 APIs instead of configured targets
1163 (https://github.com/bazelbuild/bazel/issues/7186)
1164 - --incompatible_strict_argument_ordering is enabled by default.
1165 - Bazel now supports reading cache hits from a repository cache,
1166 even if it doesn't have write access to the cache.
1167 - Adding arm64e to OSX CROSSTOOL.
1168 - Ignore package-level licenses on config_setting.
1169 - Add an optional output_source_jar parameter to java_common.compile
1170 - --incompatible_disable_objc_provider_resources is now enabled by
1171 default. This disables ObjcProvider's fields related to resource
1172 processing.
1173 - Explicitly set https.protocols and exclude TLSv1.3.
1174 - Bazel now validates that JAVA_HOME points to a valid JDK and
1175 falls back to auto-detection by looking up the path of `javac`.
1176 - Upgrade the embedded JDK version to 11.0.2.
1177 - Added --incompatible_disable_crosstool_file
1178 (https://github.com/bazelbuild/bazel/issues/7320)
1179 - --incompatible_disable_objc_provider_resources is now enabled by
1180 default. This disables ObjcProvider's fields related to resource
1181 processing.
1182 - --incompatible_disable_tools_defaults_package has been flipped.
1183 - For tests that do not generate a test.xml, Bazel now uses a
1184 separate action to generate one; this results in minor
1185 differences in the generated test.xml, and makes the generation
1186 more reliable overall.
1187 - incompatible_generate_javacommon_source_jar: java_common.compile
1188 now always generates a source jar, see
1189 https://github.com/bazelbuild/bazel/issues/5824.
1190 - New incompatible flag
1191 --incompatible_disallow_struct_provider_syntax removes the
1192 ability for rule implementation functions to return struct. Such
1193 functions should return a list of providers instead. Migration
1194 tracking: https://github.com/bazelbuild/bazel/issues/7347
1195
1196This 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.
1197
Bazel Release System2f82b332019-01-28 13:54:53 +01001198## Release 0.22.0 (2019-01-28)
1199
1200```
1201Baseline: deb028e3fb30b4e2953df16f35ab1f55a08ea8fa
1202
1203Cherry picks:
1204
1205 + a3a5975dca3ad04c19dc7d063fcf490a8cd612fd:
1206 Fix a race condition in remote cache
1207 + b8d0e1b05c225a4b943ce498194d069d18093d9a:
1208 Use a new GitHub token and KMS key for the release process.
1209 + 3759e3895503aa2bbd6943c5b568b8c050b9448f:
1210 remote: fix unexpected IO error (not a directory)
1211 + 4473bb1a9ec4282aa8497b86580d68e82415df4a:
1212 Fix a race condition in Bazel's Windows process management.
1213 + 9137fb940886aa516f32ca8a36feccedb545c99b:
1214 undo flag flip of --incompatible_strict_action_env
1215 + 12ab12e80ad1c9a3510aa4bbfdf3fddafc0bca00:
1216 Revert "Enabling Bazel to generate input symlinks as defined by
1217 RE AP?
1218 + 6345c747d8cb1819e70c853becadbf8a989decf1:
1219 Automated rollback of commit
1220 30536baa4a410d8c0a7adab5cd58cd8a2ac7e46c.
1221```
1222
Bazel Release System2f82b332019-01-28 13:54:53 +01001223
Bazel Release System2f82b332019-01-28 13:54:53 +01001224
Klaus Aehligcb59bd22019-01-28 14:20:37 +01001225The Bazel team is happy to announce a new release of Bazel,
1226[Bazel 0.22.0](https://github.com/bazelbuild/bazel/releases/tag/0.22.0).
Bazel Release System2f82b332019-01-28 13:54:53 +01001227
Klaus Aehligcb59bd22019-01-28 14:20:37 +01001228Baseline: deb028e3fb30b4e2953df16f35ab1f55a08ea8fa
Bazel Release System2f82b332019-01-28 13:54:53 +01001229
Klaus Aehligcb59bd22019-01-28 14:20:37 +01001230### Breaking changes
1231
1232- [`--incompatible_string_is_not_iterable`](https://github.com/bazelbuild/bazel/issues/5830)
1233
1234### Upcoming changes
1235
1236This release is a [migration window for the following changes](https://github.com/bazelbuild/bazel/labels/migration-0.22).
1237
1238- [`--incompatible_disallow_data_transition`](https://github.com/bazelbuild/bazel/issues/6153)
1239- [`--incompatible_dont_emit_static_libgcc`](https://github.com/bazelbuild/bazel/issues/6825)
1240- [`--incompatible_linkopts_in_user_link_flags`](https://github.com/bazelbuild/bazel/issues/6826)
1241- [`--incompatible_disable_legacy_crosstool_fields`](https://github.com/bazelbuild/bazel/issues/6861)
1242- [`--incompatible_use_aapt2_by_default`](https://github.com/bazelbuild/bazel/issues/6907)
1243- [`--incompatible_disable_runtimes_filegroups`](https://github.com/bazelbuild/bazel/issues/6942)
1244- [`--incompatible_disable_legacy_cc_provider`](https://github.com/bazelbuild/bazel/issues/7036)
1245- [`--incompatible_require_feature_configuration_for_pic`](https://github.com/bazelbuild/bazel/issues/7007)
1246- [`--incompatible_disable_expand_if_all_available_in_flag_set`](https://github.com/bazelbuild/bazel/issues/7008)
1247- [`--incompatible_disable_legacy_proto_provider`](https://github.com/bazelbuild/bazel/issues/7152)
1248- [`--incompatible_disable_proto_source_root`](https://github.com/bazelbuild/bazel/issues/7153)
1249
1250### General Changes
1251
1252- https://docs.bazel.build now supports versioned
1253 documentation. Use the selector at the top of the navigation bar
1254 to switch between documentation for different Bazel releases.
1255
1256- set `projectId` in all `PublishBuildToolEventStreamRequest`
1257
1258### Android
1259
1260- mobile-install now works with aapt2. Try it out with `bazel
1261 mobile-install --android_aapt=aapt2 //my:target`
1262
1263- Fixed issues with mobile-install v1 when deploying to Android 9 Pie
1264 devices. https://github.com/bazelbuild/bazel/issues/6814
1265
1266- Fixed issue where error messages from Android manifest merging
1267 actions were not fully propagated.
1268
1269- New incompatible change flag `--incompatible_use_aapt2_by_default`
1270 for defaulting to aapt2 in Android builds has been added. To build with
1271 aapt2 today, pass the flag
1272 `--incompatible_use_aapt2_by_default=true` or
1273 `--android_aapt=aapt2`, or set the `aapt_version` to `aapt2` on
1274 your `android_binary` or `android_local_test` target.
1275
1276- Fixed mobile-install v1 error when installing an app with native
1277 libraries onto an Android 9 (Pie) device. See
1278 https://github.com/bazelbuild/examples/issues/77
1279
1280- Fixed a mobile-install bug where `arm64-v8a` libraries were not
1281 deployed correctly on `arm64` devices. This was done by enabling
1282 incremental native lib deployment by default. A previously
1283 undocumented `--android_incremental_native_libs` flag is removed,
1284 and is now the regular behavior. See
1285 https://github.com/bazelbuild/bazel/issues/2239
1286
1287### Apple
1288
1289- The `objc_bundle` rule has been removed. Please migrate to rules_apple's
1290 [apple_bundle_import](https://github.com/bazelbuild/rules_apple/bl
1291 ob/master/doc/rules-resources.md#apple_bundle_import).
1292
1293- The `apple_stub_binary` rule has been deleted.
1294
1295- The `--xbinary_fdo` option that passes xbinary profiles has been added.
1296
1297### C++
1298
1299- `cc_toolchain.(static|dynamic)_runtime_libs` attributes are now optional
1300
1301### Packaging
1302
1303- `build_tar.py` in `tools/build_defs/pkg` now supports a JSON manifest
1304 that can be used to add paths that have symbols that can't be
1305 specified via the command line
1306
1307### Query
1308
1309- Filtering of inputs, outputs, and mnemonic filtering have been added to
1310 aquery.
1311
1312- The aquery and cquery query2 tests have been open-sourced.
1313
1314- The Bazel query how-to recommends ":*" instead of ":all", because "all" might
1315 be the name of a target.
1316
1317### Testing
1318
1319- The `--runs_per_test` has been placed in the TESTING documentation category.
1320
1321- A a clarifying message has been added to test case summary output when all
1322 test cases pass but the target fails.
1323
1324### Contributors
1325
1326This release contains contributions from many people at Google, as well as
1327Benjamin Peterson, Dave Lee, George Gensure, Gert van Dijk, Gustavo Storti
1328Salibi, Keith Smiley, Loo Rong Jie, Lukasz Tekieli, Mikhail Mazurskiy, Thi,
1329Travis Cline, Vladimir Chebotarev, and Yannic.
Bazel Release System2f82b332019-01-28 13:54:53 +01001330
Bazel Release Systema189d422018-12-19 13:53:11 +01001331## Release 0.21.0 (2018-12-19)
1332
1333```
1334Baseline: cb9b2afbba3f8d3a1db8bf68e65d06f1b36902f5
1335
1336Cherry picks:
1337
1338 + 12b96466ee0d6ab83f7d4cd24be110bb5021281d:
1339 Windows, test wrapper: rename the associated flag
1340 + 7fc967c4d6435de2bb4e34aac00ca2e499f55fca:
1341 Use a fixed thread pool in ByteStreamBuildEventArtifactUploader
1342 + 798b9a989aa793655d29504edb5fb85f3143db84:
1343 Add --build_event_upload_max_threads option
1344 + dbe05df23ccf4c919379e0294e0701fd3f66739c:
1345 Update the version of skylib bundled in the distfile
1346```
1347
1348Incompatible changes:
1349
1350 - The --experimental_stl command line option is removed.
1351 - aquery defaults to human readable output format.
1352
1353New features:
1354
1355 - repository_ctx.download and repository_ctx.download_and_extract
1356 now return a struct.
1357 - Android Databinding v2 can be enabled with
1358 --experimental_android_databinding_v2.
1359
1360Important changes:
1361
1362 - The deprecated and unmaintained Docker rules in
1363 tools/build_defs/docker were removed. Please use
1364 https://github.com/bazelbuild/rules_docker instead.
1365 - The new --upload_query_output_using_bep query/cquery/aquery flag
1366 causes query outputs to be uploaded via BEP.
1367 - New incompatible flag --incompatible_strict_argument_ordering
1368 - --strict_android_deps and --strict_java_deps were renamed to
1369 --experimental_strict_java_deps
1370 - config_settings that select on "compiler" value instead of values
1371 = {"compiler" : "x"} should use flag_values =
1372 {"@bazel_tools//tools/cpp:compiler": "x"}.
1373 - The new --upload_query_output_using_bep query/cquery/aquery flag
1374 causes query outputs to be uploaded via BEP.
1375 - Turn on --incompatible_disable_sysroot_from_configuration
1376 - We revamped our Android with Bazel tutorial! Check it out
1377 [here](https://docs.bazel.build/versions/master/tutorial/android-a
1378 pp.html).
1379 - --incompatible_disallow_slash_operator is now on by default
1380 - Enable --experimental_check_desugar_deps by default. This flag
1381 rules out several types of invalid Android builds at compile-time.
1382 - The --max_config_changes_to_show option lists the names of
1383 options which
1384 have changed and thus caused the analysis cache to be dropped.
1385 - The --experimental_strict_action_env option has been renamed to
1386 --incompatible_strict_action_env and is now on by default. This
1387 means Bazel will no longer use the client's PATH and
1388 LD_LIBRARY_PATH environmental variables in the default action
1389 environment. If the old behavior is desired, pass
1390 --action_env=PATH and --action_env=LD_LIBRARY_PATH.
1391 --noincompatible_strict_action_env will also temporarily restore
1392 the old behavior. However, as --action_env is a more general and
1393 explicit way to pass client environmental variables into actions,
1394 --noincompatible_strict_action_env will eventually be deprecated
1395 and removed. See #6648 for more details.
1396 - XCRUNWRAPPER_LABEL has been removed. If you used this value
1397 before, please use @bazel_tools//tools/objc:xcrunwrapper instead.
1398 - --incompatible_static_name_resolution is no unable by default
1399 - We will phase out --genrule_strategy in favor of
1400 --strategy=Genrule=<value> (for genrules) or
1401 --spawn_strategy=<value> (for all actions).
1402 - --incompatible_package_name_is_a_function is now enabled by
1403 default
1404 - Dynamic execution is now available with
1405 --experimental_spawn_strategy. Dynamic execution allows a build
1406 action to run locally and remotely simultaneously, and Bazel
1407 picks the fastest action. This provides the best of both worlds:
1408 faster clean builds than pure local builds, and faster
1409 incremental builds than pure remote builds.
1410 - --incompatible_package_name_is_a_function is now enabled by
1411 default
1412 - New incompatible flag --incompatible_merge_genfiles_directory
1413 - grpc log now logs updateActionResult
1414 - CppConfiguration doesn't do package loading anymore. That means:
1415 * it's no longer needed to have C++ toolchain available when
1416 building non-C++ projects
1417 * bazel will not analyze C++ toolchain when not needed -> speedup
1418 ~2s on bazel startup when C++ rules using hermetic toolchain are
1419 not loaded
1420 - --incompatible_package_name_is_a_fu...
1421
1422This 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.
1423
Bazel Release System85378562018-11-30 15:34:16 +01001424## Release 0.20.0 (2018-11-30)
1425
1426```
1427Baseline: 7bf7f031c332dc483257248d1c1f98ad75bbc83b
1428
1429Cherry picks:
1430
1431 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
1432 update bazel-toolchains pin to latest release Part of changes to
1433 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
1434 before 0.17.0 are not compatible with bazel 0.19.0 or above.
1435 + 241f28d05424db2d11ee245dc856b992258505e3:
1436 Revert "Toggle --incompatible_disable_late_bound_option_defaults
1437 flag."
1438 + f7e5aef145c33968f658eb2260e25630dc41cc67:
1439 Add cc_toolchain targets for the new entries in the default
1440 cc_toolchain_suite.
1441 + d2920e32ec7f3f8551a693d33c17b19f1b802145:
1442 Revert "WindowsFileSystem: open files with delete-sharing"
1443```
1444
1445[Breaking changes in 0.20](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Abreaking-change-0.20)
1446
1447 - [--incompatible_remove_native_http_archive](https://github.com/bazelbuild/bazel/issues/6570).
1448 - [--incompatible_remove_native_git_repository](https://github.com/bazelbuild/bazel/issues/6569).
1449 - [--incompatible_disable_cc_toolchain_label_from_crosstool_proto](https://github.com/bazelbuild/bazel/issues/6434).
1450 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6384).
1451 - [--incompatible_disable_cc_configuration_make_variables](https://github.com/bazelbuild/bazel/issues/6381).
1452 - [--incompatible_disallow_conflicting_providers](https://github.com/bazelbuild/bazel/issues/5902).
1453 - [--incompatible_range_type](https://github.com/bazelbuild/bazel/issues/5264).
1454
1455[0.20 is a migration window for the following changes](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Amigration-0.20)
1456
1457 - [--incompatible_use_jdk10_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6661)
1458 - [--incompatible_use_remotejdk_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6656)
1459 - [--incompatible_disable_sysroot_from_configuration](https://github.com/bazelbuild/bazel/issues/6565)
1460 - [--incompatible_provide_cc_toolchain_info_from_cc_toolchain_suite](https://github.com/bazelbuild/bazel/issues/6537)
1461 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6383)
1462 - [--incompatible_package_name_is_a_function](https://github.com/bazelbuild/bazel/issues/5827)
1463
1464[Breaking changes in the next release (0.21)](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Abreaking-change-0.21)
1465
1466 - [--incompatible_use_jdk10_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6661)
1467 - [--incompatible_use_remotejdk_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6656)
1468 - [--incompatible_disable_sysroot_from_configuration](https://github.com/bazelbuild/bazel/issues/6565)
1469 - [--incompatible_provide_cc_toolchain_info_from_cc_toolchain_suite](https://github.com/bazelbuild/bazel/issues/6537)
1470 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6383)
1471 - [--incompatible_disallow_data_transition](https://github.com/bazelbuild/bazel/issues/6153)
1472 - [--incompatible_package_name_is_a_function](https://github.com/bazelbuild/bazel/issues/5827)
1473 - [--incompatible_disallow_slash_operator](https://github.com/bazelbuild/bazel/issues/5823)
1474 - [--incompatible_static_name_resolution](https://github.com/bazelbuild/bazel/issues/5637)
1475
1476Incompatible changes:
1477
1478 - the --experimental_no_dotd_scanning_with_modules command line
1479 argument is not supported anymore.
1480 - The --prune_cpp_modules command line option is not supported
1481 anymore.
1482 - the --experimental_prune_cpp_input_discovery command line option
1483 is not supported anymore.
1484
1485New features:
1486
1487 - Added support for Android NDK r18.
1488
1489Important changes:
1490
1491 - The 'default' parameter of attr.output and attr.output_list is
1492 removed. This is controlled by
1493 --incompatible_no_output_attr_default
1494 - A number of platform-related Starlark APIs which were previously
1495 marked "experimental" are now disabled by default, and may be
1496 enabled via --experimental_platforms_api
1497 - Make legacy-test-support ("legacy_test-<api-level>") from
1498 android_sdk_repository neverlink. The legacy test support
1499 libraries shouldn't be built into test binaries. To make them
1500 available at runtime, developers should declare them via
1501 uses-library:
1502 https://developer.android.com/training/testing/set-up-project#andr
1503 oid-test-base
1504 - query remote server Capabilities (per REAPI v2)
1505 - CppRules: All cc_toolchains depended on from
1506 cc_toolchain_suite.toolchains are now analyzed when not using
1507 platforms in order to select the right cc_toolchain.
1508 - removed obsolete --explicit_jre_deps flag.
1509 - Incompatible flag
1510 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
1511 flipped.
1512 - Improve error messaging when unsupport proguard options are
1513 specified at the library level.
1514 - Incompatible flag
1515 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
1516 flipped.
1517 - Incompatible flag
1518 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
1519 flipped.
1520 - The --incompatible_disable_late_bound_option_defaults flag has
1521 been flipped (#6384)
1522 - Incompatible flag
1523 --incompatible_disable_legacy_flags_cc_toolchain_api was flipped
1524 (#6434)
1525 - Fixed issue where ctx.resolve_command created conflicting
1526 intermediate files when resolve_command was called multiple times
1527 within the same rule invocation with a long command attribute.
1528 - Incompatible flag
1529 --incompatible_disable_cc_configuration_make_variables was
1530 flipped (#6381)
1531 - If the --javabase flag is unset, it Bazel locates a JDK using
1532 the JAVA_HOME environment variable and searching the PATH. If no
1533 JDK is found --javabase will be empty, and builds targeting Java
1534 will not
1535 be supported. Previously Bazel would fall back to using the
1536 embedded
1537 JDK as a --javabase, but this is no longer default behaviour. A
1538 JDK should
1539 be explicitly installed instead to enable Java development
1540 - Bazel will now shut down when idle for 5 minutes and the system
1541 is low on RAM (linux only).
1542 - CROSSTOOL file is now read from the package of cc_toolchain, not
1543 from
1544 the package of cc_toolchain_suite. This is not expected to break
1545 anybody since
1546 cc_toolchain_suite and cc_toolchain are commonly in the same
1547 package.
1548 - All overrides of Starlark's ctx.new_file function are now
1549 deprecated.
1550 Try the `--incompatible_new_actions_api` flag to ensure your
1551 code is forward-compatible.
1552 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
1553 was flipped.
1554 - Introduce --(no)shutdown_on_low_sys_mem startup flag to toggle
1555 idle low-memory shutdown, disabled by default.
1556 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
1557 was flipped.
1558 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
1559 was flipped.
1560 - CppRules: All cc_toolchains depended on from
1561 cc_toolchain_suite.toolchains are now analyzed when not using
1562 platforms in order to select the right cc_toolchain.
1563 - The function `attr.license` is deprecated and will be removed.
1564 It can be disabled now with `--incompatible_no_attr_license`.
1565 - `range()` function now returns a lazy value
1566 (`--incompatible_range_type` is now set by default).
1567 - The code coverage report now includes the actual paths to header
1568 files instead of the ugly,
1569 Bazel generated, virtual includes path.
1570 - `--incompatible_disallow_conflicting_providers` has been switched
1571 to true
1572 - Add new flag `--incompatible_disable_systool_from_configration` to
1573 disable loading the systool from CppConfiguration.
1574 - Add new flag `--incompatible_disable_sysroot_from_configuration`
1575 to
1576 disable loading the systool from CppConfiguration.
1577 - Sorting remote Platform properties for remote execution. May
1578 affect cache keys!
1579 - Use different server log files per Bazel server process; java.log
1580 is
1581 now a symlink to the latest log.
1582
1583This 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>.
1584
Bazel Release Systemcb3e2982018-11-19 11:19:38 -05001585## Release 0.19.2 (2018-11-19)
1586
1587```
1588Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
1589
1590Cherry picks:
1591
1592 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
1593 Fix the "nojava" platform and enable full presubmit checks for
1594 the various JDK platforms now that we have enough GCE resources.
1595 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
1596 Add openjdk_linux_archive java_toolchain for nojava platform.
1597 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
1598 Automated rollback of commit
1599 19a401c38e30ebc0879925a5caedcbe43de0028f.
1600 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
1601 Windows: Fix Precondition check for addDynamicInputLinkOptions
1602 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
1603 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
1604 it exists.
1605 + e025726006236520f7e91e196b9e7f139e0af5f4:
1606 Update turbine
1607 + 5f312dd1678878fb7563eae0cd184f2270346352:
1608 Fix event id for action_completed BEP events
1609 + f0c844c77a2406518c4e75c49188390d5e281d3d:
1610 Release 0.19.0 (2018-10-29)
1611 + c3fb1db9e4e817e8a911f5b347b30f2674a82f7c:
1612 Do not use CROSSTOOL to select cc_toolchain
1613 + 8e280838e8896a6b5eb5421fda435b96b6f8de60:
1614 Windows Add tests for msys gcc toolchain and mingw gcc toolchain
1615 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
1616 update bazel-toolchains pin to latest release Part of changes to
1617 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
1618 before 0.17.0 are not compatible with bazel 0.19.0 or above.
1619 + eb2af0f699350ad187048bf814a95af23f562c77:
1620 Release 0.19.1 (2018-11-12)
1621 + 6bc452874ddff69cbf7f66186238032283f1195f:
1622 Also update cc_toolchain.toolchain_identifier when
1623 CC_TOOLCHAIN_NAME is set
1624 + f7e5aef145c33968f658eb2260e25630dc41cc67:
1625 Add cc_toolchain targets for the new entries in the default
1626 cc_toolchain_suite.
1627 + 683c302129b66a8999f986be5ae7e642707e978c:
1628 Read the CROSSTOOL from the package of the current cc_toolchain,
1629 not from --crosstool_top
1630```
1631
1632- Fixes regression #6662, by fixing tools/cpp/BUILD
1633- Fixes regression #6665, by setting the toolchain identifier.
1634- CROSSTOOL file is now read from the package of cc_toolchain, not from the
1635 package of cc_toolchain_suite. This is not expected to break anybody since
1636 cc_toolchain_suite and cc_toolchain are commonly in the same package.
1637
Bazel Release System684f1092018-11-12 10:26:58 -05001638## Release 0.19.1 (2018-11-12)
1639
1640```
1641Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
1642
1643Cherry picks:
1644
1645 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
1646 Fix the "nojava" platform and enable full presubmit checks for
1647 the various JDK platforms now that we have enough GCE resources.
1648 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
1649 Add openjdk_linux_archive java_toolchain for nojava platform.
1650 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
1651 Automated rollback of commit
1652 19a401c38e30ebc0879925a5caedcbe43de0028f.
1653 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
1654 Windows: Fix Precondition check for addDynamicInputLinkOptions
1655 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
1656 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
1657 it exists.
1658 + e025726006236520f7e91e196b9e7f139e0af5f4:
1659 Update turbine
1660 + 5f312dd1678878fb7563eae0cd184f2270346352:
1661 Fix event id for action_completed BEP events
1662 + f0c844c77a2406518c4e75c49188390d5e281d3d:
1663 Release 0.19.0 (2018-10-29)
1664 + c3fb1db9e4e817e8a911f5b347b30f2674a82f7c:
1665 Do not use CROSSTOOL to select cc_toolchain
1666 + 8e280838e8896a6b5eb5421fda435b96b6f8de60:
1667 Windows Add tests for msys gcc toolchain and mingw gcc toolchain
1668 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
1669 update bazel-toolchains pin to latest release Part of changes to
1670 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
1671 before 0.17.0 are not compatible with bazel 0.19.0 or above.
1672```
1673
1674Important changes:
1675- Fix regression #6610, which prevents using the MINGW compiler on Windows.
1676
Klaus Aehlig5e5832c2018-10-31 15:45:53 +01001677## Release 0.19.0 (2018-10-29)
1678
1679```
1680Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
1681
1682Cherry picks:
1683
1684 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
1685 Fix the "nojava" platform and enable full presubmit checks for
1686 the various JDK platforms now that we have enough GCE resources.
1687 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
1688 Add openjdk_linux_archive java_toolchain for nojava platform.
1689 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
1690 Automated rollback of commit
1691 19a401c38e30ebc0879925a5caedcbe43de0028f.
1692 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
1693 Windows: Fix Precondition check for addDynamicInputLinkOptions
1694 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
1695 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
1696 it exists.
1697 + e025726006236520f7e91e196b9e7f139e0af5f4:
1698 Update turbine
1699 + 5f312dd1678878fb7563eae0cd184f2270346352:
1700 Fix event id for action_completed BEP events
1701```
1702
1703The Bazel team is happy to announce a new version of Bazel, [Bazel 0.19](https://github.com/bazelbuild/bazel/releases/tag/0.19.0).
1704
1705This document lists the major changes since Bazel 0.18.
1706
1707General changes
1708---------------
1709
1710* The `--incompatible_expand_directories` flag will automatically expand directories in command lines. Design doc: https://docs.google.com/document/d/11agWFiOUiz2htBLj6swPTob5z78TrCxm8DQE4uJLOwM
1711
1712* 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.
1713
1714Android
1715-------
1716
1717* Fixed missing debug symbols when building native code with `--compilation_mode=dbg` that target Android ARM architectures by adding the `-g` flag.
1718
1719C++
1720---
1721
1722* 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.
1723
1724* 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.
1725
1726* :cc_binary link action no longer hardcodes `-static-libgcc` for toolchains that support embedded runtimes (guarded by `--experimental_dont_emit_static_libgcc` temporarily).
1727
1728* The flag `--experimental_enable_cc_configuration_make_variables` is removed, use `--incompatible_disable_cc_configuration_make_variables` instead.
1729
1730Java
1731----
1732
1733* 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.
1734
1735Code Coverage
1736-------------
1737
1738* LcovMerger was renamed to CoverageOutputGenerator.
1739
1740* Faster coverage collection for gcc compiled C++ code can now be tested by enabling it with `--experimental_cc_coverage`.
1741
1742Other Changes
1743-------------
1744
1745* Add `--apple_compiler` and `--apple_grte_top options`. These provide the equivalent of --compiler / --grte_top for the toolchain configured in --apple_crosstool_top.
1746
1747* There is now a `same_pkg_direct_rdeps` query function. See the query documentation for more details.
1748
1749* Propagating remote errors to the user even if `--verbose_failures=false` is set.
1750
1751* Add number of configured targets to analysis phase status output.
1752
1753* 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.
1754
1755Future Changes
1756--------------
1757
1758* 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:
1759 * [`--incompatible_disable_late_bound_option_defaults`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-late-bound-option-defaults): #6384
1760 * [`--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
1761 * [`--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
1762 * [`--incompatible_disable_cc_configuration_make_variables`](https://github.com/bazelbuild/bazel/issues/6381): #6381
1763 * [`--incompatible_disable_legacy_cpp_toolchain_skylark_api`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-legacy-c-configuration-api): #6380
1764 * [`incompatible_disable_legacy_flags_cc_toolchain_api`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-legacy-c-toolchain-api): #6434
1765
1766* 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.
1767
1768Thank you to our contributors!
1769------------------------------
1770
1771This 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
1772
1773Thank you to everyone who contributed to this release!
1774
Bazel Release System92849b82018-10-31 15:41:11 +01001775## Release 0.18.1 (2018-10-31)
Bazel Release System36177972018-10-15 10:29:10 +02001776
1777```
Bazel Release System92849b82018-10-31 15:41:11 +01001778Baseline: c062b1f1730f3562d5c16a037b374fc07dc8d9a2
Bazel Release System36177972018-10-15 10:29:10 +02001779
1780Cherry picks:
1781
Bazel Release System92849b82018-10-31 15:41:11 +01001782 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
1783 Include also ext jars in the bootclasspath jar.
1784 + 2579b791c023a78a577e8cb827890139d6fb7534:
1785 Fix toolchain_java9 on --host_javabase=<jdk9> after
1786 7eb9ea150fb889a93908d96896db77d5658e5005
1787 + faaff7fa440939d4367f284ee268225a6f40b826:
1788 Release notes: fix markdown
1789 + b073a18e3fac05e647ddc6b45128a6158b34de2c:
1790 Fix NestHost length computation Fixes #5987
1791 + bf6a63d64a010f4c363d218e3ec54dc4dc9d8f34:
1792 Fixes #6219. Don't rethrow any remote cache failures on either
1793 download or upload, only warn. Added more tests.
1794 + c1a7b4c574f956c385de5c531383bcab2e01cadd:
1795 Fix broken IdlClassTest on Bazel's CI.
1796 + 71926bc25b3b91fcb44471e2739b89511807f96b:
1797 Fix the Xcode version detection which got broken by the upgrade
1798 to Xcode 10.0.
1799 + 86a8217d12263d598e3a1baf2c6aa91b2e0e2eb5:
1800 Temporarily restore processing of workspace-wide tools/bazel.rc
1801 file.
Bazel Release System83870d62018-10-29 10:31:13 -04001802 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
1803 Windows: Fix Precondition check for addDynamicInputLinkOptions
Bazel Release System83870d62018-10-29 10:31:13 -04001804 + e025726006236520f7e91e196b9e7f139e0af5f4:
1805 Update turbine
Bazel Release System36177972018-10-15 10:29:10 +02001806```
1807
Bazel Release System92849b82018-10-31 15:41:11 +01001808Important changes:
Bazel Release System83870d62018-10-29 10:31:13 -04001809
Bazel Release System92849b82018-10-31 15:41:11 +01001810 - Fix regression #6219, remote cache failures
Bazel Release System36177972018-10-15 10:29:10 +02001811
Klaus Aehlig7b417542018-10-29 15:46:36 +01001812## Release 0.18.0 (2018-10-15)
1813
1814```
1815Baseline: c062b1f1730f3562d5c16a037b374fc07dc8d9a2
1816
1817Cherry picks:
1818
1819 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
1820 Include also ext jars in the bootclasspath jar.
1821 + 2579b791c023a78a577e8cb827890139d6fb7534:
1822 Fix toolchain_java9 on --host_javabase=<jdk9> after
1823 7eb9ea150fb889a93908d96896db77d5658e5005
1824 + faaff7fa440939d4367f284ee268225a6f40b826:
1825 Release notes: fix markdown
1826 + b073a18e3fac05e647ddc6b45128a6158b34de2c:
1827 Fix NestHost length computation Fixes #5987
1828 + bf6a63d64a010f4c363d218e3ec54dc4dc9d8f34:
1829 Fixes #6219. Don't rethrow any remote cache failures on either
1830 download or upload, only warn. Added more tests.
1831 + c1a7b4c574f956c385de5c531383bcab2e01cadd:
1832 Fix broken IdlClassTest on Bazel's CI.
1833 + 71926bc25b3b91fcb44471e2739b89511807f96b:
1834 Fix the Xcode version detection which got broken by the upgrade
1835 to Xcode 10.0.
1836 + 86a8217d12263d598e3a1baf2c6aa91b2e0e2eb5:
1837 Temporarily restore processing of workspace-wide tools/bazel.rc
1838 file.
1839```
1840
1841General changes
1842
1843- New [bazelrc file list](https://docs.bazel.build/versions/master/user-manual.html#where-are-the-bazelrc-files).
1844 If you need to keep both the old and new lists of .rc files active
1845 concurrently to support multiple versions of Bazel, you can import the old
1846 file location into the new list using `try-import`. This imports a file if it
1847 exists and silently exits if it does not. You can use this method to account
1848 for a user file that may or may not exist
1849
1850- [.bazelignore](https://docs.bazel.build/versions/master/user-manual.html#.bazelignore)
1851 is now fully functional.
1852
1853- The startup flag `--host_javabase` has been renamed to
1854 `--server_javabase` to avoid confusion with the build flag
1855 `--host_javabase`.
1856
1857Android
1858
1859- The Android resource processing pipeline now supports persistence
1860 via worker processes. Enable it with
1861 `--persistent_android_resource_processor`. We have observed a 50% increase
1862 in build speed for clean local builds and up to 150% increase in build
1863 speed for incremental local builds.
1864
1865C++
1866
1867- In-memory package //tools/defaults has been removed (controlled by
1868 `--incompatible_disable_tools_defaults_package` flag). Please see
1869 [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-inmemory-tools-defaults-package)
1870 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
1871 behavior will be removed in Bazel 0.20.
1872
1873- Late bound option defaults (typical example was the `--compiler` flag, when
1874 it was not specified, it’s value was computed using the CROSSTOOL) are removed
1875 (controlled by `--incompatible_disable_late_bound_option_defaults` flag).
1876 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-late-bound-option-defaults)
1877 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
1878 behavior will be removed in Bazel 0.20.
1879
1880- Depsets are no longer accepted in `user_compile_flags` and `user_link_flags`
1881 in the C++ toolchain API (controlled by
1882 `--incompatible_disable_depset_in_cc_user_flags` flag) affects C++ users.
1883 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-depsets-in-c-toolchain-api-in-user-flags)
1884 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
1885 behavior will be removed in Bazel 0.20.
1886
1887- CROSSTOOL is no longer consulted when selecting C++ toolchain (controlled by
1888 `--incompatible_disable_cc_toolchain_label_from_crosstool_proto` flag).
1889 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-crosstool-to-select-the-cc_toolchain-label)
1890 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
1891
1892- You can now use [`toolchain_identifier` attribute](https://github.com/bazelbuild/bazel/commit/857d4664ce939f240b1d10d8d2baca6c6893cfcb)
1893 on `cc_toolchain` to pair it with CROSSTOOL toolchain.
1894
1895- C++ specific Make variables
1896 are no longer passed from the `CppConfiguration`, but from the C++ toolchain
1897 (controlled by `--incompatible_disable_cc_configuration_make_variables` flag).
1898 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-c-specific-make-variables-from-the-configuration)
1899 and migrate soon, the flag will be flipped
1900 in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
1901
1902- Skylark api accessing C++
1903 toolchain in `ctx.fragments.cpp` is removed (controlled by
1904 `--incompatible_disable_legacy_cpp_toolchain_skylark_api` flag).
1905 Please migrate soon, the flag will be flipped
1906 in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
1907
1908- cc_binary link action no longer hardcodes
1909 `-static-libgcc` for toolchains that support embedded runtimes
1910 (guarded by [`--experimental_dont_emit_static_libgcc`](https://source.bazel.build/bazel/+/2f281960b829e964526a9d292d4c3003e4d19f1c)
1911 temporarily). Proper deprecation using `--incompatible` flags will follow.
1912
1913Java
1914
1915- Future versions of Bazel will require a locally installed JDK
1916 for Java development. Previously Bazel would fall back to using
1917 the embedded `--server_javabase` if no JDK as available. Pass
1918 `--incompatible_never_use_embedded_jdk_for_javabase` to disable the
1919 legacy behaviour.
1920
1921- `--javacopt=` no longer affects compilations of tools that are
1922 executed during the build; use `--host_javacopt=` to change javac
1923 flags in the host configuration.
1924
1925Objective C
1926
1927- `objc_library` now supports the module_name attribute.
1928
1929Skylark
1930
1931- Adds `--incompatible_expand_directories` to automatically expand
1932 directories in skylark command lines. Design doc:
1933 https://docs.google.com/document/d/11agWFiOUiz2htBLj6swPTob5z78TrCxm8DQE4uJLOwM
1934
1935- Support fileset expansion in ctx.actions.args(). Controlled by
1936 `--incompatible_expand_directories`.
1937
1938Windows
1939
1940- `--windows_exe_launcher` is deprecated, this flag will be removed
1941 soon. Please make sure you are not using it.
1942
1943- Bazel now supports the symlink runfiles tree on Windows with
1944 `--experimental_enable_runfiles` flag. For more details, see
1945 [this doc](https://docs.google.com/document/d/1hnYmU1BmtCSJOUvvDAK745DSJQCapToJxb3THXYMrmQ).
1946
1947Other Changes
1948
1949- A new experimental option `--experimental_ui_deduplicate` has been added. It
1950 causes the UI to attempt to deduplicate messages from actions to keep the
1951 console output cleaner.
1952
1953- Add `--modify_execution_info`, a flag to customize action execution
1954 info.
1955
1956- Add ExecutionInfo to aquery output for ExecutionInfoSpecifier
1957 actions.
1958
1959- When computing `--instrumentation_filter`, end filter patterns with
1960 "[/:]" to match non-top-level packages exactly and treat
1961 top-level targets consistently.
1962
1963- Added the `bazel info server_log` command, which obtains the main Bazel
1964 server log file path. This can help debug Bazel issues.
1965
1966- `aapt shrink` resources now properly respect filter configurations.
1967
Bazel Release System50921e62018-09-21 12:27:04 +02001968## Release 0.17.2 (2018-09-21)
1969
1970```
1971Baseline: aa118ca818baf722aede0bc48d0a17584fa45b6e
1972
1973Cherry picks:
1974 + 0e0462589528154cb5160411991075a2000b5452:
1975 Update checker framework dataflow and javacutil versions
1976 + 3987300d6651cf0e6e91b395696afac6913a7d66:
1977 Stop using --release in versioned java_toolchains
1978 + 438b2773b8c019afa46be470b90bcf70ede7f2ef:
1979 make_deb: Add new empty line in the end of conffiles file
1980 + 504401791e0a0e7e3263940e9e127f74956e7806:
1981 Properly mark configuration files in the Debian package.
1982 + 9ed9d8ac4347408d15c8fce7c9c07e5c8e658b30:
1983 Add flag
1984 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfil
1985 es_tree.
1986 + 22d761ab42dfb1b131f1facbf490ccdb6c17b89c:
1987 Update protobuf to 3.6.1 -- add new files
1988 + 27303d79c38f2bfa3b64ee7cd7a6ef03a9a87842:
1989 Update protobuf to 3.6.1 -- update references
1990 + ddc97ed6b0367eb443e3e09a28d10e65179616ab:
1991 Update protobuf to 3.6.1 -- remove 3.6.0 sources
1992 + ead1002d3803fdfd4ac68b4b4872076b19d511a2:
1993 Fix protobuf in the WORKSPACE
1994 + 12dcd35ef7a26d690589b0fbefb1f20090cbfe15:
1995 Revert "Update to JDK 10 javac"
1996 + 7eb9ea150fb889a93908d96896db77d5658e5005:
1997 Automated rollback of
1998 https://github.com/bazelbuild/bazel/commit/808ec9ff9b5cec14f23a4b
1999 a106bc5249cacc8c54 and
2000 https://github.com/bazelbuild/bazel/commit/4c9149d558161e7d3e363f
2001 b697f5852bc5742a36 and some manual merging.
2002 + 4566a428c5317d87940aeacfd65f1018340e52b6:
2003 Fix tests on JDK 9 and 10
2004 + 1e9f0aa89dad38eeab0bd40e95e689be2ab6e5e5:
2005 Fix more tests on JDK 9 and 10
2006 + a572c1cbc8c26f625cab6716137e2d57d05cfdf3:
2007 Add ubuntu1804_nojava, ubuntu1804_java9, ubuntu1804_java10 to
2008 postsubmit.
2009 + 29f1de099e4f6f0f50986aaa4374fc5fb7744ee8:
2010 Disable Android shell tests on the "nojava" platform.
2011 + b495eafdc2ab380afe533514b3bcd7d5b30c9935:
2012 Update bazel_toolchains to latest release.
2013 + 9323c57607d37f9c949b60e293b573584906da46:
2014 Windows: fix writing java.log
2015 + 1aba9ac4b4f68b69f2d91e88cfa8e5dcc7cb98c2:
2016 Automated rollback of commit
2017 de22ab0582760dc95f33e217e82a7b822378f625.
2018 + 2579b791c023a78a577e8cb827890139d6fb7534:
2019 Fix toolchain_java9 on --host_javabase=<jdk9> after
2020 7eb9ea150fb889a93908d96896db77d5658e5005
2021 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
2022 Include also ext jars in the bootclasspath jar.
2023 + fdb09a260dead1e1169f94584edc837349a4f4a5:
2024 Release 0.17.1 (2018-09-14)
2025 + 1d956c707e1c843896ac58a341c335c9c149073d:
2026 Do not fail the build when gcov is not installed
2027 + 2e677fb6b8f309b63558eb13294630a91ee0cd33:
2028 Ignore unrecognized VM options in desugar.sh, such as the JVM 9
2029 flags to silence warnings.
2030```
2031
2032Important changes:
2033
2034 - In the future, Bazel will expand tree artifacts in runfiles, too,
2035 which causes the sandbox to link each file individually into the
2036 sandbox directory, instead of symlinking the entire directory. In
2037 this release, the behavior is not enabled by default yet. Please
2038 try it out via
2039 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
2040 s_tree and let us know if it causes issues. If everything looks
2041 good, this behavior will become the default in a following
2042 release.
2043
Bazel Release Systemfdb09a22018-09-14 12:15:54 +02002044## Release 0.17.1 (2018-09-14)
2045
2046```
2047Baseline: aa118ca818baf722aede0bc48d0a17584fa45b6e
2048
2049Cherry picks:
2050 + 0e0462589528154cb5160411991075a2000b5452:
2051 Update checker framework dataflow and javacutil versions
2052 + 3987300d6651cf0e6e91b395696afac6913a7d66:
2053 Stop using --release in versioned java_toolchains
2054 + 438b2773b8c019afa46be470b90bcf70ede7f2ef:
2055 make_deb: Add new empty line in the end of conffiles file
2056 + 504401791e0a0e7e3263940e9e127f74956e7806:
2057 Properly mark configuration files in the Debian package.
2058 + 9ed9d8ac4347408d15c8fce7c9c07e5c8e658b30:
2059 Add flag
2060 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfil
2061 es_tree.
2062 + 22d761ab42dfb1b131f1facbf490ccdb6c17b89c:
2063 Update protobuf to 3.6.1 -- add new files
2064 + 27303d79c38f2bfa3b64ee7cd7a6ef03a9a87842:
2065 Update protobuf to 3.6.1 -- update references
2066 + ddc97ed6b0367eb443e3e09a28d10e65179616ab:
2067 Update protobuf to 3.6.1 -- remove 3.6.0 sources
2068 + ead1002d3803fdfd4ac68b4b4872076b19d511a2:
2069 Fix protobuf in the WORKSPACE
2070 + 12dcd35ef7a26d690589b0fbefb1f20090cbfe15:
2071 Revert "Update to JDK 10 javac"
2072 + 7eb9ea150fb889a93908d96896db77d5658e5005:
2073 Automated rollback of
2074 https://github.com/bazelbuild/bazel/commit/808ec9ff9b5cec14f23a4b
2075 a106bc5249cacc8c54 and
2076 https://github.com/bazelbuild/bazel/commit/4c9149d558161e7d3e363f
2077 b697f5852bc5742a36 and some manual merging.
2078 + 4566a428c5317d87940aeacfd65f1018340e52b6:
2079 Fix tests on JDK 9 and 10
2080 + 1e9f0aa89dad38eeab0bd40e95e689be2ab6e5e5:
2081 Fix more tests on JDK 9 and 10
2082 + a572c1cbc8c26f625cab6716137e2d57d05cfdf3:
2083 Add ubuntu1804_nojava, ubuntu1804_java9, ubuntu1804_java10 to
2084 postsubmit.
2085 + 29f1de099e4f6f0f50986aaa4374fc5fb7744ee8:
2086 Disable Android shell tests on the "nojava" platform.
2087 + b495eafdc2ab380afe533514b3bcd7d5b30c9935:
2088 Update bazel_toolchains to latest release.
2089 + 9323c57607d37f9c949b60e293b573584906da46:
2090 Windows: fix writing java.log
2091 + 1aba9ac4b4f68b69f2d91e88cfa8e5dcc7cb98c2:
2092 Automated rollback of commit
2093 de22ab0582760dc95f33e217e82a7b822378f625.
2094 + 2579b791c023a78a577e8cb827890139d6fb7534:
2095 Fix toolchain_java9 on --host_javabase=<jdk9> after
2096 7eb9ea150fb889a93908d96896db77d5658e5005
2097 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
2098 Include also ext jars in the bootclasspath jar.
2099```
2100
2101Incompatible changes:
2102
2103 - Loading @bazel_tools//tools/build_defs/repo:git_repositories.bzl
2104 no longer works. Load @bazel_tools//tools/build_defs/repo:git.bzl
2105 instead.
2106 - If the same artifact is generated by two distinct but identical
2107 actions, and a downstream action has both those actions' outputs
2108 in its inputs, the artifact will now appear twice in the
2109 downstream action's inputs. If this causes problems in Skylark
2110 actions, you can use the uniquify=True argument in Args.add_args.
2111 - If the same artifact is generated by two distinct but identical
2112 actions, and a downstream action has both those actions' outputs
2113 in its inputs, the artifact will now appear twice in the
2114 downstream action's inputs. If this causes problems in Skylark
2115 actions, you can use the uniquify=True argument in Args.add_args.
2116 - Labels in C++ rules' linkopts attribute are not expanded anymore
2117 unless they are wrapped, e.g: $(location //foo:bar)
2118 - If the same artifact is generated by two distinct but identical
2119 actions, and a downstream action has both those actions' outputs
2120 in its inputs, the artifact will now appear twice in the
2121 downstream action's inputs. If this causes problems in Skylark
2122 actions, you can use the uniquify=True argument in Args.add_args.
2123 - New bazelrc file list.
2124 - Windows: when BAZEL_SH envvar is not defined and Bazel searches
2125 for a suitable bash.exe, Bazel will no longer look for Git Bash
2126 and no longer recommend installing it as a Bash implementation.
2127 See issue #5751.
2128 - New bazelrc file list.
2129
2130New features:
2131
2132 - The aquery command now supports --output=text.
2133 - Java, runfiles: the Java runfiles library is now in
2134 @bazel_tools//tools/java/runfiles. The old target
2135 (@bazel_tools//tools/runfiles:java-runfiles) is deprecated and
2136 will be removed in Bazel 0.18.0.
2137 - Java, runfiles: the Java runfiles library is now in
2138 @bazel_tools//tools/java/runfiles. The old target
2139 (@bazel_tools//tools/runfiles:java-runfiles) is deprecated and
2140 will be removed in Bazel 0.19.0 (not 0.18.0, as stated earlier).
2141
2142Important changes:
2143
2144 - Allow @ in package names.
2145 - Remove support for java_runtime_suite; use alias() together with
2146 select() instead.
2147 - Python wrapper scripts for MSVC are removed.
2148 - [JavaInfo] Outputs are merged in java_common.merge().
2149 - Faster analysis by improved parallelization.
2150 - --experimental_shortened_obj_file_path is removed.
2151 - Introduce the --remote_cache_proxy flag,
2152 which allows for remote http caching to connect
2153 via a unix domain socket.
2154 - No longer define G3_VERSION_INFO for c++ linkstamp compiles, as
2155 it was a duplicate of G3_TARGET_NAME.
2156 - Added support for Android NDK r17. The default STL is now
2157 `libc++`, and support for targeting `mips`, `mips64` and `ARMv5`
2158 (`armeabi`) has been removed.
2159 - Add aquery command to get analysis time information about the
2160 action graph.
2161 - Fixed compatibility with aar_import when using aapt2. AAPT2 is
2162 now supported for Android app builds without resource shrinking.
2163 To use it, pass the `--android_aapt=aapt2` flag or define
2164 android_binary.aapt_version=aapt2.
2165 - Code coverage is collected for Java binaries invoked from sh_test.
2166 - java_common.compile creates the native headers jar accesible via
2167 JavaInfo.outputs.native_headers.
2168 - Deleting deprecated no-op flag --show_package_location
2169 - The JDK shipped with Bazel was updated to JDK10.
2170 - Rename the startup flag --host_javabase to --server_javabase to
2171 avoid confusion with the build flag --host_javabase
2172 - newly added options --experimental_repository_hash_file and
2173 --experimental_verify_repository_rules allow to verify for
2174 repositories
2175 the directory generated against pre-recorded hashes. See
2176 documentation
2177 for those options.
2178 - Removed the gen_jars output group
2179 - --subcommands can now take a "pretty_print" value
2180 ("--subcommands=pretty_print") to print the
2181 arguments of subcommands as a list for easier reading.
2182 - follow-up to
2183 https://github.com/bazelbuild/bazel/commit/1ac359743176e659e9c7472
2184 645e3142f3c44b9e8
2185 - A rule error is now thrown if a Skylark rule implementation
2186 function returns multiple providers of the same type.
2187 - When using Bazel's remote execution feature and Bazel has to
2188 fallback to local execution for an action, Bazel used
2189 non-sandboxed
2190 local execution until now. From this release on, you can use the
2191 new
2192 flag --remote_local_fallback_strategy=<strategy> to tell Bazel
2193 which
2194 strategy to use in that case.
2195 - Execution Log Parser can now, when printing it out, filter the
2196 log by runner type
2197 - A rule error is now thrown if a Skylark rule implementation
2198 function returns multiple providers of the same type.
2199 - Removed the gen_jars output group
2200 - Removed the gen_jars output group
2201 - Set --defer_param_files to default to true.
2202 - Sort attribute lists in proto-form query output to fix
2203 non-deterministic genquery output.
2204 - Replace 0/1 with False/True for testonly attribute
2205 - bazel now supports a .bazelignore file specifying
2206 directories to be ignored; however, these directories still
2207 have to be well founded and, in particular, may not contain
2208 symlink cycles.
2209 - Add more detailed reporting of the differences between startup
2210 options.
2211 - update data binding to 3.2.0
2212 - For Android incremental dexing actions, Bazel now persists its
2213 DexBuilder process across individual actions. From our
2214 benchmarks, this results in a 1.2x speedup for clean local builds.
2215 - The standard `xcode_VERSION` feature now always uses exactly two
2216 components in the version, even if you specify `--xcode_version`
2217 with
2218 more or fewer than two.
2219 - A rule error will be thrown if a Skylark rule implementation
2220 function returns multiple providers of the same type. Try the
2221 `--incompatible_disallow_conflicting_providers` flag to ensure
2222 your code is forward-compatible.
2223 - Removed notion of FULLY_STATIC linking mode from C++ rules.
2224 - In documentation, we've renamed Skylark into Starlark.
2225 - Execution Log Parser can now, when printing it out, reorder the
2226 actions for easier text diffs
2227 - Linkstamps are no longer recompiled after server restart.
2228 - Use VanillaJavaBuilder and disable header compilation in
2229 toolchain_hostjdk8. The default toolchain will soon drop
2230 compatibility with JDK 8. Using a JDK 8 host_javabase
2231 will only be supported when using 'VanillaJavaBuilder' (which
2232 does not support Error Prone,
2233 Strict Java Deps, or reduced classpaths) and with header
2234 compilation disabled.
2235 - In the future, Bazel will expand tree artifacts in runfiles, too,
2236 which causes the sandbox to link each file individually into the
2237 sandbox directory, instead of symlinking the entire directory. In
2238 this release, the behavior is not enabled by default yet. Please
2239 try it out via
2240 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
2241 s_tree and let us know if it causes issues. If everything looks
2242 good, this behavior will become the default in a following
2243 release.
2244
Bazel Release System1bd58832018-08-13 15:41:26 +02002245## Release 0.16.1 (2018-08-13)
2246
2247```
2248Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5
2249
2250Cherry picks:
2251 + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
2252 reduce the size of bazel's embedded jdk
2253 + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
2254 remote: limit number of open tcp connections by default. Fixes
2255 #5491
2256 + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
2257 Fix autodetection of linker flags
2258 + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
2259 Fix autodetection of -z linker flags
2260 + 10219659f58622d99034288cf9f491865f818218:
2261 blaze_util_posix.cc: fix order of #define
2262 + ab1f269017171223932e0da9bb539e8a17dd99ed:
2263 blaze_util_freebsd.cc: include path.h explicitly
2264 + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
2265 openjdk: update macOS openjdk image. Fixes #5532
2266 + f45c22407e6b00fcba706eb62141cb9036bd38d7:
2267 Set the start time of binary and JSON profiles to zero correctly.
2268 + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
2269 remote: fix race on download error. Fixes #5047
2270 + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
2271 jdk: use parallel old gc and disable compact strings
2272 + 6bd0bdf5140525cb33dc2db068b210261d9df271:
2273 Add objc-fully-link to the list of actions that require the
2274 apple_env feature. This fixes apple_static_library functionality.
2275 + f330439fb970cfa17c70fc59c1458bb1c31c9522:
2276 Add the action_names_test_files target to the OSS version of
2277 tools/buils_defs/cc/BUILD.
2278 + d215b64362c4ede61c8ba87b5f3f57bce4785d15:
2279 Fix StackOverflowError on Windows. Fixes #5730
2280 + 366da4cf27b7f957ef39f89206db77fa2ac289df:
2281 In java_rules_skylark depend on the javabase through
2282 //tools/jdk:current_java_runtime
2283 + 30c601dc13d9e1b40a57434c022c888c7578cc56:
2284 Don't use @local_jdk for jni headers
2285 + c56699db5f9173739ba3ac55aa9fa69b6457a99b:
2286 'DumpPlatformClasspath' now dumps the current JDK's default
2287 platform classpath
2288```
2289
2290This release is a patch release that contains fixes for several serious
2291regressions that were found after the release of Bazel 0.16.0.
2292
2293In particular this release resolves the following issues:
2294
2295 - Bazel crashes with a StackOverflowError on Windows (See #5730)
2296 - Bazel requires a locally installed JDK and does not fall back
2297 to the embedded JDK (See #5744)
2298 - Bazel fails to build for Homebrew on macOS El Capitan (See #5777)
2299 - A regression in apple_static_library (See #5683)
2300
2301Please watch our blog for a more detailed release announcement.
2302
Bazel Release Systemb292ad12018-07-31 12:55:37 -04002303## Release 0.16.0 (2018-07-31)
Bazel Release System97564f62018-07-17 14:19:41 +02002304
2305```
Bazel Release Systemb292ad12018-07-31 12:55:37 -04002306Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5
Bazel Release System97564f62018-07-17 14:19:41 +02002307
2308Cherry picks:
Bazel Release Systemb292ad12018-07-31 12:55:37 -04002309 + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
2310 reduce the size of bazel's embedded jdk
2311 + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
2312 remote: limit number of open tcp connections by default. Fixes
2313 #5491
Bazel Release System97564f62018-07-17 14:19:41 +02002314 + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
2315 Fix autodetection of linker flags
2316 + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
2317 Fix autodetection of -z linker flags
Bazel Release Systemb292ad12018-07-31 12:55:37 -04002318 + 10219659f58622d99034288cf9f491865f818218:
2319 blaze_util_posix.cc: fix order of #define
2320 + ab1f269017171223932e0da9bb539e8a17dd99ed:
2321 blaze_util_freebsd.cc: include path.h explicitly
2322 + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
2323 openjdk: update macOS openjdk image. Fixes #5532
2324 + f45c22407e6b00fcba706eb62141cb9036bd38d7:
2325 Set the start time of binary and JSON profiles to zero correctly.
2326 + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
2327 remote: fix race on download error. Fixes #5047
2328 + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
2329 jdk: use parallel old gc and disable compact strings
Bazel Release System97564f62018-07-17 14:19:41 +02002330```
2331
Bazel Release Systemb292ad12018-07-31 12:55:37 -04002332Incompatible changes:
2333
2334 - The $(ANDROID_CPU) Make variable is not available anymore. Use
2335 $(TARGET_CPU) after an Android configuration transition instead.
2336 - The $(JAVA_TRANSLATIONS) Make variable is not supported anymore.
2337 - Skylark structs (using struct()) may no longer have to_json and
2338 to_proto overridden.
2339 - The mobile-install --skylark_incremental_res flag is no longer
2340 available, use the --skylark flag instead.
2341
2342New features:
2343
2344 - android_local_test now takes advantage of Robolectric's binary
2345 resource processing which allows for faster tests.
2346 - Allow @ in package names.
2347
Bazel Release System97564f62018-07-17 14:19:41 +02002348Important changes:
2349
Bazel Release Systemb292ad12018-07-31 12:55:37 -04002350 - Option --glibc is removed, toolchain selection relies solely on
2351 --cpu and --compiler options.
2352 - Build support for enabling cross binary FDO optimization.
2353 - The --distdir option is no longer experimental. This
2354 option allows to specify additional directories to look for
2355 files before trying to fetch them from the network. Files from
2356 any of the distdirs are only used if a checksum for the file
2357 is specified and both, the filename and the checksum, match.
2358 - Java coverage works now with multiple jobs.
2359 - Flip default value of --experimental_shortened_obj_file_path to
2360 true, Bazel now generates short object file path by default.
2361 - New rules for importing Android dependencies:
2362 `aar_import_external` and `aar_maven_import_external`.
2363 `aar_import_external` enables specifying external AAR
2364 dependencies using a list of HTTP URLs for the artifact.
2365 `aar_maven_import_external` enables specifying external AAR
2366 dependencies using the artifact coordinate and a list of server
2367 URLs.
2368 - The BAZEL_JAVAC_OPTS environment variable allows arguments, e.g.,
2369 "-J-Xmx2g", may be passed to the javac compiler during bootstrap
2370 build. This is helpful if your system chooses too small of a max
2371 heap size for the Java compiler during the bootstrap build.
2372 - --noexpand_configs_in_place is deprecated.
2373 - A tool to parse the Bazel execution log.
2374 - Support for LIPO has been fully removed.
2375 - Remove support for --discard_actions_after_execution.
2376 - Add --materialize_param_files flag to write parameter files even
2377 when actions are executed remotely.
2378 - Windows default system bazelrc is read from the user's
2379 ProgramData if present.
2380 - --[no]allow_undefined_configs no longer exists, passing undefined
2381 configs is an error.
Bazel Release System1281a022018-07-16 16:13:53 +02002382 - In remote caching we limit the number of open
2383 TCP connections to 100 by default. The number can be adjusted
2384 by specifying the --remote_max_connections flag.
2385
Bazel Release System5013a332018-06-26 14:07:47 +02002386## Release 0.15.0 (2018-06-26)
2387
2388```
2389Baseline: b93ae42e8e693ccbcc387841a17f58259966fa38
2390
2391Cherry picks:
2392 + 4b80f2455e7e49a95f3a4c9102a67a57dad52207:
2393 Add option to enable Docker sandboxing.
2394 + 6b1635279e8b33dc1ac505ac81825e38f8797a14:
2395 Allow disabling the simple blob caches via CLI flag overrides.
2396 + 4ec0a7524913ab2c4641368e3f8c09b347351a08:
2397 Use BUILD.bazel instead of BUILD for external projects
2398```
2399
2400Incompatible changes:
2401
2402 - Bazel now always runs binaries in with "bazel run" in
2403 interactive mode. The "--nodirect_run" command line option is now
2404 a no-op.
2405 - "bazel run --noas_test" is not supported anymore.
2406 - Indentation on the first line of a file was previously ignored.
2407 This is now fixed.
2408
2409New features:
2410
2411 - C++,runfiles: to access data-dependencies (runfiles) in C++
2412 programs, use the runfiles library built into Bazel. For usage
2413 info, see
2414 https://github.com/bazelbuild/bazel/blob/master/tools/cpp/runfiles
2415 /runfiles.h
2416
2417Important changes:
2418
2419 - Bazel now allows almost all 7-bit ASCII characters in labels.
2420 - Remove vestigial java_plugin.data attribute
2421 - Bazel supports including select Java 8 APIs into Android apps
2422 targeting pre-Nougat Android devices with
2423 --experimental_desugar_java8_libs
2424 - Flag `--incompatible_disable_glob_tracking` is removed.
2425 - SkyQuery's rbuildfiles now returns targets corresponding to
2426 broken packages.
2427 - Introduce build support for providing cache prefetch hints.
2428 - Update the skylark DefaultInfo documentation to spell out
2429 runfiles, data_runfiles and default_runfiles
2430 - An internal action for symlinking runfiles will use Command
2431 instead of a Spawns. This should have no functional chages; the
2432 only user visible consequence should be that the internal action
2433 is no longer be included in statistics when calculating processes
2434 count.
2435 - --batch is deprecated
2436 - execution strategies line no longer handles differently the case
2437 where all processes have the same strategy.
2438 - The --experimental_remote_spawn_cache flag is now enabled by
2439 default, and remote caching no longer needs --*_strategy=remote
2440 flags (it will fail if they are specified).
2441 - android_binary.aapt_version='aapt2' now supports en_XA and ar_XB
2442 - Added --apple_enable_auto_dsym_dbg flag.
2443 - non_propagated_deps has been removed from objc_library and
2444 apple_binary.
2445 - For Android projects, Bazel now supports building fonts as
2446 resources. See
2447 https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml
2448 for more information on the feature.
2449 - With --incompatible_no_support_tools_in_action_inputs enabled, Skylark
2450 action inputs are no longer scanned for tools. Move any such
2451 inputs to the newly introduced 'tools' attribute.
2452
Bazel Release System513bbf52018-06-08 14:15:20 +02002453## Release 0.14.1 (2018-06-08)
2454
2455```
2456Baseline: 5c3f5c9be7fa40d4fb3c35756891fab8483ca406
2457
2458Cherry picks:
2459 + f96f037f8f77335dc444844abcc31a372a3e1849:
2460 Windows, Java launcher: Support jar files under different drives
2461 + ff8162d01409db34893de98bd840a51c5f13e257:
2462 sh_configure.bzl: FreeBSD is also a known platform
2463 + 7092ed324137f03fcd34856bdb0595a1bdec3069:
2464 Remove unneeded exec_compatible_with from local_sh_toolchain
2465 + 57bc201346e61c62a921c1cbf32ad24f185c10c9:
2466 Do not autodetect C++ toolchain when
2467 BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 is present
2468 + 35a78c09cf2fbfc3de9c124d2142e3d72aac4348:
2469 remote: recursively delete incomplete downloaded output
2470 directory.
2471 + 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502:
2472 distfile: pack the archives needed later in the build
2473 + 27487c77387e457df18be3b6833697096d074eab:
2474 Slightly refactor SpawnAction to improve env handling
2475 + 1b333a2c37add9d04fe5bc5258ee4f73c93115e2:
2476 Fix Cpp{Compile,Link}Action environment and cache key computation
2477 + 3da8929963e9c70dff5d8859d6e988e6e7f4f9d7:
2478 Make SymlinkTreeAction properly use the configuration's
2479 environment
2480 + eca7b81cf8cc51e1fe56e5ed7d4ad5cd1668a17a:
2481 Add a missing dependency from checker framework dataflow to
2482 javacutils
2483 + 10a4de954c2061258d8222961fc3bd39516db49d:
2484 Release 0.14.0 (2018-06-01)
2485 + 4b80f2455e7e49a95f3a4c9102a67a57dad52207:
2486 Add option to enable Docker sandboxing.
2487 + 6b1635279e8b33dc1ac505ac81825e38f8797a14:
2488 Allow disabling the simple blob caches via CLI flag overrides.
2489```
2490
2491Bug fix for [#5336](https://github.com/bazelbuild/bazel/issues/5336)
2492Bug fix fot [#5308](https://github.com/bazelbuild/bazel/issues/5308)
2493
Bazel Release System3a592f62018-06-01 15:04:31 +02002494## Release 0.14.0 (2018-06-01)
2495
2496```
2497Baseline: 5c3f5c9be7fa40d4fb3c35756891fab8483ca406
2498
2499Cherry picks:
2500 + f96f037f8f77335dc444844abcc31a372a3e1849:
2501 Windows, Java launcher: Support jar files under different drives
2502 + ff8162d01409db34893de98bd840a51c5f13e257:
2503 sh_configure.bzl: FreeBSD is also a known platform
2504 + 7092ed324137f03fcd34856bdb0595a1bdec3069:
2505 Remove unneeded exec_compatible_with from local_sh_toolchain
2506 + 57bc201346e61c62a921c1cbf32ad24f185c10c9:
2507 Do not autodetect C++ toolchain when
2508 BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 is present
2509 + 35a78c09cf2fbfc3de9c124d2142e3d72aac4348:
2510 remote: recursively delete incomplete downloaded output
2511 directory.
2512 + 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502:
2513 distfile: pack the archives needed later in the build
2514 + 27487c77387e457df18be3b6833697096d074eab:
2515 Slightly refactor SpawnAction to improve env handling
2516 + 1b333a2c37add9d04fe5bc5258ee4f73c93115e2:
2517 Fix Cpp{Compile,Link}Action environment and cache key computation
2518 + 3da8929963e9c70dff5d8859d6e988e6e7f4f9d7:
2519 Make SymlinkTreeAction properly use the configuration's
2520 environment
2521 + eca7b81cf8cc51e1fe56e5ed7d4ad5cd1668a17a:
2522 Add a missing dependency from checker framework dataflow to
2523 javacutils
2524```
2525
2526Incompatible changes:
2527
2528 - Add --incompatible_disallow_legacy_javainfo flag.
2529 - Added flag --incompatible_disallow_old_style_args_add to help
2530 migrate from args.add() to args.add_all() / args.add_joined()
2531 where appropriate.
2532
2533New features:
2534
2535 - Bash,runfiles: use the new platform-independent library in
2536 `@bazel_tools//tools/bash/runfiles` to access runfiles
2537 (data-dependencies). See
2538 https://github.com/bazelbuild/bazel/blob/master/tools/bash/runfile
2539 s/runfiles.bash for usage information.
2540 - TemplateVariableInfo can now be constructed from Skylark.
2541 - The java_host_runtime_alias rule is now implemented in Java.
2542
2543Important changes:
2544
2545 - Flip default value of --experimental_shortened_obj_file_path to
2546 true, Bazel now generates short object file path by default.
2547 - Introduce fdo_profile rule that allows architecture-sensitive
2548 specification of fdo profiles.
2549 - canonicalize-flags no longer reorders the flags
2550 - CppRules: optional_compiler_flag was removed from CROSSTOOL, use
2551 features instead.
2552 - Labels of the form ////foo are disallowed.
2553 - The `/` operator is deprecated in favor of `//` (floor integer
2554 division).
2555 Try the `--incompatible_disallow_slash_operator` flag to ensure
2556 your code
2557 is forward-compatible.
2558 - Flip default value of --experimental_shortened_obj_file_path to
2559 true, Bazel now generates short object file path by default.
2560 - Exposed "mnemonic" and "env" fields on skylark "Action" objects.
2561 - Removed flag `--incompatible_disallow_toplevel_if_statement`.
2562 - Remove vestigial 'deps' and 'data' attributes from
2563 proto_lang_toolchain
2564 - Args objects (ctx.actions.args()) have new methods add_all() and
2565 add_joined() for building command lines using depsets.
2566 - `FileType` is deprecated and will be removed soon.
2567 Try the `--incompatible_disallow_filetype` flag to ensure your
2568 code
2569 is forward-compatible.
2570 - Introduce absolute_path_profile attribute that allows fdo_profile
2571 to accept absolute paths.
2572 - Support two-arg overloads for ctx.actions.args (eg.
2573 args.add("--foo", val))
2574 - Introduce 'tools' attribute to ctx.actions.run.
2575 - Fixed error message for proguard_apply_dictionary.
2576 - "bazel run" now lets one run interactive binaries. The
2577 BUILD_WORKSPACE_DIRECTORY and BUILD_WORKING_DIRECTORY environment
2578 variables indicate the working directory and the workspace root
2579 of the Bazel invocation. Tests are provided with an approximation
2580 of the official test environment.
2581 - repository rules are no longer restricted to return None.
2582 - Add --high_priority_workers flag.
2583 - CppRules: Feature configuration can be created from Skylark
2584 - Adds new-style JavaInfo provider constructor.
2585 - Make java_common.compile now uses java_toolchain javacopts by
2586 default; explicitly retrieving them using
2587 java_common.default_javac_opts is unnecessary.
2588 - CppRules: C++ command lines and env variables for C++ actions can
2589 be retrieved from feature configuration.
2590 - Skylark rule definitions may advertise providers that targets of
2591 the rule must propagate.
2592 - Bazel now supports running actions inside Docker containers.
2593 To use this feature, run "bazel build --spawn_strategy=docker
2594 --experimental_docker_image=myimage:latest".
2595 - Remote execution works for Windows binaries with launchers.
2596 - Fixing start/end lib expansion for linking. There were many cases
2597 where archive files were still being used with toolchains that
2598 support start/end lib. This change consolidates the places that
2599 make that decision so they can be more consistent.
2600 - Add support for reporting an error if
2601 android_test.binary_under_test contains incompatible versions of
2602 deps
2603 - We replaced the --experimental_local_disk_cache and
2604 --experimental_local_disk_cache_path flags into a single
2605 --disk_cache flag. Additionally, Bazel now tries to create the disk cache
2606 directory if it doesn't exist.
2607 - Save Blaze memory by not storing LinkerInput objects in
2608 LinkCommandLine
2609 - In the JavaInfo created by java_common.create_provider now
2610 includes both direct and transitive arguments in
2611 transitive_compile_time_jars and transitive_runtime_jars
2612 - Allow --worker_max_instances to take MnemonicName=value to
2613 specify max for each worker.
2614 - Allow java_toolchain.header_compiler to be an arbitrary executable
2615
Bazel Release System24c68ff2018-05-23 10:59:57 +02002616## Release 0.13.1 (2018-05-23)
2617
2618```
2619Baseline: fdee70e6e39b74bfd9144b1e350d2d8806386e05
2620
2621Cherry picks:
2622 + f083e7623cd03e20ed216117c5ea8c8b4ec61948:
2623 windows: GetOutputRoot() returns GetHomeDir()
2624 + fa36d2f48965b127e8fd397348d16e991135bfb6:
2625 Automated rollback of commit
2626 4465dae23de989f1452e93d0a88ac2a289103dd9.
2627 + 4abd2babcc50900afd0271bf30dc64055f34e100:
2628 Add error message on empty public resources
2629 + 2c957575ff24c183d48ade4345a79ffa5bec3724:
2630 test-setup: remove leading "./" from test name
2631 + e6eaf251acb3b7054c8c5ced58a49c054b5f23b1:
2632 Sort entries by segment when building a parent node to prevent
2633 unordered directory structures.
2634```
2635
2636Important changes:
2637
2638 - Remote Execution: Fixes a regression that produces directories with unsorted file/directory lists
2639
Bazel Release System1d9c6062018-04-30 10:45:38 +02002640## Release 0.13.0 (2018-04-30)
2641
2642```
2643Baseline: fdee70e6e39b74bfd9144b1e350d2d8806386e05
2644
2645Cherry picks:
2646 + f083e7623cd03e20ed216117c5ea8c8b4ec61948:
2647 windows: GetOutputRoot() returns GetHomeDir()
2648 + fa36d2f48965b127e8fd397348d16e991135bfb6:
2649 Automated rollback of commit
2650 4465dae23de989f1452e93d0a88ac2a289103dd9.
2651 + 4abd2babcc50900afd0271bf30dc64055f34e100:
2652 Add error message on empty public resources
2653 + 2c957575ff24c183d48ade4345a79ffa5bec3724:
2654 test-setup: remove leading "./" from test name
2655```
2656
2657Incompatible changes:
2658
2659 - Remove //tools/defaults:android_jar. Use
2660 @bazel_tools//tools/android:android_jar instead.
2661 - The flag --incompatible_show_all_print_messages is removed.
2662 Messages generated by `print` statements from any package will be
2663 displayed as
2664 DEBUG messages.
2665 - The --incompatible_disallow_uncalled_set_constructor flag is no
2666 longer available, the `set` constructor` is completely removed
2667 from Skylark.
2668 Use `depset` instead.
2669 - Variables PACKAGE_NAME and REPOSITORY_NAME are deprecated in
2670 favor of
2671 functions `package_name()` and `repository_name()`.
2672
2673 https://docs.bazel.build/versions/master/skylark/lib/native.html#p
2674 ackage_name
2675 - BUILD_TIMESTAMP now contains seconds (and not milliseconds) since
2676 the epoch.
2677
2678New features:
2679
2680 - Strings have a new .elems() method, that provides an iterator on
2681 the characters of the string.
2682 - Now you can access three functions in windows_cc_configure.bzl by:
2683 load("@bazel_tools/tools/cpp:windows_cc_configure.bzl",
2684 "<function_name>")
2685
2686Important changes:
2687
2688 - CppRules: Unified action_configs for static libraries
2689 - Remove support for blaze dump --vfs. It is no longer meaningful.
2690 - Enable dependency checking for aar_import targets.
2691 - internal_bootstrap_hack has been deprecated and removed.
2692 - Properly handle tree artifacts on the link command line coming
2693 from a cc_library dependency.
2694 - Allow C++ features to make proto_library emit smaller C++ code
2695 - The 'j2objc' configuration fragment is exposed to Skylark.
2696 - Remove the default content of the global bazelrc.
2697 - In int() function, do not auto-detect base if input starts with
2698 '0'.
2699 - Users can now pass --experimental_shortened_obj_file_path=true to
2700 have a shorter object file path, the object file paths (and all
2701 other related paths) will be constructed as following:
2702 If there's no two or more source files with the same base name:
2703
2704 <bazel-bin>/<target_package_path>/_objs/<target_name>/<source_base
2705 _name>.<extension>
2706 otherwise:
2707
2708 <bazel-bin>/<target_package_path>/_objs/<target_name>/N/<source_ba
2709 se_name>.<extension>
2710 N = the file?s order among the source files with the same
2711 basename, starts from 0.
2712 - Move (c/cxx)opts from legacy_compile_flags to user_compile_flags
2713 - CppRules: Remove optional_*_flag fields from CROSSTOOL, they are
2714 not
2715 used, and could be expressed using features.
2716 - Introduce --incompatible_disable_objc_provider_resources to turn
2717 off all resource-related fields of the Objc provider.
2718 - Removed the statement of "What does Bazel support?" as it's
2719 limiting/misleading. Added supported host OSes to
2720 "multi-platform" paragraph.
2721 - android_library AAR output now contains proguard.txt
2722 - Bazel now displays information about remote cache hits and
2723 execution strategies used in its UI after every build and test,
2724 and adds a corresponding line "process stats" to BuildToolLogs in
2725 BEP.
2726 - Print correct build result for builds with --aspects flag.
2727 - android_binary.manifest_merger is no longer supported.
2728
Bazel Release System546976c2018-04-11 17:34:19 +02002729## Release 0.12.0 (2018-04-11)
2730
2731```
2732Baseline: b33e5afa313322a7048044c44d854cbb666b988e
2733
2734Cherry picks:
2735 + 369409995bd75eeb0683fd24f7585d2a90320796:
2736 Automated rollback of commit
2737 c2b332b45e6ea41a14ecbd3c5f30782bcdeec301.
2738 + dbf779869751cc893ba240402d352c6e70be2978:
2739 Emit SJD errors even if we don't know the label of a dependency
2740 + 4c3098cfa6f00f90c7530b6f40d3e93062931c1d:
2741 Android tools: remove mtime-modifications
2742 + a1068c44a700ec2cff84cbd12592e9bfea25d754:
2743 NDK cc_toolchains: include bundled runtime libraries in
2744 cc_toolchain.all_files
2745 + b1be5816ec1bf8e1172c1bed4f29b4e6c6bb7202:
2746 runfiles,Python: remove library from @bazel_tools
2747 + 0a4622012ff796429220fe57d3217f262cc208a8:
2748 Fix visibility of def_parser for remote builds
2749 + 3c5373c50c7c492842f8a468906eda2c0bc90787:
2750 Remove visibility attribute from
2751 //third_party/def_parser:def_parser
2752 + f54d7e5293cc40ce3507a9adef530e46ab817585:
2753 Enable bulk writes in the HttpBlobStore
2754 + 04ce86e8ba96630f89a436167b7f3a195c5e50e7:
2755 remote/http: properly complete user promise
2756```
2757
2758Incompatible changes:
2759
2760 - The order of dict-valued attributes is now the order in the BUILD
2761 file (or in the Skylark dict they were created from) and not
2762 lexicographically sorted.
2763
2764New features:
2765
2766 - The new "--direct_run" flag on "blaze run" lets one run
2767 interactive binaries.
2768 - "blaze run --direct_run" with tests now gives the test an
2769 approximation of the official test environment.
2770 - "blaze run --direct_run" now exports the
2771 BUILD_{WORKSPACE,WORKING}_DIRECTORY variables to tell the binary
2772 about the cwd of the client and the workspace root.
2773 - New Android device test rule: android_instrumentation_test.
2774 - Add option to dump the action graph to a file: 'bazel dump
2775 --action_graph=/path/to/file'.
2776 - Pass `tags` from `java_import_external` rule to the generated
2777 `java_import` rule.
2778 - blaze query: use --proto:output_rule_attrs to filter for given
2779 attributes
2780 - Added Android NDK r15 support, including compatibility with
2781 Unified Headers.
2782 - Adds --ltobackendopt and --per_file_ltobackendopt for passing
2783 options to ThinLTO LTO backend compile actions only.
2784
2785Important changes:
2786
2787 - Fix how libraries to link is specified to archiver actions.
2788 - Fix how libraries_to_link are expanded in the archiver command
2789 line.
2790 - stop using --no-locals in android coverage builds
2791 - apple_binary can now generate dSYM outputs with the
2792 --apple_generate_dsym=true flag.
2793 - Fix FDO_STAMP_MACRO to only be set when fdoBuildStamp is not null.
2794 - Improved clarity of warning message for unsupported NDK revisions.
2795 - Add lint check for discouraging glob(["**/*.java"])
2796 - unifly lint glob(["**/*.java"]) message
2797 - Removed flags `--incompatible_checked_arithmetic`,
2798 `--incompatible_dict_literal_has_no_duplicates`,
2799 `--incompatible_disallow_keyword_only_args`, and `
2800 --incompatible_comprehension_variables_do_not_leak`.
2801 - Add "proto_source_root" flag to proto_library.
2802 - Updated default android_cpu value to armeabi-v7a
2803 - In skylark, print(target) now shows the provider keys of a
2804 target, as debug information.
2805 - The native http_archive rule is deprecated. Use the
2806 Skylark version available via
2807 load("@bazel_tools//tools/build_defs/repo:http.bzl",
2808 "http_archive")
2809 instead.
2810 - flaky_test_attempts supports the regex@attempts syntax, like
2811 runs_per_test.
2812 - Fixed include paths for NDK r13+ llvm-libc++ headers to
2813 `ndk/sources/cxx-stl/llvm-libc++/include` and
2814 `ndk/sources/cxx-stl/llvm-libc++abi/include`
2815 - --config flags now expand in place by default.
2816 - aar_import now sets java.transitive_exports.
2817 - repository_cache is no longer experimental and enabled by default.
2818 - BAZEL_LINKOPTS is now consulted when autoconfiguring c++ toolchain
2819 - The native git_repository rule is deprecated. Use the
2820 Skylark version available via
2821 load("@bazel_tools//tools/build_defs/repo:git.bzl",
2822 "git_repository")
2823 instead.
2824 - Removed flag `--incompatible_load_argument_is_label`.
2825 - CcToolchain: Introduced action_config for
2826 "c++-link-transitive-dynamic-library"
2827 - Use bazel dump --action_graph=/path/to/action.proto
2828 --action_graph:targets://foo:bar,//foo:foo to filter for certain
2829 targets in the action graph dump.
2830 - Added Android NDK r16 support. Use --cxxopt='-std=c++11` compile
2831 with the C++11 standard, and
2832 `--android_crosstool_top=@androidndk//:toolchain-libcpp` to use
2833 the `libc++` STL.
2834 - Add a --build_event_publish_all_actions flag to allow all actions
2835 to be published via the BEP.
2836 - C++: Introduced --experimental_drop_fully_static_linking_mode
2837 - Removed cc_inc_library, please use cc_library instead
2838 - CppRules: cc_binary/cc_test now enable 'static_linking_mode' or
2839 'dynamic_linking_mode'.
2840
Bazel Release Systemc86d6a02018-03-06 19:32:18 +01002841## Release 0.11.1 (2018-03-06)
2842
2843```
2844Baseline: 00d781ae78a8bd51d3c61b621d79f0bb095aff9e
2845
2846Cherry picks:
2847 + ea2d4c475febdbd59ca0e0ba46adc7be759f84e0:
2848 Update stub_finds_runfiles_test to be a real sh_test.
2849 + d855d8133f4efb73ebd5e82c54a9afb4c7565d46:
2850 java,runfiles: fix bugs in runfiles library
2851 + 56aeb04a064218b845ecc193d530c341c6ec854d:
2852 Fixing #4585: broken re-execution of orphaned actions.
2853 + cf3f81aef7c32019d70cbce218a64a03276268f0:
2854 remote: Add support for HTTP Basic Auth
2855 + 28bd997c1c8793973f63dcae4c22bbae49e7d8b7:
2856 Fixing test-setup.sh occasionally missing stdout/stderr, on
2857 systems where "tail --pid" is supported.
2858 + 109e4b4dc9e786e3a2d8d7cb245d18320dbe9216:
2859 Automated rollback of commit
2860 7e6837cc1d1aa4259f5c27ba3606b277b5f6c3e9.
2861 + b3d52b1b6d46a0f23cc91125c1d522e9d13433b4:
2862 Fix incorrect include directories when -no-canonical-prefixes is
2863 passed to clang
2864 + 1001141f0674ff4b611814edcb00a5183680ef4a:
2865 Roll forward of
2866 https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba1
2867 b52bcac5a3ff942029
2868 (https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba
2869 1b52bcac5a3ff942029). Fix #4625 by running the test process in a
2870 sub-shell.
2871 + fc98b44b6181fa4c3efd8613d887970629468d74:
2872 android,windows: bugfix in aar_resources_extractor
2873```
2874
2875Important changes:
2876
2877 - Fixes regression building Android rules on Windows.
2878
Bazel Release System09077a32018-02-23 11:09:18 -05002879## Release 0.11.0 (2018-02-23)
2880
2881```
2882Baseline: 00d781ae78a8bd51d3c61b621d79f0bb095aff9e
2883
2884Cherry picks:
2885 + ea2d4c475febdbd59ca0e0ba46adc7be759f84e0:
2886 Update stub_finds_runfiles_test to be a real sh_test.
2887 + d855d8133f4efb73ebd5e82c54a9afb4c7565d46:
2888 java,runfiles: fix bugs in runfiles library
2889 + 56aeb04a064218b845ecc193d530c341c6ec854d:
2890 Fixing #4585: broken re-execution of orphaned actions.
2891 + cf3f81aef7c32019d70cbce218a64a03276268f0:
2892 remote: Add support for HTTP Basic Auth
2893 + 28bd997c1c8793973f63dcae4c22bbae49e7d8b7:
2894 Fixing test-setup.sh occasionally missing stdout/stderr, on
2895 systems where "tail --pid" is supported.
2896 + 109e4b4dc9e786e3a2d8d7cb245d18320dbe9216:
2897 Automated rollback of commit
2898 7e6837cc1d1aa4259f5c27ba3606b277b5f6c3e9.
2899 + b3d52b1b6d46a0f23cc91125c1d522e9d13433b4:
2900 Fix incorrect include directories when -no-canonical-prefixes is
2901 passed to clang
2902 + 3904ac33a983fd8faebba1b52bcac5a3ff942029:
2903 Automated rollback of commit
2904 28bd997c1c8793973f63dcae4c22bbae49e7d8b7.
2905 + 1001141f0674ff4b611814edcb00a5183680ef4a:
2906 Roll forward of
2907 https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba1
2908 b52bcac5a3ff942029
2909 (https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba
2910 1b52bcac5a3ff942029). Fix #4625 by running the test process in a
2911 sub-shell.
2912```
2913
2914Incompatible changes:
2915
2916 - ctx.fragments.jvm is not available anymore.
2917
2918New features:
2919
2920 - java,runfiles: You can now depend on
2921 `@bazel_tools//tools/runfiles:java-runfiles` to get a
2922 platform-independent runfiles library for Java. See JavaDoc of
2923 https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles
2924 /java/com/google/devtools/build/runfiles/Runfiles.java for usage
2925 information.
2926
2927Important changes:
2928
2929 - The --[no]experimental_disable_jvm command line option is not
2930 supported anymore.
2931 - Allow expanding TreeArtifacts for libraries_to_link
2932 - Proguarded Android binaries can be built with incremental dexing.
2933 - aar_import now supports assets.
2934 - Crash in OutputJar::Close has been fixed
2935 - generator_* attributes are nonconfigurable.
2936 - Introduces --[no]keep_state_after_build
2937 - Add support for merged object files needed for -flto-unit.
2938 - Fix how libraries to link is specified to archiver actions.
2939 - Replace //tools/defaults:android_jar with
2940 @bazel_tools//tools/android:android_jar.
2941 //tools/defaults:android_jar will be removed in a future release.
2942 - java_common.compile supports neverlink
2943 - Resolved an issue where a failure in the remote cache would not
2944 trigger local re-execution of an action.
2945
Bazel Release Systeme1148362018-02-15 10:02:05 +01002946## Release 0.10.1 (2018-02-15)
2947
2948```
2949Baseline: 22c2f9a7722e8c8b7fdf8f5d30a40f1c4118e993
2950
2951Cherry picks:
2952 + f6ca78808722c8c119affdb33400838ee92d44b6:
2953 isable_presubmit
2954 + 65c13dd5a4c1b4b5a072f7680b8f1cf3c5079b52:
2955 Fix StreamResourceLeak error
2956 + e5436745e1732f5e43fc55f0deb5b19e23ce8524:
2957 windows: fix --symlink_prefix=/ throwing exception
2958 + 22ccdd1ebe1dc495e05d894a3325f6b05e681fb3:
2959 Fix turbine command lines with empty javacopts
2960 + 96c654d43eb2906177325cbc2fc2b1e90dbcc792:
2961 Remove EOL'd Linux flavours, bump CentOS to 6.9.
2962 + f0bec36864f10370cbbda4caa8beac2e0c5ee45b:
2963 Automated rollback of commit
2964 2aeaeba66857c561dd6d63c79a213f1cabc3650d.
2965 + 860af5be10b6bad68144d9d2d34173e86b40268c:
2966 Consolidate Error Prone resource handling
2967 + 2e631c99495f75270d2639542cefb531ec262d67:
2968 sandbox: properly add `tmpDir` to `writablePaths`
2969 + 5bfa5844d0d16d71e88002956e88402bfec88ef7:
2970 actions,temp: respect TMPDIR envvar
2971 + 6cc2ad8676d1ae0542b351a07a05ddbe5efac165:
2972 sandbox: add env[TMPDIR] instead of `tmpDir`
2973 + 40c757f4ab90214f95935672532a495c4551490a:
2974 Change git clone to pull all history, so all needed commits can
2975 be accessed.
2976 + 56aeb04a064218b845ecc193d530c341c6ec854d:
2977 Fixing #4585: broken re-execution of orphaned actions.
2978```
2979
2980Important changes:
2981
2982 - Resolved an issue where a failure in the remote cache would not
2983 trigger local re-execution of an action.
2984
Bazel Release System5bd27482018-02-01 09:43:33 +01002985## Release 0.10.0 (2018-02-01)
2986
2987```
2988Baseline: 22c2f9a7722e8c8b7fdf8f5d30a40f1c4118e993
2989
2990Cherry picks:
2991 + f6ca78808722c8c119affdb33400838ee92d44b6:
2992 isable_presubmit
2993 + 65c13dd5a4c1b4b5a072f7680b8f1cf3c5079b52:
2994 Fix StreamResourceLeak error
2995 + e5436745e1732f5e43fc55f0deb5b19e23ce8524:
2996 windows: fix --symlink_prefix=/ throwing exception
2997 + 22ccdd1ebe1dc495e05d894a3325f6b05e681fb3:
2998 Fix turbine command lines with empty javacopts
2999 + 96c654d43eb2906177325cbc2fc2b1e90dbcc792:
3000 Remove EOL'd Linux flavours, bump CentOS to 6.9.
3001 + f0bec36864f10370cbbda4caa8beac2e0c5ee45b:
3002 Automated rollback of commit
3003 2aeaeba66857c561dd6d63c79a213f1cabc3650d.
3004 + 860af5be10b6bad68144d9d2d34173e86b40268c:
3005 Consolidate Error Prone resource handling
3006 + 2e631c99495f75270d2639542cefb531ec262d67:
3007 sandbox: properly add `tmpDir` to `writablePaths`
3008 + 5bfa5844d0d16d71e88002956e88402bfec88ef7:
3009 actions,temp: respect TMPDIR envvar
3010 + 6cc2ad8676d1ae0542b351a07a05ddbe5efac165:
3011 sandbox: add env[TMPDIR] instead of `tmpDir`
3012 + 40c757f4ab90214f95935672532a495c4551490a:
3013 Change git clone to pull all history, so all needed commits can
3014 be accessed.
3015```
3016
3017Incompatible changes:
3018
3019 - In order to access the template variables $(JAVA) and
3020 $(JAVABASE), @bazel_tools//tools/jdk:current_java_runtime needs
3021 to be added to the toolchains= attribute from now on.
3022 - The ctx.middle_man function is not supported anymore.
3023 - The flag --incompatible_list_plus_equals_inplace is removed, its
3024 default behavior is preserved. += on lists now always mutates the
3025 left hand
3026 side.
3027 - --android_sdk no longer supports filegroup targets.
3028 - android_* rules no longer support legacy_native_support attribute.
3029
3030New features:
3031
3032 - query: Add option --noproto:flatten_selects to turn off
3033 flattening of selector lists in proto output.
3034 - New android test rule, android_local_test.
3035
3036Important changes:
3037
3038 - The --remote_rest_cache flag now respects --remote_timeout.
3039 - --experimental_java_coverage is available for testing.
3040 - The deprecated builtin `set` is no longer allowed even from within
3041 unexecuted code in bzl files. It's temporarily possible to use
3042 --incompatible_disallow_uncalled_set_constructor=false if this
3043 change causes
3044 incompatibility issues.
3045 - Linkstamping is now a separate and full-blown CppCompileAction,
3046 it's
3047 no longer a part of linking command.
3048 - Using `+`, `|` or `.union` on depsets is now deprecated. Please
3049 use the new
3050 constructor instead (see
3051 https://docs.bazel.build/versions/master/skylark/depsets.html).
3052 - config_feature_flag's default_value is optional. It is
3053 only an error to have a config_feature_flag with no default_value
3054 if that config_feature_flag has not been set in the configuration
3055 it is being evaluated in.
3056 - --[no]keep_incrementality_data is gone, replaced by the
3057 enum-valued --incremental_state_retention_strategy
3058 - Linkstamping is now a separate and full-blown CppCompileAction,
3059 it's
3060 no longer a part of linking command.
3061 - Added --checkHashMismatch flag to ZipFilterAction. Valid values
3062 are IGNORE, WARN and ERROR. --errorOnHashMismatch is deprecated,
3063 please use this flag instead.
3064 - Set build jobs equivalent to number of logical processors by
3065 default. Should improve build times significantly.
3066 - Added --(no)expand_test_suites flag.
3067 - Rename --keep_incrementality_data to --track_incremental_state
3068 - --remote_rest_cache was renamed to --remote_http_cache. Both
3069 options keep working in this release, but --remote_rest_cache
3070 will be
3071 removed in the next release.
3072 - Aspects-on-aspect see and propagate over aspect attributes.
3073 - --auth_* flags were renamed to --google_* flags. The old names
3074 will continue to work for this release but will be removed in the
3075 next
3076 release.
3077 - Remote Caching and Execution support output directories.
3078 - Remove defunct flags
3079 --experimental_incremental_dexing_for_lite_proto and
3080 --experimental_incremental_dexing_error_on_missed_jars that have
3081 long been enabled by default
3082 - New version of aapt2 and Resources.proto.
3083 - Make PIC and non PIC outputs for C++ compilation with Tree
3084 Artifacts
3085
Bazel Release System7b423cc2017-12-19 10:31:05 +01003086## Release 0.9.0 (2017-12-19)
Bazel Release System3d53cb02017-12-05 15:28:40 +01003087
3088```
Bazel Release System7b423cc2017-12-19 10:31:05 +01003089Baseline: ddd5ac16aeffa6c4693c348f73e7365240b1abc5
Bazel Release System3d53cb02017-12-05 15:28:40 +01003090
3091Cherry picks:
Bazel Release System7b423cc2017-12-19 10:31:05 +01003092 + 2cf560f83922e6df9626ba3ee063c1caf6797548:
3093 Update version of re2
3094 + a2d2615362c65be98629b39ce39754a325ed1c42:
3095 Check for null build file returned from getBuildFileForPackage.
3096 + 68c577afc2fb33b5e66b820bcc9043fed1071456:
3097 Fix some broken targets and failing tests.
3098 + 766ba8adc4487f17ebfc081aeba6f34b18b53d6c:
Bazel Release System3d53cb02017-12-05 15:28:40 +01003099 Automated rollback of commit
Bazel Release System7b423cc2017-12-19 10:31:05 +01003100 337f19cc54e77c45daa1d5f61bf0a8d3daf8268f.
3101 + a22d0e9c14e58b29d81f5a83bdcc6e5fce52eafe:
3102 Fix: uploading artifacts of failed actions to remote cache
3103 stopped working.
3104 + 03964c8ccb20d673add76c7f37245e837c3899b6:
3105 [java_common.compile] Name output source jar relative to the
3106 output jar name
Bazel Release System3d53cb02017-12-05 15:28:40 +01003107```
3108
Bazel Release System7b423cc2017-12-19 10:31:05 +01003109Incompatible changes:
3110
3111 - The deprecated `set` constructor is removed, along with the
3112 migration flag --incompatible_disallow_set_constructor. It is
3113 still temporarily
3114 allowed to refer to `set` from within unexecuted code.
3115 - The flag --incompatible_disallow_set_constructor is no longer
3116 available, the deprecated `set` constructor is not available
3117 anymore.
3118 - The path to the JVM executable is not accessible anymore as
3119 ctx.{fragments,host_fragments}.jvm.java_executable. Use
3120 JavaRuntimeInfo.java_executable_exec_path instead.
3121 - --clean_style is no longer an option.
3122
3123New features:
3124
3125 - Users can use win_def_file attribute to specify a DEF file for
3126 exporting symbols when build a shared library on Windows.
3127 - Add --experimental_android_resource_cycle_shrinking option to
3128 allow for more aggressive code and resource shrinking.
3129
3130Important changes:
3131
3132 - Late-bound attributes are exposed to skylark. This is a new API
3133 (`configuration_field()`) to depend on certain
3134 configuration-defined targets from skylark rules.
3135 - Document interaction between test_suite and target exclusions
3136 - AAR manifest files will come from the processed resource APK if it
3137 exists.
3138 RELNOTES: None for Blaze users.
3139 - Document interaction between test_suite and target exclusions
3140 - --keep_incrementality_data flag allows Bazel servers to be run in
3141 memory-saving non-incremental mode independent of --batch and
3142 --discard_analysis_cache.
3143 - Add deps attribute to Skylark maven_aar and maven_jar workspace
3144 rules.
3145 - Use --expand_configs_in_place as a startup argument to change the
3146 order in which --config expansions are interpreted.
3147 - SOURCE_DATE_EPOCH
3148 (https://reproducible-builds.org/specs/source-date-epoch/) can
3149 be used to override the timestamp used for stamped target (when
3150 using --stamp).
3151 - Package specifications can now be prefixed with `-` to indicate
3152 negation
3153 - transitive_source_jars is now exposed on JavaInfo.
3154 - Add six to deps of has_services=1 py_proto_librarys.
3155 - java_tests no complain when use_testrunner is explicitly set to 1
3156 and main_class is set.
3157 - transitive_source_jars is now exposed on JavaInfo.
3158 - Debug messages generated by `print()` are not being filtered out
3159 by --output_filter anymore, it's recommended not to use them in
3160 production code.
3161 - in the Label() function, relative_to_caller_repository is now
3162 deprecated.
3163 - java_tests no complain when use_testrunner is explicitly set to 1
3164 and main_class is set.
3165 - Bazel's default hash function was changed from MD5 to SHA256.
3166 In particular, this affects users of remote caching and
3167 execution, as
3168 all hashes will be SHA256 by default.
3169 - Remove redirects for domains be.bazel.build and cr.bazel.build
3170 from the source for docs.bazel.build (because those subdomains
3171 don't resolve here; they resolve to bazel.build, which has the
3172 redirects for them)
3173 - First argument of 'load' must be a label. Path syntax is removed.
3174 (label should start with '//' or ':').
3175 - Document startup option --host_javabase
3176 - The --host_platform and --platform flags are no longer
3177 experimental.
Bazel Release System3d53cb02017-12-05 15:28:40 +01003178
Bazel Release System0838aee2017-11-27 14:16:34 +01003179## Release 0.8.0 (2017-11-27)
3180
3181```
3182Baseline: cff0dc94f6a8e16492adf54c88d0b26abe903d4c
3183
3184Cherry picks:
3185 + 8a49b156c4edf710e3e1e0acfde5a8d27cc3a086:
3186 Fix ImportError on tools.android for junction_lib
3187 + 275ae45b1228bdd0f912c4fbd634b29ba4180383:
3188 Automated rollback of commit
3189 4869c4e17d5b1410070a1570f3244148d8f97b5d.
3190 + d0bf589f2716b3d139c210930371a684c6e158eb:
3191 Add a random number to action temp dir
3192 + 9738f35abddb7ef7a7ef314b5d2a52a3be1b830a:
3193 CcProtoLibrary: Don't add dynamic librarys to filesToBuild on
3194 Windows
3195 + 0d6ff477099fdf6c8c1c7d4e2104f9184afe0a2b:
3196 Automated rollback of commit
3197 0ebb3e54fc890946ae6b3d059ecbd50e4b5ec840.
3198```
3199
3200Incompatible changes:
3201
3202 - ctx.fragments.apple.{xcode_version,ios_minimum_os} is not
3203 supported anymore. The same information is accessible through the
3204 target @bazel_tools//tools/osx:current_xcode_config: point an
3205 implicit attribute to it (i.e.
3206 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
3207 nfig")) then use
3208 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].
3209 - ctx.fragments.apple.minimum_os_for_platform_type is not supported
3210 anymore. The same information is accessible through the target
3211 @bazel_tools//tools/osx:current_xcode_config: point an implicit
3212 attribute to it (i.e.
3213 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
3214 nfig")) then use
3215 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].minimum_o
3216 s_for_platform_type .
3217 - ctx.fragments.apple.sdk_version_for_platform is not supported
3218 anymore. The same information is accessible through the target
3219 @bazel_tools//tools/osx:current_xcode_config: point an implicit
3220 attribute to it (i.e.
3221 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
3222 nfig")) then use
3223 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].sdk_versi
3224 on_for_platform .
3225 - --javabase=<absolute path> and --host_javabase=<absolute path>
3226 are not supported anymore. If you need this functionality
3227 java_runtime_suite(name="suite", default=":runtime")
3228 java_runtime(name="runtime", java_home=<path to the JDK>) is an
3229 alternative.
3230 - The flag --incompatible_descriptive_string_representations is no
3231 longer available, old style string representations of objects are
3232 not supported
3233 anymore.
3234 - The flag --incompatible_disallow_set_constructor is no longer
3235 available, the deprecated `set` constructor is not available
3236 anymore.
3237 - += on lists now mutates them. `list1 += list2` is now equivalent
3238 to `list1.extend(list2)` and not equivalent to `list1 = list1 +
3239 list2` anymore.
3240 - the target_apple_env and apple_host_system_env methods on
3241 ctx.fragments.apple are not supported anymore. The same
3242 information is accessible through apple_common.target_apple_env
3243 and apple_common.apple_host_system_env . They need the Xcode
3244 configuration as an argument, which can be obtained by declaring
3245 an implicit dependency on it (i.e.
3246 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
3247 nfig")) and then calling e.g.
3248 apple_common.apple_host_system_env(ctx.attr._xcode_config[apple_co
3249 mmon.XcodeVersionConfig]).
3250 - C++ toolchain identifiers are not in the name of the output
3251 directory anymore.
3252 - Selecting on "xcode_version" and
3253 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
3254 What was config_setting(values={"$FOO_version": $VALUE}) is now
3255 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_
3256 flag": $VALUE}).
3257 - Selecting on "xcode_version" and
3258 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
3259 What was config_setting(values={"$FOO_version": $VALUE}) is now
3260 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_
3261 flag": $VALUE}).
3262 - The flag --incompatible_disallow_set_constructor is no longer
3263 available, the deprecated `set` constructor is not available
3264 anymore.
3265 - Selecting on "xcode_version" and
3266 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
3267 What was config_setting(values={"$FOO_version": $VALUE}) is now
3268 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_versi...
3269
3270New features:
3271
3272 - runfiles, sh: Shell scripts may now depend on
3273 //src/tools/runfiles:runfiles_sh_lib and source runfiles.sh. The
3274 script defines the `rlocation` function which returns runfile
3275 paths on every platform.
3276 - In addition to $(location), Bazel now also supports $(rootpath)
3277 to obtain
3278 the root-relative path (i.e., for runfiles locations), and
3279 $(execpath) to
3280 obtain the exec path (i.e., for build-time locations)
3281
3282Important changes:
3283
3284 - android_binary now supports custom debug keys via the debug_key
3285 attribute.
3286 - Updated Android proguard to 5.3.3. It now works with android-24+.
3287 - --experimental_use_parallel_android_resource_processing and
3288 --experimental_android_use_nocompress_extensions_on_apk are
3289 removed. These features are fully rolled out.
3290 - Fixes #2574
3291 - Fixes #3834
3292 - Enable experimental UI by default.
3293 - .
3294 RELNOTES: None.
3295 RELNOTES: No.
3296 - Add memory profiler.
3297 - [Bazel] {java,cc}_proto_library now look for dependencies in
3298 @com_google_protobuf, instead of in @com_google_protobuf_$LANG
3299 - Improved merge.sh script in cookbook.
3300 - Fixing regression to --experimental_remote_spawn_cache
3301 - Support for linker scripts in NativeDepsHelper (e.g.,
3302 android_binary)
3303 - Skylark semantics flags now affect WORKSPACE files and repository
3304 rules.
3305 - ctx.outputs.executable is deprecated. Use DefaultInfo(executable
3306 = ...) instead.
3307 - Update "mirror.bazel.build" urls to use https.
3308 - Improve --config logging when --announce_rc is present.
3309 - Document interaction between test_suite and target exclusions
3310 - Replace version numbers for Bazel installers with "<version>"
3311 (because this will change often)
3312 - Published command lines should have improved lists of effective
3313 options.
3314 - --incremental_dexing_binary_types has been removed. All builds
3315 are supported by incremental dexing (modulo proguard and some
3316 blacklisted dx flags).
3317 - Document --host_javabase, --host_java_toolchain
3318
Bazel Release System76b6d0a2017-10-18 14:34:11 +02003319## Release 0.7.0 (2017-10-18)
3320
3321```
3322Baseline: 5cc6246d429f7d9119b97ce263b4fd6893222e92
3323
3324Cherry picks:
3325 + e79a1107d90380501102990d82cbfaa8f51a1778:
3326 Windows,bootstrapping: fix build_windows_jni.sh
3327```
3328
3329Incompatible changes:
3330
3331 - The --output=location flag to 'bazel query' cannot be used with
3332 query expressions that involve the 'buildfiles' or 'loadfiles'
3333 operators. This also applies to 'genquery' rules.
3334 - Operators for equality, comparison, 'in' and 'not in' are no
3335 longer associative,
3336 e.g. x < y < z is now a syntax error. Before, it was parsed
3337 as: (x < y) < z.
3338 - In strings, octal sequences greater than \377 are now forbidden
3339 (e.g. "\\600").
3340 Previously, Blaze had the same behavior as Python 2, where
3341 "\\450" == "\050".
3342 - Using tabulation for identation is now fobidden in .bzl files
3343 - `load` is now a language keyword, it cannot be used as an
3344 identifier
3345 - lvalues must have define at least one variable (i.e. we forbid
3346 `[] = f()`).
3347 - Fixed a bug whereby multiple load() statements could appear on
3348 the same line
3349 - -extra_checks:off is no longer supported; use
3350 -XepDisableAllChecks instead
3351 - java_common.java_toolchain_attr is removed. Depend on the
3352 java_toolchain_alias() rule to accomplish the same thing.
3353 - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
3354 not supported anymore and were replaced with the
3355 cc_toolchain_alias() and java_runtime_alias() rules.
3356 - Noop flag --deprecated_generate_xcode_project deleted.
3357 - Objects in Skylark are converted to strings in a more descriptive
3358 and less harmful way (they don't leak information that shouldn't
3359 be accessed by Skylark code, e.g. nondeterministic memory addresses
3360 of objects).
3361 - `set` is deprecated in BUILD and .bzl files, please use `depset`
3362 instead. Ordering names have also been changed, please use "default",
3363 "postorder", "preorder", and "topological" instead of "stable",
3364 "compile", "naive_link", and "link" correspondingly.
3365 - Integer overflow (on signed 32 bit numbers) in BUILD/bzl files is
3366 an error.
3367 - Keyword-only syntax in a function definition is now forbidden
3368 e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`
3369 - --incompatible_comprehension_variables_do_not_leak defaults to
3370 "true."
3371 Iteration variable becomes inaccessible after a list/dict
3372 comprehension.
3373 - @bazel_tools//tools/build_defs/docker:docker.bzl is no longer
3374 available, please see https://github.com/bazelbuild/rules_docker.
3375
3376New features:
3377
3378 - Zipped LLVM profiles are now supported.
3379 - LIPO maps to ThinLTO for LLVM builds.
3380 - Change to handle LLVM FDO zipped profile contents correctly.
3381 - Do not disable fully dynamic linking with ThinLTO when invoked
3382 via LIPO options.
3383 - There is now a 'siblings' query function. See the query
3384 documentation for more details.
3385 - Added the print_action command, which outputs the
3386 actions needed to build a given target in the form of an
3387 ExtraActionSummary proto in text format.
3388 - android_binary now supports proguard_apply_dictionary to specify
3389 a custom dictionary to use for choosing names to obfuscate
3390 classes and members to.
3391
3392Important changes:
3393
3394 - Windows: bazel clean --expunge works
3395 - First argument of 'load' should be a label. Path syntax is
3396 deprecated (label should start with '//' or ':').
3397 - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
3398 instead of 0777).
3399 - The extension_safe attribute of apple_binary no longer validates
3400 transitive dependencies are compiled against extension_safe APIs.
3401 - Parentheses around the tuple are now mandatory in [a for b in c
3402 if 1, 2]
3403 - Adjust the thresholds for --test_verbose_timeout_warnings so that
3404 it can recommending timeout increases and won't recommend
3405 timeouts that are too close to the actual timeout.
3406 - Iterating on a `depset` object is deprecated. If you need an
3407 iterable, call the `.to_list()` method first.
3408 - Bazel now uses tools from action_configs in Crosstool by default
3409 (as oposed to using top level tools).
3410 - Incremental dexing errors on combination of --multidex=off and
3411 either --main-dex-list or --minimal-main-dex.
3412 - When using the dictionary literal syntax, it is now an error to
3413 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
3414 - New property on android_sdk: aapt2
3415 Choose the version of aapt on android_binary
3416 - Add idl_preprocessed attribute to android_library, so that
3417 preprocessed aidl files can be passed to android_library for
3418 compiling
3419 - Bazel's remote_worker backend for remote execution supports
3420 sandboxing on Linux now. Check
3421 https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
3422 orker/README.md for details.
3423 - Allows flags that expand to take values.
3424 - Make querying attributes formed by selector lists of list types
3425 more efficient by no longer listing every possible combination of
3426 attribute value but by more compactly storing the possible values
3427 of the list.
3428 - writing build events to a file is no longer experimental
3429 - set --rewrite_calls_to_long_compare to false by default.
3430 - ObjC and C++ coverage feature is unified under name 'coverage'
3431 - Enable --incremental_dexing for Android builds by default. Note
3432 that some dexopts are incompatible with incremental dexing,
3433 including --force-jumbo.
3434 - Evaluation will soon use checked arithmetics and throw an error
3435 instead of overflow/underflow.
3436 - Implicit iteration in the CROSSTOOL has been removed, use
3437 explicit 'iterate_over' message.
3438 - Add option for Android specific grte_top
3439 - Crosstool patches are only applied if the toolchain doesn't define
3440 'no_legacy_features' feature.
3441 - 'platform_type' is now a mandatory attribute on apple_binary and
3442 apple_static_library rules.
3443 If this change breaks your build, feel free to add platform_type
3444 = 'ios' to any apple_binary and apple_static_library
3445 targets in your project, as this was the previous default
3446 behavior.
3447 - Remove apple_watch2_extension build rule. Users should be using
3448 the skylark watchos_application and watchos_extension rules.
3449 https://github.com/bazelbuild/rules_apple has details.
3450 - Check stderr to detect if connected to a terminal. Deprecate
3451 --isatty.
3452 - Commands that shut down the server (like "shutdown") now ensure
3453 that the server process has terminated before the client process
3454 terminates.
3455 - Remove apple_watch1_extension and apple_watch_extension_binary
3456 rules. Users should be using the skylark watchos_application and
3457 watchos_extension rules.
3458 https://github.com/bazelbuild/rules_apple has details.
3459 - Windows: Wrapper-less CROSSTOOL becomes default now.
3460 set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
3461 - Ignore --glibc in the Android transition.
3462 - Remove --experimental_android_use_singlejar_for_multidex.
3463 - nocopts now also filter copts
3464 - 'strip' action is now configured via feature configuration
3465 - The Build Event Service (BES) client now properly supports
3466 Google Applicaton Default Credentials.
3467 - Flags from action_config get added first to the command line
3468 first, before the flags from features.
3469 - update dexing tools to Android SDK 26.0.1
3470 - Bazel Android support now requires build-tools 26.0.1 or later.
3471 - `bazel info output_path` no longer relies on the root directory
3472 filename being equal to the workspace name.
3473 - The `print` function now prints debug messages instead of
3474 warnings.
3475 - speedup of incremental dexing tools
3476 - --announce_rc now controls whether bazelrc startup options are
3477 printed to stderr.
3478 - Removing a few unused objc_provider keys.
3479 - Improved logging when workers have to be restarted due to its
3480 files having changed.
3481 - Top-level `if` statements are now forbidden.
3482 - Java protos are compiled to Java 7 bytecode.
3483 - All Android builds now use the desugar tool to support some Java
3484 8 features by default. To disable, use the --nodesugar_for_android flag.
3485 - Skylark-related options may now appear as "common" command
3486 options in the .bazelrc
3487 - Python is now required to build bazel.
3488 - New --build_runfile_manifests flag controls production of
3489 runfiles manifests.
3490 - Enable debug info for Java builds
3491 - Allow java_lite_proto_library in the deps of android rules.
3492 - .so files in APKs will be memory-page aligned when
3493 android_binary.nocompress_extensions contains ".so" and
3494 --experimental_android_use_nocompress_extensions_on_apk is
3495 specified.
3496 - Skylark providers can specify allowed fields and their
3497 documentation.
3498 - Support ctx.actions.args() for more efficient Skylark command
3499 line construction.
3500 - The remote HTTP/1.1 caching client (--remote_rest_cache) now
3501 distinquishes between action cache and CAS. The request URL for
3502 the action cache is prefixed with 'ac' and the URL for the CAS
3503 is prefixed with 'cas'.
3504 - `JavaInfo` is a preferred alias to `java_common.provider`.
3505 - J2ObjC version updated to 2.0.3.
3506 - A new Java coverage implementation is available. Makes possible
3507 coverage for Skylark JVM rules.
3508 - Make proguard_apply_dictionary also apply to class and package
3509 obfuscation, not just class members.
3510 - android_binary.nocompress_extensions now applies to all files in
3511 the APK, not just resources and assets.
3512 - The apple_genrule rule that is distributed with Bazel has been
3513 deleted. Users who wish to use genrules with Xcode's
3514 DEVELOPER_DIR set should use the rules in
3515 https://github.com/bazelbuild/rules_apple instead.
3516 - The swift_library rule that is distributed with Bazel has been
3517 deleted. Users who wish to compile Swift should use the rules in
3518 https://github.com/bazelbuild/rules_apple instead.
3519 - The Build Event Protocol's File.uri field is now properly
3520 encoded according to RFC2396.
3521 - Deprecated: Using the android_library.deps attribute to
3522 implicitly export targets to dependent rules. If your code is
3523 using this feature, Bazel will raise a warning. To fix, please
3524 use android_library.exports to explicitly specify exported
3525 targets. Run with
3526 --experimental_allow_android_library_deps_without_srcs=false to
3527 ensure forward compatibility when this feature is removed in a
3528 future release.
3529 - java_common.create_provider is now supported with creating ijars
3530 by default. This introduces incompatibilities for existing users.
3531 Please set use_ijar=False if you don't want to use ijars.
3532 - Tests can now write files to TEST_UNDECLARED_OUTPUTS_DIR and
3533 TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR and these will be
3534 reflected under bazel-testlogs.
3535 - remove unused --host_incremental_dexing flag
3536 - Stop using --undefined dynamic_lookup in Apple links. Enables
3537 unresolved symbol errors.
3538 - All test output files included for cached, uncached, and multiple
3539 attempt tests.
3540 - Android rules no longer restrict the manifest file to be named
3541 "AndroidManifest.xml".
3542 - Boolean flag values will now get normalized to 1 or 0 in
3543 canonicalize-flags output.
3544 - added experimental --use_new_category_enum to the help command to
3545 output options grouped by the new type of category.
3546 - Expose output jars and jdeps in java_common.provider, when
3547 available.
3548 - android_library targets are no longer allowed to use deps to
3549 export targets implicitly; please use android_library.exports
3550 instead.
3551 - New depset API
3552 - apple_binary and apple_static_library no longer support
3553 compilation attributes such as 'srcs'. If this breaks any
3554 existing targets, you may migrate all such attributes to a new
3555 objc_library target and depend on that objc_library target via
3556 the 'deps' attribute of apple_binary or apple_static_library.
3557
Bazel Release Systemed0ebc02017-10-05 23:52:25 +02003558## Release 0.6.1 (2017-10-05)
3559
3560```
3561Baseline: 87cc92e5df35d02a7c9bc50b229c513563dc1689
3562
3563Cherry picks:
3564 + a615d288b008c36c659fdc17965207bb62d95d8d:
3565 Rollback context.actions.args() functionality.
3566 + 7b091c1397a82258e26ab5336df6c8dae1d97384:
3567 Add a global failure when a test is interrupted/cancelled.
3568 + 95b0467e3eb42a8ce8d1179c0c7e1aab040e8120:
3569 Cleanups for Skylark tracebacks
3570 + cc9c2f07127a832a88f27f5d72e5508000b53429:
3571 Remove the status xml attribute from AntXmlResultWriter
3572 + 471c0e1678d0471961f1dc467666991e4cce3846:
3573 Release 0.6.0 (2017-09-28)
3574 + 8bdd409f4900d4574667fed83d86b494debef467:
3575 Only compute hostname once per server lifetime
3576 + 0bc9b3e14f305706d72180371f73a98d6bfcdf35:
3577 Fix bug in NetUtil caching.
3578```
3579
3580Important changes:
3581 - Only compute hostname once per server lifetime
3582
Bazel Release System471c0e12017-09-28 16:36:12 +02003583## Release 0.6.0 (2017-09-28)
3584
3585```
3586Baseline: 87cc92e5df35d02a7c9bc50b229c513563dc1689
3587
3588Cherry picks:
3589 + a615d288b008c36c659fdc17965207bb62d95d8d:
3590 Rollback context.actions.args() functionality.
3591 + 7b091c1397a82258e26ab5336df6c8dae1d97384:
3592 Add a global failure when a test is interrupted/cancelled.
3593 + 95b0467e3eb42a8ce8d1179c0c7e1aab040e8120:
3594 Cleanups for Skylark tracebacks
3595 + cc9c2f07127a832a88f27f5d72e5508000b53429:
3596 Remove the status xml attribute from AntXmlResultWriter
3597```
3598
3599Incompatible changes:
3600
3601 - Noop flag --deprecated_generate_xcode_project deleted.
3602 - Objects in Skylark are converted to strings in a more descriptive
3603 and less harmful way (they don't leak information that shouldn't
3604 be accessed by Skylark code, e.g. nondeterministic memory addresses
3605 of objects).
3606 - `set` is deprecated in BUILD and .bzl files, please use `depset`
3607 instead. Ordering names have also been changed, please use
3608 "default", "postorder", "preorder", and "topological" instead of
3609 "stable", "compile", "naive_link", and "link" correspondingly.
3610 - Integer overflow (on signed 32 bit numbers) in BUILD/bzl files is
3611 an error.
3612 - Keyword-only syntax in a function definition is now forbidden
3613 e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`
3614 - --incompatible_comprehension_variables_do_not_leak defaults to
3615 "true."
3616 Iteration variable becomes inaccessible after a list/dict
3617 comprehension.
3618
3619New features:
3620
3621 - There is now a 'siblings' query function. See the query
3622 documentation for more details.
3623 - Added the print_action command, which outputs the
3624 actions needed to build a given target in the form of an
3625 ExtraActionSummary proto in text format.
3626 - android_binary now supports proguard_apply_dictionary to specify
3627 a custom dictionary to use for choosing names to obfuscate
3628 classes and members to.
3629
3630Important changes:
3631
3632 - 'strip' action is now configured via feature configuration
3633 - Flags from action_config get added first to the command line
3634 first,
3635 before the flags from features.
3636 - `bazel info output_path` no longer relies on the root directory
3637 filename being equal to the workspace name.
3638 - The `print` function now prints debug messages instead of
3639 warnings.
3640 - speedup of incremental dexing tools
3641 - --announce_rc now controls whether bazelrc startup options are
3642 printed to stderr.
3643 - Removing a few unused objc_provider keys.
3644 - Improved logging when workers have to be restarted due to its
3645 files having changed.
3646 - Top-level `if` statements are now forbidden.
3647 - Java protos are compiled to Java 7 bytecode.
3648 - All Android builds now use the desugar tool to support some Java
3649 8 features by default. To disable, use the
3650 --nodesugar_for_android flag.
3651 - Skylark-related options may now appear as "common" command
3652 options in the .bazelrc
3653 - Python is now required to build bazel.
3654 - When the lvalue of an augmented assignment is a list, we now
3655 throw an error
3656 before evaluating the code (e.g. `a, b += 2, 3`).
3657 - New --build_runfile_manifests flag controls production of
3658 runfiles manifests.
3659 - Enable debug info for Java builds
3660 - Allow java_lite_proto_library in the deps of android rules.
3661 - .so files in APKs will be memory-page aligned when
3662 android_binary.nocompress_extensions contains ".so" and
3663 --experimental_android_use_nocompress_extensions_on_apk is
3664 specified.
3665 - Skylark providers can specify allowed fields and their
3666 documentation.
3667 - Support ctx.actions.args() for more efficient Skylark command
3668 line construction.
3669 - The remote HTTP/1.1 caching client (--remote_rest_cache) now
3670 distinquishes between action cache and CAS. The request URL for
3671 the action cache is prefixed with 'ac' and the URL for the CAS
3672 is prefixed with 'cas'.
3673 - `JavaInfo` is a preferred alias to `java_common.provider`.
3674 - J2ObjC version updated to 2.0.3.
3675 - A new Java coverage implementation is available. Makes possible
3676 coverage for Skylark JVM rules.
3677 - Make proguard_apply_dictionary also apply to class and package
3678 obfuscation, not just class members.
3679 - When using the dictionary literal syntax, it is now an error to
3680 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
3681 - android_binary.nocompress_extensions now applies to all files in
3682 the APK, not just resources and assets.
3683 - The apple_genrule rule that is distributed with Bazel has been
3684 deleted. Users who wish to use genrules with Xcode's
3685 DEVELOPER_DIR set should use the rules in
3686 https://github.com/bazelbuild/rules_apple instead.
3687 - The swift_library rule that is distributed with Bazel has been
3688 deleted. Users who wish to compile Swift should use the rules in
3689 https://github.com/bazelbuild/rules_apple instead.
3690
Bazel Release System5371d132017-08-25 11:24:06 +02003691## Release 0.5.4 (2017-08-25)
3692
3693```
3694Baseline: 6563b2d42d29196432d5fcafa0144b8371fbb028
3695
3696Cherry picks:
3697 + d4fa181f8607c35230b7efa1ce94188b51508962:
3698 Use getExecPathString when getting bash_main_file
3699 + 837e1b3d4859140d29aaa6bbab8fbb008e6d701e:
3700 Windows, sh_bin. launcher: export runfiles envvars
3701 + fe9ba893c0ebec19228086356af5fa8d81f2809b:
3702 grpc: Consolidate gRPC code from BES and Remote Execution. Fixes
3703 #3460, #3486
3704 + e8d4366cd374fba92f1425de0d475411c8defda4:
3705 Automated rollback of commit
3706 496d3ded0bce12b7371a93e1183ba30e6aa88032.
3707 + 242a43449dd44a22857f6ce95f7cc6a7e134d298:
3708 bes,remote: update default auth scope.
3709 + 793b409eeae2b42be7fed58251afa87b5733ca4d:
3710 Windows, sh_bin. launcher: fix manifest path
3711 + 7e4fbbe4ab3915a57b2187408c3909e5cd6c6013:
3712 Add --windows_exe_launcher option
3713 + 91fb38e92ace6cf14ce5da6527d71320b4e3f3d2:
3714 remote_worker: Serialize fork() calls. Fixes #3356
3715 + b79a9fcd40f448d3aebb2b93a2ebe80d09b38408:
3716 Quote python_path and launcher in
3717 python_stub_template_windows.txt
3718 + 4a2e17f85fc8450aa084b201c5f24b30010c5987:
3719 Add build_windows_jni.sh back
3720 + ce61d638197251f71ed90db74843b55d9c2e9ae5:
3721 don't use methods and classes removed in upstream dx RELNOTES:
3722 update dexing tools to Android SDK 26.0.1
3723 + 5393a4996d701fa192964a35cbb75e558a0599c0:
3724 Make Bazel enforce requirement on build-tools 26.0.1 or later.
3725 + 5fac03570f80856c063c6019f5beb3bdc1672dee:
3726 Fix --verbose_failures w/ sandboxing to print the full command
3727 line
3728 + f7bd1acf1f96bb7e3e19edb9483d9e07eb5af070:
3729 Only patch in C++ compile features when they are not already
3730 defined in crosstool
3731 + d7f5c120417bc2d2344dfb285322355f225d9153:
3732 Bump python-gflags to 3.1.0, take two
3733 + 3cb136d5451e9d8af58f9a99990cad0592df101a:
3734 Add python to bazel's dockerfiles
3735```
3736
3737New features:
3738
3739 - Do not disable fully dynamic linking with ThinLTO when invoked
3740 via LIPO options.
3741
3742Important changes:
3743
3744 - Ignore --glibc in the Android transition.
3745 - Remove --experimental_android_use_singlejar_for_multidex.
3746 - nocopts now also filter copts
3747 - The Build Event Service (BES) client now properly supports
3748 Google Applicaton Default Credentials.
3749 - update dexing tools to Android SDK 26.0.1
3750 - Bazel Android support now requires build-tools 26.0.1 or later.
3751 - Fix a bug in the remote_worker that would at times make it crash on Linux. See #3356
3752 - The java_proto_library rule now supports generated sources. See #2265
3753
Bazel Release System195a7a82017-07-27 20:27:32 +02003754## Release 0.5.3 (2017-07-27)
3755
3756```
3757Baseline: 88518522a18df5788736be6151fc67992efe2aad
3758
3759Cherry picks:
3760 + 820a46af10808396873c36d0f331e533118cf0c6:
3761 Automated rollback of commit
3762 6d6e87297fe8818e4c374fdfabfbcf538bca898a.
3763 + ccfb2df69ecf4746f5a15e1295af995c3a45aa94:
3764 Allow py_binary to be the executable of a Skylark action or any
3765 SpawnAction on Windows.
3766 + 06534911696838e720c8681f6f568c69d28da65e:
3767 Fix string representation for the Root class
3768 + cd159bcee72a7f377621b45409807231a636f9e2:
3769 sandbox: Allow UNIX sockets on macOS even when block-network is
3770 used.
3771 + ad73cba3caa2e08ad61ea9ca63f9111cde1f48d1:
3772 Fix python_stub_template.txt to be compatible with Python 2.4.
3773 + 9a63aff8bb771af8917903fbbc9df3b708e2c0ed:
3774 Create Windows ZIP release artifact using Bazel
3775 + 5e576637b5705aff0a7bf56b5077463dffcd712f:
3776 Automated rollback of commit
3777 820a46af10808396873c36d0f331e533118cf0c6.
3778 + b6e29ca217b02c3ba499b85479a3830f59c9b9b6:
3779 Use the correct function to generate the release notes
3780 + 0f3481ba6364f24ef76b839bdde06ae7883c9bd9:
3781 Include <cinttypes> instead of <stdint.h>
3782```
3783
3784Incompatible changes:
3785
3786 - The --output=location flag to 'bazel query' cannot be used with
3787 query expressions that involve the 'buildfiles' or 'loadfiles'
3788 operators. This also applies to 'genquery' rules.
3789 - Operators for equality, comparison, 'in' and 'not in' are no
3790 longer associative, e.g. x < y < z is now a syntax error.
3791 Before, it was parsed as: (x < y) < z.
3792 - In strings, octal sequences greater than \377 are now forbidden
3793 (e.g. "\\600"). Previously, Blaze had the same behavior as Python 2,
3794 where "\\450" == "\050".
3795 - Using tabulation for identation is now fobidden in .bzl files
3796 - `load` is now a language keyword, it cannot be used as an
3797 identifier
3798 - lvalues must have define at least one variable (i.e. we forbid
3799 `[] = f()`).
3800 - Fixed a bug whereby multiple load() statements could appear on
3801 the same line
3802 - -extra_checks:off is no longer supported; use
3803 -XepDisableAllChecks instead
3804 - java_common.java_toolchain_attr is removed. Depend on the
3805 java_toolchain_alias() rule to accomplish the same thing.
3806 - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
3807 not supported anymore and were replaced with the
3808 cc_toolchain_alias() and java_runtime_alias() rules.
3809
3810New features:
3811
3812 - Zipped LLVM profiles are now supported.
3813 - LIPO maps to ThinLTO for LLVM builds.
3814 - Change to handle LLVM FDO zipped profile contents correctly.
3815
3816Important changes:
3817
3818 - Windows: bazel clean --expunge works
3819 - First argument of 'load' should be a label. Path syntax is
3820 deprecated (label should start with '//' or ':').
3821 - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
3822 instead of 0777).
3823 - The extension_safe attribute of apple_binary no longer validates
3824 transitive dependencies are compiled against extension_safe APIs.
3825 - Parentheses around the tuple are now mandatory in [a for b in c
3826 if 1, 2]
3827 - Adjust the thresholds for --test_verbose_timeout_warnings so that
3828 it can recommending timeout increases and won't recommend
3829 timeouts that are too close to the actual timeout.
3830 - Iterating on a `depset` object is deprecated. If you need an
3831 iterable, call the `.to_list()` method first.
3832 - Bazel now uses tools from action_configs in Crosstool by default
3833 (as oposed to using top level tools).
3834 - Incremental dexing errors on combination of --multidex=off and
3835 either --main-dex-list or --minimal-main-dex.
3836 - When using the dictionary literal syntax, it is now an error to
3837 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
3838 - New property on android_sdk: aapt2
3839 Choose the version of aapt on android_binary
3840 - Add idl_preprocessed attribute to android_library, so that
3841 preprocessed aidl files can be passed to android_library for
3842 compiling
3843 - Bazel's remote_worker backend for remote execution supports
3844 sandboxing on Linux now. Check
3845 https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
3846 orker/README.md for details.
3847 - Allows flags that expand to take values.
3848 - Make querying attributes formed by selector lists of list types
3849 more efficient by no longer listing every possible combination of
3850 attribute value but by more compactly storing the possible values
3851 of the list.
3852 - Writing build events to a file is no longer experimental
3853 - set --rewrite_calls_to_long_compare to false by default.
3854 - ObjC and C++ coverage feature is unified under name 'coverage'
3855 - Enable --incremental_dexing for Android builds by default. Note
3856 that some dexopts are incompatible with incremental dexing,
3857 including --force-jumbo.
3858 - Evaluation will soon use checked arithmetics and throw an error
3859 instead of overflow/underflow.
3860 - Implicit iteration in the CROSSTOOL has been removed, use
3861 explicit 'iterate_over' message.
3862 - Add option for Android specific grte_top
3863 - Crosstool patches are only applied if the toolchain doesn't define
3864 'no_legacy_features' feature.
3865 - 'platform_type' is now a mandatory attribute on apple_binary and
3866 apple_static_library rules.
3867 If this change breaks your build, feel free to add platform_type
3868 = 'ios' to any apple_binary and apple_static_library
3869 targets in your project, as this was the previous default
3870 behavior.
3871 - Remove apple_watch2_extension build rule. Users should be using
3872 the skylark watchos_application and watchos_extension rules.
3873 https://github.com/bazelbuild/rules_apple has details.
3874 - Check stderr to detect if connected to a terminal. Deprecate
3875 --isatty.
3876 - Commands that shut down the server (like "shutdown") now ensure
3877 that the server process has terminated before the client process
3878 terminates.
3879 - Remove apple_watch1_extension and apple_watch_extension_binary
3880 rules. Users should be using the skylark watchos_application and
3881 watchos_extension rules.
3882 https://github.com/bazelbuild/rules_apple has details.
3883 - Windows: Wrapper-less CROSSTOOL becomes default now.
3884 set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
3885
Bazel Release System7b851222017-06-27 15:08:47 +02003886## Release 0.5.2 (2017-06-27)
3887
3888```
3889Baseline: e78ad83ded6e9c6d639793827e27b6570e6e9f65
3890
3891Cherry picks:
3892 + 68028317c1d3d831a24f90e2b25d1410ce045c54:
3893 experimental UI: move stopUpdateThread() out of synchronized,
3894 again
3895 + 019935dfbb61e61d08d1351b0365fb4e2d0df305:
3896 Fix bug in URI computation in RemoteModule
3897 + e9424cf9b9d72b98594966d5ac0f15bb018ec639:
3898 Automated rollback of commit
3899 7dec00574aa91327693f6ba7e90bff5bc834253e.
3900 + 9eea05d068a06ab642dd9d86d46ee5fa2e36b02e:
3901 Switching to Watcher API instead of wait_for_completion, in
3902 preparation for deprecating the wait_for_completion field.
3903 + 89659810e3048782dfb5e308e39aa8a0727e464e:
3904 Set correct execroot for info
3905 + 716b527266f47f59a2b7fb2e5fc52cb45e1691b1:
3906 Only create a single per-build instance of the remote cache /
3907 executor
3908 + 1d82d199f82409f217a42bcefebb96f723f91caa:
3909 protobuf: Update protobuf jars to be binary compatible with Java
3910 6. Fixes #3198
3911 + 524b90d9e5acc4fa568f215c9415eaa902e979f8:
3912 Change CAS URI to use the "bytestream" scheme instead of being
3913 scheme-less
3914 + 4929ad79865f8c13ef3b33c827040f4a037e4afe:
3915 Automated g4 rollback of commit
3916 923d7df521f67d031b288180560848bd35e20976.
3917 + 68b9a7e2dc17e32b194238d287e79bee1ba035b9:
3918 Automated g4 rollback of commit
3919 da56606563ee9df438db93392f681bf2abb4ac97.
3920 + 2ba693ffbe824136a0ca5f47d34710612f6302c3:
3921 Automated rollback of commit
3922 ce7c4deda60a307bba5f0c9421738e2a375cf44e.
3923```
3924
3925Incompatible changes:
3926
3927 - Blaze no longer generates xcode projects. Use tulsi.bazel.build
3928 instead.
3929
3930Important changes:
3931
3932 - Keyword-only syntax in a function definition is deprecated
3933 (e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`) and will be
3934 removed in the future.
3935 - Attempting to build an Android target without setting up
3936 android_sdk_repository will now produce a helpful error message.
3937 - Adds a sha256 attribute to git_repository and new_git_repository.
3938 This can only be used if the remote is a public GitHub
3939 repository. It forces
3940 Bazel to download the repository as a tarball, which will often
3941 be faster and
3942 more robust than cloning it.
3943 - Sandboxing is now enabled by default on FreeBSD (via
3944 processwrapper-sandbox).
3945 - android_test may use manifest placeholders with 'manifest_merger
3946 = "android"'.
3947 - load() statements should be called at the top of .bzl files,
3948 before any
3949 other statement. This convention will be enforced in the future.
3950 - Effectively remove sysroot from CppConfiguration and allow it to
3951 use select statements.
3952 - proto_library.strict_proto_deps no longer exists.
3953 - Flag --explicit_jre_deps is now a noop.
3954 - The 'legacy' Android manifest merger is deprecated. Please
3955 upgrade to the 'android' manifest merger, which is the same
3956 merger used by Gradle.
3957 https://developer.android.com/studio/build/manifest-merge.html
3958 - Using $(CC_FLAGS) in a GenRule adds a dependency to the c++
3959 toolchain
3960 - add one-version enforcement to android_local_test
3961 - Skylark support (apple_common.dotted_version(string)) for
3962 building DottedVersion objects to interface with native apple
3963 rules
3964 - CC_FLAGS can be defined using 'cc-flags-make-variable' action_config in
3965 CROSSTOOL
3966 - ios_framework native rule has been removed. This rule had been
3967 essentially broken for several months now; users should be using
3968 the skylark ios framework rule.
3969 https://github.com/bazelbuild/rules_apple has details.
3970 - Clean command no longer uses boolean values for --async,
3971 --expunge, and --expunge_async options.
3972 - Partially fixes external J2ObjC support.
3973 - '--aspects' can occur more than once on the command line.
3974 - --no_ prefix no longer recognized.
3975 - Use action_config in crosstool for static library archiving,
3976 remove ar_flag.
3977 - Added a new flag --sandbox_writable_path, which asks the sandbox
3978 to
3979 make an existing directory writable when running actions.
3980 - bazel test now also computes a default instrumentation filter if
3981 --collect_code_coverage is enabled
3982 - n/na
3983 - In .bzl files, top-level `if` statements are deprecated and will
3984 be forbidden
3985 in the future. Move them in a function body instead (or use a
3986 conditional
3987 expression instead: `x if condition else y`).
3988 - ios_device and ios_test are deprecated. Please use the new testing
3989 rules in https://github.com/bazelbuild/rules_apple instead.
3990 - bazel query --output package now displays packages from external
3991 repository with the format "@reponame//package". Packages in the
3992 main repository continue to have the format "package".
3993 - ctx.expand_make_variables is deprecated.
3994 - Bazel posts links to the CAS to the BEP if remote caching /
3995 execution is enabled
3996 - `bazel info execution_root` returns the corrrect directory name
3997 for the execution root.
3998
Bazel Release System63222de2017-06-06 11:32:04 +02003999## Release 0.5.1 (2017-06-06)
4000
4001```
4002Baseline: f3ae88ee043846e7acdffd645137075a4e72c573
4003
4004Cherry picks:
4005 + c58ba098526b748f9c73e6229cafd74748205aa1:
4006 Release to GCS: put the final release in its own directory
4007 + 0acead4ea3631240659836ce6ecd6d7f67fd352b:
4008 Update protobuf to latest master at a64497c and apply
4009 @laszlocsomor's latest changes from
4010 https://github.com/google/protobuf/pull/2969 on top of it.
4011 + d0242ce4a87929f2528f4602d0fb09d1ccfcea94:
4012 Make symlinks consistent
4013 + d953ca8b87a46decbce385cebb446ae0dd390881:
4014 Clean VanillaJavaBuilder output directories
4015 + 755669fb5de1f4e762f27c19776cac9f410fcb94:
4016 Pass all the environment variable to Bazel during bootstrapping
4017 + 6f041661ca159903691fcb443d86dc7b6454253d:
4018 Do not mark the JDK7 installer -without-jdk-installer
4019 + 720561113bfa702acfc2ca24ce3cc3fd7ee9c115:
4020 Fix #2958: Installer should not overwrite bazelrc
4021 + 511c35b46cead500d4e76706e0a709e50995ceba:
4022 Bootstrap: move the fail function to the top
4023 + 8470be1122825aae8ad0903dd1e1e2a90cce47d2:
4024 Clean up javac and Error Prone targets
4025 + 4a404de2c6c38735167e17ab41be45ef6fc4713a:
4026 Update javac version to 9-dev-r4023-2
4027 + 36ce4b433e19498a78c34540d5a166d4e0006b22:
4028 Update javac version to 9-dev-r4023-2
4029 + 38949b8526bdb3e6db22f3846aac87162c28c33f:
4030 Migrate off versioned javac and Error Prone targets
4031 + 1a57d298f8aa6ea8136d93223902104f2479cd2a:
4032 Re-enabling passing -sourcepath via javacopts.
4033 + eb565f408e03125e92d42b00756e519795be6593:
4034 Make make sure that msys build actually builds msys version
4035 + 39f328cf392056618d1a3ead4835a138b189a06d:
4036 Fix typo. Also do not override host_cpu for msvc.
4037 + 624802893f4fe72118f00a78452605d41a2e1c6f:
4038 Select correct JDK for windows_msys
4039 + c4f271d1a68366b6fa5ff38ea7d951b6a22af044:
4040 Automated g4 rollback of commit
4041 3e5edafa2a04a71cd3596e929e83222da725f3f9.
4042 + 926180997a0f296a5a009326aead887279ce0a90:
4043 Remove process-tools.cc which I forgot to delete during the last
4044 rollback.
4045 + baca6e4cb023649920871b74810927d304729e59:
4046 Fix #2982: Bazel installer should not check for installed JDK if
4047 using a bundled JDK.
4048 + 866ecc8c3d5e0b899e3f0c9c6b2265f16daae842:
4049 Disable msys path conversion on Windows.
4050 + cc21998c299b4d1f97df37b961552ff8168da17f:
4051 Rollforward #2 of: Basic open-source crosstool to support
4052 targeting apple platform types.
4053 + 0f0ccc4fc8229c1860a9c9b58089d6cfb2ee971f:
4054 Escape % in strings that will appear in Crosstool
4055 + 3b08f774e7938928e3a240a47a0a7554cdc8d50b:
4056 Adding feature for linking C Run-Time library on Windows
4057 + 3566474202d1978acfdcb7e5ff73ee03ea6f3df9:
4058 Do not use sed -E in bootstrap/compile.sh
4059 + c3cf7d917afd02d71de3800cd46ad8d14f1ddf55:
4060 Reverts non-xcode-available darwin crosstool generation.
4061```
4062
4063Important changes:
4064
4065 - Fixes regression in 0.5.0 requiring Xcode to build C++ on OSX.
4066
Bazel Release Systema3e26832017-05-26 14:11:07 +02004067## Release 0.5.0 (2017-05-26)
4068
4069```
4070Baseline: f3ae88ee043846e7acdffd645137075a4e72c573
4071
4072Cherry picks:
4073 + c58ba098526b748f9c73e6229cafd74748205aa1:
4074 Release to GCS: put the final release in its own directory
4075 + 0acead4ea3631240659836ce6ecd6d7f67fd352b:
4076 Update protobuf to latest master at a64497c and apply
4077 @laszlocsomor's latest changes from
4078 https://github.com/google/protobuf/pull/2969 on top of it.
4079 + d0242ce4a87929f2528f4602d0fb09d1ccfcea94:
4080 Make symlinks consistent
4081 + d953ca8b87a46decbce385cebb446ae0dd390881:
4082 Clean VanillaJavaBuilder output directories
4083 + 755669fb5de1f4e762f27c19776cac9f410fcb94:
4084 Pass all the environment variable to Bazel during bootstrapping
4085 + 6f041661ca159903691fcb443d86dc7b6454253d:
4086 Do not mark the JDK7 installer -without-jdk-installer
4087 + 720561113bfa702acfc2ca24ce3cc3fd7ee9c115:
4088 Fix #2958: Installer should not overwrite bazelrc
4089 + 511c35b46cead500d4e76706e0a709e50995ceba:
4090 Bootstrap: move the fail function to the top
4091 + 8470be1122825aae8ad0903dd1e1e2a90cce47d2:
4092 Clean up javac and Error Prone targets
4093 + 4a404de2c6c38735167e17ab41be45ef6fc4713a:
4094 Update javac version to 9-dev-r4023-2
4095 + 36ce4b433e19498a78c34540d5a166d4e0006b22:
4096 Update javac version to 9-dev-r4023-2
4097 + 38949b8526bdb3e6db22f3846aac87162c28c33f:
4098 Migrate off versioned javac and Error Prone targets
4099 + 1a57d298f8aa6ea8136d93223902104f2479cd2a:
4100 Re-enabling passing -sourcepath via javacopts.
4101 + eb565f408e03125e92d42b00756e519795be6593:
4102 Make make sure that msys build actually builds msys version
4103 + 39f328cf392056618d1a3ead4835a138b189a06d:
4104 Fix typo. Also do not override host_cpu for msvc.
4105 + 624802893f4fe72118f00a78452605d41a2e1c6f:
4106 Select correct JDK for windows_msys
4107 + c4f271d1a68366b6fa5ff38ea7d951b6a22af044:
4108 Automated g4 rollback of commit
4109 3e5edafa2a04a71cd3596e929e83222da725f3f9.
4110 + 926180997a0f296a5a009326aead887279ce0a90:
4111 Remove process-tools.cc which I forgot to delete during the last
4112 rollback.
4113 + baca6e4cb023649920871b74810927d304729e59:
4114 Fix #2982: Bazel installer should not check for installed JDK if
4115 using a bundled JDK.
4116 + 866ecc8c3d5e0b899e3f0c9c6b2265f16daae842:
4117 Disable msys path conversion on Windows.
4118 + cc21998c299b4d1f97df37b961552ff8168da17f:
4119 Rollforward #2 of: Basic open-source crosstool to support
4120 targeting apple platform types.
4121 + 0f0ccc4fc8229c1860a9c9b58089d6cfb2ee971f:
4122 Escape % in strings that will appear in Crosstool
4123 + 3b08f774e7938928e3a240a47a0a7554cdc8d50b:
4124 Adding feature for linking C Run-Time library on Windows
4125```
4126
4127Incompatible changes:
4128
4129 - Bazel's Linux sandbox no longer mounts an empty tmpfs on /tmp,
4130 instead the existing /tmp is mounted read-write. If you prefer
4131 to have a tmpfs on /tmp for sandboxed actions for increased
4132 hermeticity, please use the flag --sandbox_tmpfs_path=/tmp.
4133 - Converting artifacts to strings and printing them now return
4134 "File" instead of "Artifact" to be consistent with the type name.
4135 - The return type of depset.to_list() is now a list rather than a
4136 frozen list. (Modifying the list has no effect on the depset.)
4137 - Bazel now prints logs in single lines to java.log
4138 - --use_dash, --dash_url and --dash_secret are removed.
4139 - Remote repositories must define any remote repositories they
4140 themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
4141 defined
4142 in @x's WORKSPACE file).
4143 - Remote repositories must define any remote repositories they
4144 themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
4145 defined
4146 in @x's WORKSPACE file).
4147 - objc_xcodeproj has been removed, use tulsi.bazel.build instead.
4148
4149New features:
4150
4151 - If grte_top is a label, it can now follow non-configurable
4152 redirects.
4153 - Optional coverage_files attribute to cc_toolchain
4154 - "query --output=build" now includes select()s
4155 - Raw LLVM profiles are now supported.
4156
4157Important changes:
4158
4159 - Automatically generate Proguard mapping when resource shrinking
4160 and Proguard are enabled.
4161 - New rules in Bazel: proto_library, java_lite_proto_library,
4162 java_proto_library and cc_proto_library
4163 - Activate the "dead_strip" feature if objc binary stripping is
4164 enabled.
4165 - More stable naming scheme for lambda classes in desugared android
4166 code
4167 - Convert --use_action_cache to a regular option
4168 - Per-architecture dSYM binaries are now propagated by
4169 apple_binary's AppleDebugOutputsProvider.
4170 - Avoid factory methods when desugaring stateless lambdas for
4171 Android
4172 - desugar calls to Objects.requireNonNull(Object o) with
4173 o.getClass() for android
4174 - Add an --copy_bridges_from_classpath argument to android
4175 desugaring tool
4176 - Change how desugar finds desugared classes to have it working on
4177 Windows
4178 - Evaluation of commands on TargetsBelowDirectory patterns
4179 (e.g. //foo/...) matching packages that fail to load now report
4180 more
4181 detailed error messages in keep_going mode.
4182 - Allow to have several inputs and outputs
4183 - Repository context's execute() function can print stdout/stderr
4184 while running. To enable, pass quiet=False.
4185 - Bazel can now be built with a bundled version of the OpenJDK.
4186 This makes it possible to use Bazel on systems without a JDK, or
4187 where
4188 the installed JDK is too old.
4189 - The --jobs flag now defaults to "auto", which causes Bazel to
4190 use a reasonable degree of parallelism based on the local
4191 machine's
4192 capacity.
4193 - Bazel benchmark (perf.bazel.build) supports Java and Cpp targets.
4194 - no factory methods generated for lambda expressions on android
4195 - The Linux sandbox no longer changes the user to 'nobody' by
4196 default, instead the current user is used as is. The old behavior
4197 can be
4198 restored via the --sandbox_fake_username flag.
4199 - /tmp and /dev/shm are now writable by default inside the
4200 Linux sandbox.
4201 - Bazel can now use the process-wrapper + symlink tree based
4202 sandbox implementation in FreeBSD.
4203 - turn on --experimental_incremental_dexing_error_on_missed_jars by
4204 default.
4205 - All android_binarys are now signed with both Apk Signature V1 and
4206 V2. See https://source.android.com/security/apksigning/v2.html
4207 for more details.
4208 - Windows MSVC wrappers: Not filtering warning messages anymore,
4209 use --copt=-w and --host_copt=-w to suppress them.
4210 - A downloader bug was fixed that prevented RFC 7233 Range
4211 connection resumes from working with certain HTTP servers
4212 - Introduces experimental android_device rule for configuring and
4213 launching Android emulators.
4214 - For boolean flags, setting them to false using --no_<flag_name>
4215 is deprecated. Use --no<flag_name> without the underscore, or
4216 --<flag_name>=false instead.
4217 - Add --experimental_android_compress_java_resources flag to store
4218 java
4219 resources as compressed inside the APK.
4220 - Removed --experimental_use_jack_for_dexing and libname.jack
4221 output of
4222 android_library.
4223 - blaze canonicalize-flags now takes a --show_warnings flag
4224 - Changing --invocation_policy will no longer force a server
4225 restart.
4226 - Bazel now supports Android NDK14.
4227 - android_binary multidex should now work without additional flags.
4228 - Use action_config in crosstool for static library archiving,
4229 remove ar_flag.
4230 - new option for bazel canonicalize-flags, --canonicalize_policy
4231 - Use action_config in crosstool for static library archiving,
4232 remove ar_flag.
4233 - android_library exports_manifest now defaults to True.
4234 - Fix select condition intersections.
4235 - Adds a --override_repository option that takes a repository
4236 name and path. This forces Bazel to use the directory at that path
4237 for the repository. Example usage:
4238 `--override_repository=foo=/home/user/gitroot/foo`.
4239 - fix idempotency issue with desugaring lambdas in interface
4240 initializers for android
4241 - --experimental_android_use_singlejar_for_multidex is now a no-op
4242 and will eventually be removed.
4243 - Every local_repository now requires a WORKSPACE file.
4244 - Remove jack and jill attributes of the android_sdk rule.
4245 - Add Skylark stubs needed to remove sysroot from CppConfiguration.
4246 - Desugar try-with-resources so that this language feature is
4247 available
4248 to deveces with API level under 19.
4249 - The flag --worker_max_retries was removed. The
4250 WorkerSpawnStrategy no longer retries execution of failed Spawns,
4251 the reason being that this just masks compiler bugs and isn't
4252 done for any other execution strategy either.
4253 - Bazel will no longer gracefully restart workers that crashed /
4254 quit, instead this triggers a build failure.
4255 - All java resources are now compressed in android_binary APKs by
4256 default.
4257 - All java resources are now compressed in android_binary APKs by
4258 default.
4259 - android_ndk_repository now creates a cc_library
4260 (@androidndk//:cpufeatures) for the cpufeatures library that is
4261 bundled in the Android NDK. See
4262 https://developer.android.com/ndk/guides/cpu-features.html for
4263 more details.
4264 - 'output_groups' and 'instrumented_files' cannot be specified in
4265 DefaultInfo.
4266 - You can increase the CPU reservation for tests by adding a
4267 "cpu:<n>" (e.g. "cpu:4" for four cores) tag to their rule in a
4268 BUILD file. This can be used if tests would otherwise overwhelm
4269 your system if there's too much parallelism.
4270 - Deprecate use_singlejar_for_proguard_libraryjars and force
4271 behavior to always on.
4272
Bazel Release System8d635fc2017-03-16 13:18:30 +01004273## Release 0.4.5 (2017-03-16)
4274
4275```
4276Baseline: 2e689c29d5fc8a747216563235e905b1b62d63b0
4277
4278Cherry picks:
4279 + a28b54033227d930672ec7f2714de52e5e0a67eb:
4280 Fix Cpp action caching
4281 + 6d1d424b4c0da724e20e14235de8012f05c470f8:
4282 Fix paths of binaries in .deb packages.
4283 + 0785cbb672357d950e0c045770c4567df9fbdc43:
4284 Update to guava 21.0 and Error Prone version 2.0.18-20160224
4285 + 30490512eb0e48a3774cc4e4ef78680e77dd4e47:
4286 Update to latest javac and Error Prone
4287 + 867d16eab3bfabae070567ecd878c291978ff338:
4288 Allow ' ', '(', ')' and '$' in labels
4289 + 7b295d34f3a4f42c13aafc1cc8afba3cb4aa2985:
4290 Pass through -sourcepath to the JavaBuilder
4291 + 14e4755ce554cdfc685fc9cc2bfb5b699a3b48f4:
4292 PathFragment comparisons are now platform-aware
4293 + ed7795234ca7ccd2567007f2c502f853cd947e50:
4294 Flag to import external repositories in python import path
4295 + 81ae08bbc13f5f4a04f18caae339ca77ae2699c1:
4296 Suppress error for non-exhaustive switches
4297 + e8d1177eef9a9798d2b971630b8cea59471eec33:
4298 Correctly returns null if an environment variables is missing
4299 + 869d52f145c077e3499b88df752cebc60af51d66:
4300 Fix NPE in Android{S,N}dkRepositoryFunction.
4301 + d72bc57b60b26245e64f5ccafe023a5ede81cc7f:
4302 Select the good guava jars for JDK7 build
4303 + 92ecbaeaf6fa11dff161254df38d743d48be8c61:
4304 Windows: Assist JNI builds with a target for jni_md.h.
4305 + 36958806f2cd38dc51e64cd7bcc557bd143bbdb6:
4306 Add java_common.create_provider to allow creating a
4307 java_common.provider
4308 + 8c00f398d7be863c4f502bde3f5d282b1e18f504:
4309 Improve handling of unknown NDK revisions in
4310 android_ndk_repository.
4311 + b6ea0d33d3ab72922c8fb3ec1ff0e437af09584d:
4312 Add the appropriate cxx_builtin_include_directory entries for
4313 clang to the Android NDK crosstool created by
4314 android_ndk_repository.
4315```
4316
4317Incompatible changes:
4318
4319 - Depsets (former sets) are converted to strings as "depset(...)"
4320 instead of
4321 "set(...)".
4322 - Using --symlink_prefix is now applied to the output
4323 symlink (e.g. bazel-out) and the exec root symlink (e.g.
4324 bazel-workspace).
4325 - Bazel now uses the test's PATH for commands specified as
4326 --run_under; this can affect users who explicitly set PATH to
4327 a more
4328 restrictive value than the default, which is to forward the
4329 local PATH
4330 - It's not allowed anymore to compare objects of different types
4331 (i.e. a string to an integer) and objects for which comparison
4332 rules are not
4333 defined (i.e. a dict to another dict) using order operators.
4334
4335New features:
4336
4337 - environ parameter to the repository_rule function let
4338 defines a list of environment variables for which a change of
4339 value
4340 will trigger a repository refetching.
4341
4342Important changes:
4343
4344 - android_ndk_repository now supports Android NDK R13.
4345 - Android resource shrinking is now available for android_binary
4346 rules. To enable, set the attribute 'shrink_resources = 1'. See
4347 https://bazel.build/versions/master/docs/be/android.html#android_b
4348 inary.shrink_resources.
4349 - resolve_command/action's input_manifest return/parameter is now
4350 list
4351 - For increased compatibility with environments where UTS
4352 namespaces are not available, the Linux sandbox no longer hides
4353 the hostname of the local machine by default. Use
4354 --sandbox_fake_hostname to re-enable this feature.
4355 - proto_library: alias libraries produce empty files for descriptor
4356 sets.
4357 - Adds pkg_rpm rule for generating RPM packages.
4358 - Allow CROSSTOOL files to have linker flags specific to static
4359 shared libraries.
4360 - Make it mandatory for Java test suites in bazel codebase, to
4361 contain at least one test.
4362 - Support for Java 8 lambdas, method references, type annotations
4363 and repeated annotations in Android builds with
4364 --experimental_desugar_for_android.
4365 - Removed .xcodeproj automatic output from objc rules. It can still
4366 be generated by requesting it explicitly on the command line.
4367 - Flips --explicit_jre_deps flag on by default.
4368 - Activate the "dbg", "fastbuild", and "opt" features in the objc
4369 CROSSTOOL.
4370 - Remove support for configuring JDKs with filegroups; use
4371 java_runtime and java_runtime_suite instead
4372 - android_ndk_repository api_level attribute is now optional. If not
4373 specified, the highest api level in the ndk/platforms directory
4374 is used.
4375
Bazel Release System6712cac2017-02-01 19:53:37 +01004376## Release 0.4.4 (2017-02-01)
4377
4378```
4379Baseline: 4bf8cc30a
4380
4381Cherry picks:
4382 + ef1c6fd33: msvc_tools.py.tpl: Change default runtime library to
4383 static
4384```
4385
4386Incompatible changes:
4387
4388 - Only targets with public visibility can be bound to something in
4389 //external: .
4390 - The deprecated -x startup option has been removed.
4391 - docker_build: change the repository names embedded by
4392 docker_build. You can revert to the old behavior by setting
4393 legacy_repository_naming=True.
4394 - The string methods strip(), lstrip(), and rstrip() now
4395 by default remove the same whitespace characters as Python 3
4396 does, and accept
4397 None as an argument.
4398 - Deprecated globals HOST_CFG and DATA_CFG are removed. Use strings
4399 "host" and "data" instead.
4400 - repository_ctx environment is now affected by --action_env flag
4401 (value from the
4402 client environment will be replaced by value given on the command
4403 line through --action_env).
4404 - All executable labels must also have a cfg parameter specified.
4405 - Removed the cmd_helper.template function.
4406 The function was equivalent to:
4407 def template(items, template):
4408 return [template.format(path = i.path, short_path =
4409 i.short_path)
4410 for i in items]
4411 - Tuples that end with a trailing comma must now be inside parens,
4412 e.g. (1,) instead of 1,
4413 - The traversal orders for depsets have been renamed. The old names
4414 are deprecated and will be removed in the future. New names:
4415 "stable" -> "default", "compile" -> "postorder", "link" ->
4416 "topological", "naive_link" -> "preorder".
4417
4418New features:
4419
4420 - Skylark: you can now multiply a list by an integer to get the
4421 concatenation of N copies of this list, e.g. [a,b] * 3 =
4422 [a,b,a,b,a,b]
4423 - Allow Android aidl tool to add a jar to the program's classpath,
4424 such as if needed to support generated sources.
4425 - Add transitive proguard_specs when android_sdk.aidl_lib is
4426 specified
4427 - Windows: "/dev/null" is now a supported path, e.g.
4428 --bazelrc=/dev/null now works
4429
4430Important changes:
4431
4432 - Bazel Android builds use the apksigner tool from the Android SDK
4433 build-tools. Bazel Android builds now require build-tools version
4434 24.0.3 or
4435 later.
4436 - Android SDK external bindings for support libraries, e.g.
4437 //external:android/appcompat_v4, are removed because the support
4438 library JARs that they referenced no longer ship with the Android
4439 SDK.
4440 - aar_import rule is now documented.
4441 - An IE bug was fixed in repository_ctx.download_and_extract
4442 - Update "-I" to "-isystem" in documentation to reflect current
4443 behavior.
4444 - android_sdk_repository build_tools_version is now optional. The
4445 highest installed build-tools will be used if none is specified.
4446 - New flag --sandbox_add_mount_pair to specify customized
4447 source:target path pairs to bind mount inside the sandbox.
4448 - expose proto_library descriptor set to skylark via
4449 <dep>.proto.descriptor_set
4450 - The `set` constructor is deprecated in favor of `depset`
4451 - Autodetect gold linker in cc_configure.bzl
4452 - Remove build flag --experimental_j2objc_annotation_processing. It
4453 is on by default now.
4454 - Set clang's -mwatchos-version-min correctly using the value of
4455 --watchos_minimum_os, not --watchos_sdk_version.
4456 - singlejar can now create jar files larger than 4GB.
4457 - android_sdk_repository and android_ndk_repository now read
4458 $ANDROID_HOME and $ANDROID_NDK_HOME if the path attribute is not
4459 set.
4460 - Removed broken api levels 3, 4 and 5 from Android NDK 12.
4461 - Default --android_dynamic_mode to off.
4462 - android_sdk_repository no longer requires api_level. If one is
4463 not specified, the highest android platform installed will be
4464 used. Furthermore, android_sdk's are created for all android
4465 platforms installed and can be specified with the --android_sdk
4466 flag.
4467 - To iterate over or test for membership in a set, prefer using the
4468 new to_list() method. E.g., "for x in myset.to_list():", or
4469 "print(x in myset.to_list())". Iteration/membership-test on the
4470 raw set itself is deprecated.
4471 - Remove support for --javawarn; use e.g. --javacopt=-Xlint:all
4472 instead
4473
Bazel Release Systemd3b23642016-12-22 13:30:47 +01004474## Release 0.4.3 (2016-12-22)
Bazel Release System80865ff2016-11-30 13:18:54 +01004475
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01004476```
Bazel Release Systemd3b23642016-12-22 13:30:47 +01004477Baseline: c645a45
Bazel Release System80865ff2016-11-30 13:18:54 +01004478
4479Cherry picks:
Bazel Release Systemd3b23642016-12-22 13:30:47 +01004480 + af878d0: Add coverage support for java test. (series 4/4 of
4481 open-sourcing coverage command for java test)
4482 + 09b92a8: Rollback of commit
4483 67b4d5250edcefa7220e928e529b1f385e2dc464.
4484 + b11dd48: Fix bad bug with the parallel implementation of
4485 BinaryOperatorExpression. Turns out that
4486 ForkJoinTask#adapt(Callable) returns a ForkJoinTask
4487 whose Future#get on error throws a ExecutionException
4488 wrapping a RuntimeException wrapping the thrown checked
4489 exception from the callable. This is documented
4490 behavior [1] that I incorrectly didn't know about.
4491 + 9012bf1: Fix scripts/packages/convert_changelog to read the
4492 changelog correctly
4493 + 55c97bc: Release script: if master branch does not exist, fall
4494 back on origin/master
4495 + 4fb378c: Debian repository: override section and priority fields
4496 + acbcbc2: Fix release notes in emails
4497 + 4975760: Fix PathFragment to not use Java8-only static hashCode
4498 methods.
4499 + 05fd076: Disable sandboxing for XibCompile actions.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01004500```
Bazel Release System80865ff2016-11-30 13:18:54 +01004501
4502Incompatible changes:
4503
Bazel Release Systemd3b23642016-12-22 13:30:47 +01004504 - Skylark maven_jar and maven_aar settings attribute is now a label
4505 so it can be checked into your workspace.
4506 - --{no}experimental_use_rclass_generator is now a nop.
4507
4508New features:
4509
4510 - Coverage support (*experimental*) for pure Java target.
4511 Use `bazel coverage //my:target` to generate coverage information
4512 from a `java_test`.
Bazel Release System80865ff2016-11-30 13:18:54 +01004513
4514Important changes:
4515
Bazel Release Systemd3b23642016-12-22 13:30:47 +01004516 - Enable fallback URLs in Skylark http rules.
4517 - cc_proto_library generates C++ code from proto_library rules.
4518 - cc_library now supports the strip_prefix and strip_include_prefix
4519 attributes for control of include paths.
4520 - Skylark dicts internally don't rely on keys order anymore and
4521 accept any hashable values (i.e. structs with immutable values)
4522 as keys. Iteration order of dictionaries is no longer specified.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01004523
4524## Release 0.4.2 (2016-12-02)
4525
4526```
4527Baseline: 6331a94
4528
4529Cherry picks:
4530 + 7b835d9: Do not patch WORKSPACE in the release process
4531```
4532
4533Incompatible changes:
4534
4535 - Callback functions in Skylark no longer support the cfg
4536 parameter. This is a cleanup and only affects the signatures of
4537 callbacks, since the parameter hasn't been set since September
4538 2016.
4539
4540Important changes:
4541
4542 - Alias proto_library's produce a descriptor set that contains all
4543 srcs of its dependencies.
4544 - proto_library supports strict proto deps.
4545 - Top level @androidsdk support library targets have been replaced
4546 by @androidsdk//<group id>:<artifact id>-<version> for Android
4547 SDK Support and Google Play Services libraries.
4548
Bazel Release System15402a92016-11-30 10:12:30 +01004549## Release 0.4.1 (2016-11-21)
4550
4551```
4552Baseline: 9a796de
4553
4554Cherry picks:
4555 + 88bfe85: Description redacted. -- MOS_MIGRATED_REVID=139219934
4556 + b09ea94: Rollback of commit
4557 a3f5f576cd35798140ba3e81d03d919dd4ecb847.
4558```
4559
4560New features:
4561
4562 - android_library now has a "exported_plugins" attribute just like
4563 java_library
4564 - Use --strict_system_includes to apply hdrs_check=strict also to
4565 cc_library.includes, even if sandboxing is disabled.
4566 - Bazel on Windows: java_binary can now be the executable of
4567 Skylark rule actions (ctx.action's executable argument)
4568 - Packages are defined in BUILD.bazel as well as BUILD files.
4569
4570Important changes:
4571
4572 - getattr()'s 3-arg form no longer raises an error when the
4573 retrieved field is a built-in method.
4574 - --apk_signing_method default changed to v1. Android APKs are now
4575 signed with the new ApkSignerTool by default.
4576 - New rule: proto_lang_toolchain(), to support LANG_proto_library
4577 rules on multiple platforms.
4578 - Fix for Android clang++ std::stack segfault on 32bit x86. See
4579 https://code.google.com/p/android/issues/detail?id=220159
4580 - Default android_manifest_merger is now "android" which uses the
4581 official Android manifest merger.
4582 http://tools.android.com/tech-docs/new-build-system/user-guide/man
4583 ifest-merger
4584 - Do not propagate aspect to its own attributes when using '*'.
4585 - Comparing sets (`if set1 < set2:`) is not allowed anymore in
4586 Skylark because it didn't work correctly anyway.
4587 - When --experimental_extra_action_top_level_only, Bazel reports
4588 extra-actions for actions registered by Aspects injected by a
4589 top-level rule (approximately).
4590 - Blacklists for proto_lang_toolchain() no longer have to be
4591 proto_library's.
4592 - Extra actions now contain aspect-related information.
4593 - Fix slicing bug where "abc"[:-4:-1] would give wrong answer
4594
Bazel Release Systemd0761e62016-11-02 13:36:35 -04004595## Release 0.4.0 (2016-10-26)
4596
4597```
4598Baseline: 088bbc6
4599
4600Cherry picks:
4601 + b01160c: Stamp Windows release.
4602 + 2d6736e: Add --no-tty for gpg signing
4603 + 9b1dfb8: Remove .sig file before gpg signing
4604 + 81aede1: Reimplement whole archive on Windows
4605```
4606
4607Incompatible changes:
4608
4609 - Skylark: updating list/dicts while they are being looped over is not
4610 allowed. Use an explicit copy if needed ("for x in list(mylist):").
4611 - Bazel now uses the --cpu flag to look up Jvms; it falls back
4612 to "default" if it can't find a Jvm matching the CPU value.
4613 - --command_port=-1 to use AF_UNIX for client/server communications
4614 is not supported anymore.
4615 - Sandboxed actions can access the network by default, unless their
4616 target has a "block-network" tag.
4617
4618New features:
4619
4620 - Files now have an "extension" property in Skylark.
4621
4622Important changes:
4623
4624 - Added a new flag --sandbox_tmpfs_path, which asks the sandbox to
4625 mount an empty, writable directory at a specified path when
4626 running actions. (Supported on Linux only for now.)
4627 - Update protoc-3.0.0-mingw.exe to a working (statically linked)
4628 binary
4629 - apple_static_library rule to create multi-architecture static
4630 archive files from Objc/C++/Swift dependencies on apple platforms
4631 - JS: Add support for localization with closure managed rules.
4632 - Create a flag --android_dynamic_mode to turn off dynamic mode
4633 during the Android split transition.
4634 - Darwin sandboxing is default.
4635 - Remove flag --experimental_zip_tree_artifact from j2objc Java
4636 annotation processing support.
4637 - A few functions are added to BUILD files for consistency (hash,
4638 dir,
4639 hasattr, getattr) with .bzl files, although they are not very
4640 useful.
4641 - --watchfs is now a command option; the startup option of the same
4642 name is deprecated. I.e., use bazel build --watchfs, not
4643 blaze --watchfs
4644 build.
4645
Bazel Release System33579a42016-10-07 13:05:11 -04004646## Release 0.3.2 (2016-10-07)
4647
4648```
4649Baseline: 023a7bd
4650
4651Cherry picks:
4652 + bebbbe5: Fix dependency on libtool's helper script
4653 make_hashed_objlist.py.
4654 + 8a0d45f: Add the version information to the bazel.exe file
4655 + 2bc0939: Allow new_ rules to overwrited BUILD files in
4656 downloaded repos
4657 + c5545fd: Rollback of commit
4658 96d46280bc5a4803ba2242a4ad16939f85a3b212.
4659 + eb87208: Make cc_configure on Windows more robust
4660 + c30432c: Fix cc_configure on Windows
4661 + 95b16a8: sandbox: Replace the error-prone lazy cleanup of
4662 sandbox directories by a simple synchronous cleanup.
4663 + e898023: Fix #1849: Sandboxing on OS X should be turned off by
4664 default for 0.3.2.
4665 + ffdc05d: Add action_config and feature for linking on Windows
4666```
4667
4668Incompatible changes:
4669
4670 - If you maintain a rule that uses persistent workers, you'll have
4671 to specify execution_requirements={"supports-workers": 1} in the
4672 ctx.action that intends to run a tool with workers. The
4673 WorkerSpawnStrategy will alert you with a warning message if you
4674 forget to make this change and fallback to non-worker based
4675 execution.
4676 - It is now an error to include a precompiled library (.a, .lo, .so)
4677 in a cc_library which would generate a library with the same name
4678 (e.g., libfoo.so in cc_library foo) if that library also contains
4679 other linkable
4680 sources.
4681 - The main repository's execution root is under the main
4682 repository's workspace name, not the source directory's basename.
4683 This shouldn't
4684 have any effect on most builds, but it's possible it could break
4685 someone doing
4686 weird things with paths in actions.
4687 - Blaze doesn't support Unix domain sockets for communication
4688 between its client and server anymore. Therefore, the
4689 --command_port command line argument doesn't accept -1 as a valid
4690 value anymore.
4691 - Skylark: It is an error to shadow a global variable with a local
4692 variable after the global has already been accessed in the
4693 function.
4694 - bin_dir and genfiles_dir are now properties of ctx, not
4695 configuration. That is, to access the bin or genfiles directory
4696 from a
4697 Skylark rule, use ctx.bin_dir or ctx.genfiles_dir (not
4698 ctx.configuration.{bin,genfiles}_dir). At the moment, you can
4699 access
4700 {bin,genfiles}_dir from either, but the ctx.configuration version
4701 will
4702 stop working in a future release.
4703 - filegroup-based C++ toolchains are not supported anymore.
4704 --*_crosstool_top options must always point to a
4705 cc_toolchain_suite rule (or an alias of one).
4706 - repository_ctx.{download,download_and_extract,execute} API now use
4707 named parameters for optional parameters and no
4708 longer uses argument
4709 type to distinguished between arguments
4710 (executable attribute name
4711 must be specified when preceding optional
4712 arguments are missing).
4713
4714New features:
4715
4716 - print and fail are now available in BUILD files.
4717
4718Important changes:
4719
4720 - Added @bazel_tools//tools/build_defs/repo/git.bzl as a Skylark
4721 rule for Git repositories.
4722 - Added @bazel_tools//tools/build_defs/repo/maven_rules.bzl as a
4723 Skylark rule for Maven repositories.
4724 - Add global hash() function for strings (only)
4725 - Improve Android split transition handling.
4726 - Removes exports_manifest attribute from android_binary rule.
4727 - java_proto_library: control strict-deps through a rule-level and
4728 a package-level attribute.
4729 - Persistent workers are now used by default for Java compilation
4730 in Bazel, which should speed up your Java builds by ~4x. You can
4731 switch back to the old behavior via --strategy=Javac=standalone.
4732 Check out http://www.bazel.io/blog/2015/12/10/java-workers.html
4733 for more details.
4734 - objc_* rules can now depend on any target that returns an "objc"
4735 provider.
4736 - Adds support for NDK12 to `android_ndk_repository` rule in Bazel.
4737 - Test targets can disable the JUnit4 test security manager via a
4738 property.
4739 - Disable the Android split transition if --android_cpu and
4740 fat_apk_cpu are both empty.
4741 - New sandboxing implementation for Linux in which all actions run
4742 in a separate execroot that contains input files as symlinks back
4743 to the originals in the workspace. The running action now has
4744 read-write access to its execroot and /tmp only and can no longer
4745 write in arbitrary other places in the file system.
4746 - Add worker support to single jar.
4747 - Invoke source jar action as a worker.
4748 - Sandboxed builds allow network access for builds by default.
4749 Tests will still be run without networking, unless
4750 "requires-network" is specified as a tag.
4751 - Add path.realpath() method for Skylark repositories.
4752 - On Mac devices, detect locally installed versions of xcode to:
4753 1. Use a sensible default if xcode is required but
4754 --xcode_version is unspecified.
4755 2. Use sensible default iOS SDK version for the targeted version
4756 of xcode if ios_sdk_version is unspecified.
4757 - Emacs' [C-x `], a.k.a. next-error, works again in emacsen >= 25.1
4758 - swift_library can be used to build watchOS apps.
4759 - Exposes the is_device field on Apple platform objects and adds
4760 the apple_common.platform_type(name) method to retrieve a
4761 platform_type value that can be passed to methods like the Apple
4762 fragment's multi_arch_platform.
4763 - Move Skylark git_repository rules to git.bzl
4764 - Add support for aspects to attr.label() attributes
4765 - Global varaiables HOST_CFG and DATA_CFG are deprecated in favor
4766 of strings "host"
4767 and "data.
4768 Argument `cfg = "host"` or `cfg = "data"` is mandatory if
4769 `executable = True` is provided for a label.
4770 - The deprecation attribute of all rules now causes warnings
4771 to be printed when other targets depend on a target with that
4772 attribute set.
4773 - Change default of --[no]instrument_test_targets to false, change
4774 default --instrumentation_filter (which previously tried to
4775 exclude test targets by heuristic) to only exclude targets in
4776 javatests.
4777 - Remove deprecated absolute paths in blaze IDE artifacts
4778 - When using android_binary.manifest_merger="android" the merger
4779 produces a summary log next to the merged manifest artifact.
4780 - Allow different default mallocs per configuration.
4781
Bazel Release System70c772b2016-07-29 10:28:13 +02004782## Release 0.3.1 (2016-07-29)
4783
4784```
4785Baseline: 792a9d6
4786
4787Cherry picks:
4788 + 25e5995: Rollback of commit
4789 a2770334ea3f3111026eb3e1368586921468710c.
4790 + 2479405: Fix NPE with unset maven_jar sha1
4791 + 3cf2126: Rewrite the extra action info files if the data within
4792 them changes.
4793 + 5a9c6b4: JavaBuilder: Reintroduce the -extra_checks flag.
4794```
4795
4796Incompatible changes:
4797
4798 - Removed predefined Python variable "generic_cpu".
4799 - Skylark rules: if you set "outputs" or an attribute to a
4800 function, this function must now list its required attributes as
4801 parameters (instead of an attribute map).
4802 - The host_platform and target_platform entries are not written to
4803 the master log anymore.
4804 - Bazel requires Hazelcast 3.6 or higher now for remote execution
4805 support, because we upgraded our client library and the protocol
4806 it uses is incompatible with older versions.
4807
4808New features:
4809
4810 - LIPO context (--lipo_context) can now also be a cc_test (in
4811 addition to cc_binary)
4812
4813Important changes:
4814
4815 - If --android_crosstool_top is set, native code compiled for
4816 android will always use --android_compiler and not --compiler in
4817 choosing the crosstool toolchain, and will use --android_cpu if
4818 --fat_apk_cpu is not set.
4819 - Add --instrument_test_targets option.
4820 - apple_binary supports a new platform_type attribute, which, if
4821 set to "watchos", will build dependencies for Apple's watchOS2.
4822 - objc_binary now supports late-loaded dynamic frameworks.
4823 - Native Swift rules no longer pull in module maps unconditionally.
4824 Use --experimental_objc_enable_module_maps for that.
4825 - Merged manifests are guaranteed to have the application element
4826 as the last child of the manifest element as required by Android
4827 N.
4828 - The Android manifest merger is now available as an option for
4829 android_binary rules. The merger will honor tools annotations in
4830 AndroidManifest.xml and will perform placeholder substitutions
4831 using the values specified in android_binary.manifest_values. The
4832 merger may be selected by setting the manifest_merger attribute
4833 on android_binary.
4834 - The progress message would not clear packages that need to be
4835 loaded twice.
4836 - Remove warning for high value of --jobs.
4837 - Use the correct build configuration for shared native deps during
4838 Android split transitions.
4839 - When building ObjectiveC++, pass the flag -std=gnu++11.
4840 - use xcrun simctl instead of iossim to launch the app for "blaze
4841 run".
4842 - Glob arguments 'exclude' and 'exclude_directories' must be named
4843 - Bazel no longer regards an empty file as changed if its mtime has
4844 changed.
4845
Bazel Release Systemccadf8d2016-06-10 13:28:40 +02004846## Release 0.3.0 (2016-06-10)
4847
4848```
4849Baseline: a9301fa
4850
4851Cherry picks:
4852 + ff30a73: Turn --legacy_external_runfiles back on by default
4853 + aeee3b8: Fix delete[] warning on fsevents.cc
4854```
4855
4856Incompatible changes:
4857
4858 - The --cwarn command line option is not supported anymore. Use
4859 --copt instead.
4860
4861New features:
4862
4863 - On OSX, --watchfs now uses FsEvents to be notified of changes
4864 from the filesystem (previously, this flag had no effect on OS X).
4865 - add support for the '-=', '*=', '/=', and'%=' operators to
4866 skylark. Notably, we do not support '|=' because the semantics
4867 of skylark sets are sufficiently different from python sets.
4868
4869Important changes:
4870
4871 - Use singular form when appropriate in blaze's test result summary
4872 message.
4873 - Added supported for Android NDK revision 11
4874 - --objc_generate_debug_symbols is now deprecated.
4875 - swift_library now generates an Objective-C header for its @objc
4876 interfaces.
4877 - new_objc_provider can now set the USES_SWIFT flag.
4878 - objc_framework now supports dynamic frameworks.
4879 - Symlinks in zip files are now unzipped correctly by http_archive,
4880 download_and_extract, etc.
4881 - swift_library is now able to import framework rules such as
4882 objc_framework.
4883 - Adds "jre_deps" attribute to j2objc_library.
4884 - Release apple_binary rule, for creating multi-architecture
4885 ("fat") objc/cc binaries and libraries, targeting ios platforms.
4886 - Aspects documentation added.
4887 - The --ues_isystem_for_includes command line option is not
4888 supported anymore.
4889 - global function 'provider' is removed from .bzl files. Providers
4890 can only be accessed through fields in a 'target' object.
4891
Bazel Release System9fdd6012016-05-17 11:12:31 +02004892## Release 0.2.3 (2016-05-10)
4893
4894```
4895Baseline: 5a2dd7a
4896```
4897
4898Incompatible changes:
4899
4900 - All repositories are now directly under the x.runfiles directory
4901 in the runfiles tree (previously, external repositories were at
4902 x.runfiles/main-repo/external/other-repo. This simplifies
4903 handling remote repository runfiles considerably, but will break
4904 existing references to external repository runfiles.
4905 Furthermore, if a Bazel project does not provide a workspace name
4906 in the WORKSPACE file, Bazel will now default to using __main__
4907 as the workspace name (instead of "", as previously). The
4908 repository's runfiles will appear under x.runfiles/__main__/.
4909 - Bazel does not embed protocol buffer-related rules anymore.
4910 - It is now an error for a cc rule's includes attribute to point to
4911 the workspace root.
4912 - Bazel warns if a cc rule's includes attribute points out of
4913 third_party.
4914 - Removed cc_* attributes: abi / abi_deps. Use select() instead.
4915
4916New features:
4917
4918 - select({"//some:condition": None }) is now possible (this "unsets"
4919 the attribute).
4920
4921Important changes:
4922
4923 - java_import now allows its 'jars' attribute to be empty.
4924 - adds crunch_png attribute to android_binary
4925 - Replace --java_langtools, --javabuilder_top, --singlejar_top,
4926 --genclass_top, and --ijar_top with
4927 java_toolchain.{javac,javabuilder,singlejar,genclass,ijar}
4928 - External repository correctness fix: adding a new file/directory
4929 as a child of a new_local_repository is now noticed.
4930 - iOS apps are signed with get-task-allow=1 unless building with -c
4931 opt.
4932 - Generate debug symbols (-g) is enabled for all dbg builds of
4933 objc_ rules.
4934 - Bazel's workspace name is now io_bazel. If you are using Bazel's
4935 source as an external repository, then you may want to update the
4936 name you're referring to it as or you'll begin seeing warnings
4937 about name mismatches in your code.
4938 - Fixes integer overflow in J2ObjC sources to be Java-compatible.
4939 - A FlagPolicy specified via the --invocation_policy flag will now
4940 match the current command if any of its commands matches any of
4941 the commands the current command inherits from, as opposed to
4942 just the current command.
4943 - The key for the map to cc_toolchain_suite.toolchains is now a
4944 string of the form "cpu|compiler" (previously, it was just "cpu").
4945 - Fix interaction between LIPO builds and C++ header modules.
4946 - Ctrl-C will now interrupt a download, instead of waiting for it to
4947 finish.
4948 - Proxy settings can now be specified in http_proxy and https_proxy
4949 environment variables (not just HTTP_PROXY and HTTPS_PROXY).
4950 - Skylark targets can now read include directories from
4951 ObjcProvider.
4952 - Expose parameterized aspects to Skylark.
4953 - Support alwayslink cc_library dependencies in objc binaries.
4954 - Import cc_library dependencies in generated Xcode project.
4955
Bazel Release System1aedd1f12016-04-25 09:47:50 +02004956## Release 0.2.2b (2016-04-22)
Bazel Release System951cea22016-04-21 14:10:12 +02004957
4958```
4959Baseline: 759bbfe
Bazel Release System1aedd1f12016-04-25 09:47:50 +02004960
4961Cherry picks:
Bazel Release System951cea22016-04-21 14:10:12 +02004962 + 1250fda: Rollback of commit
4963 351475627b9e94e5afdf472cbf465f49c433a25e.
4964 + ba8700e: Correctly set up build variables for the correct pic
4965 mode for fake_binary rules.
4966 + 386f242: Automated [] rollback of commit
4967 525fa71b0d6f096e9bfb180f688a4418c4974eb4.
Bazel Release System1aedd1f12016-04-25 09:47:50 +02004968 + 97e5ab0: Fix cc_configure include path for Frameworks on OS X.
4969 + a20352e: cc_configure: always add -B/usr/bin to the list of gcc
4970 option
4971 + 0b26f44: cc_configure: Add piii to the list of supported
4972 cpu_value
4973 + 3e4e416: cc_configure: uses which on the CC environment variable
4974 + aa3dbd3: cc_configure.bzl: strip end of line when looking for
4975 the cpu
4976 + 810d60a: cc_configure: Add -B to compiler flag too
Bazel Release System951cea22016-04-21 14:10:12 +02004977```
4978
Bazel Release System1aedd1f12016-04-25 09:47:50 +02004979Patch release, only includes fixes to C++ auto-configuration.
Bazel Release System951cea22016-04-21 14:10:12 +02004980
Bazel Release System950c1ab2016-03-31 17:18:55 +02004981## Release 0.2.1 (2016-03-21)
4982
4983```
4984Baseline: 19b5675
4985```
4986
4987Incompatible changes:
4988
4989 - Skylark rules that are available from their own repository will
4990 now issue a warning when accessed through @bazel_tools.
4991 - Set --legacy_bazel_java_test to off by default. java_test will
4992 now have a slightly different behaviour, correctly emitting XML
4993 file but, as a downside, it needs correct declaration of the
4994 test suite (see https://github.com/bazelbuild/bazel/issues/1017).
4995 - Labels in .bzl files in remote repositories will be resolved
4996 relative to their repository (instead of the repository the
4997 Skylark rule is used in).
4998 - Renamed proto_java_library to java_proto_library. The former
4999 is now deprecated and will print out a warning when used.
5000 - android_sdk now compiles android_jack on the fly from
5001 android_jar, which means android_jar must be a jar and
5002 android_jack is now deprecated. The Jack tools (jack, jill,
5003 resource_extractor) must be specified.
5004 - Any project that depended on the objc_options rule will be
5005 broken. Can be fixed by adding attrs (infoplists,copts) directly
5006 to rules depending on the options.
5007 - .aidl files correctly require import statements for types
5008 defined in the same package and the same android_library.
5009
5010New features:
5011
5012 - Experimental Windows support is available.
5013 - Experimental support for writing remote repository rules in
5014 Skylark is available.
5015 - iOS ipa_post_processor attribute allows for user-defined IPA
5016 edits.
5017 - Adds a to_json method to Skylark structs, providing conversion to
5018 JSON format.
5019 - Native python rule can depend on skylark rule as long as skylark
5020 rule provides 'py' provider.
5021 - When using both --verbose_failures and --sandbox_debug, Bazel
5022 prints instructions how to spawn a debugging shell inside the
5023 sandbox.
5024 - add flag --sandbox_add_path, which takes a list of additional
5025 paths as argument and mount these paths to sandbox.
5026
5027Important changes:
5028
5029 - @androidsdk//:org_apache_http_legacy added for the legacy Apache
5030 classes for android sdk version 23 and above.
5031 - Genrules correctly work when used with bazel run.
5032 - When namespace-sandbox is run with the -D (debug) flag and
5033 inside a terminal, it spawns a shell inside the sandbox to aid in
5034 debugging when the sandboxed command fails.
5035 - Added --artifact to workspace generator for generating workspace
5036 and build file rules from artifact coodrinates.
5037 - Specifying --experimental_android_resource_shrinking on the
5038 command line will enable a resource shrinking pass on
5039 android_binary targets that already use Proguard.
5040 - J2ObjC updated to 1.0.1 release.
5041 - Added "root_symlinks" and "symlinks" parameters to Skylark
5042 runfiles() method.
5043 - You can no longer use objc_binary targets for the xctest_app
5044 attribute of an ios_test rule.
5045 - Enable overriding jsonnet binaries and stdlib for Jsonnet rules.
5046 - mount target of /etc/resolv.conf if it is a symlink.
5047 - Tests that failed to build because execution was halted no longer
5048 print their status.
5049 - Bazel warns if a cc rule's includes attribute contains up-level
5050 references that escape its package.
5051 - Add repository_ctx.download and repository_ctx.download_and_extract
5052 function.
5053
Bazel Release Systemf98290d2016-02-23 13:51:16 +01005054## Release 0.2.0 (2016-02-18)
5055
5056```
5057Baseline: 9e100ac
5058```
5059
5060Incompatible changes:
5061
5062 - ObjC compile actions for J2ObjC-translated code now only has
5063 access to headers from the java deps of the associated original
5064 java rule.
5065 These compile actions no longer takes the compiler options
5066 specified in "copts" attribute on objc_binary/ios_test rules.
5067 J2ObjC dead code removal (enabled through flag
5068 "--j2objc_dead_code_removal") now happens *after* ObjC
5069 compilation.
5070 - maven_jar no longer supports separate artifact_id, group_id, and
5071 verison fields. This information should be provided in the
5072 artifact field,
5073 instead.
5074
5075New features:
5076
5077 - Better support for toolchains that don't have a dynamic linker.
5078 - build_file_content attribute added to new_git_repository,
5079 new_http_archive, and new_local_repository.
5080 - Add support for .tar.bz2 archives to http_archive rules.
5081
5082Important changes:
5083
5084 - The --skyframe flag is no longer available for the build command.
5085 - The --artifacts flag was removed from the dump command.
5086 - The sha256 attribute is now optional (although recommended!) for
5087 remote repository rules.
5088 - Add instrumented file provider support to Skylark rules.
5089 - Add imports attribute to native Python rules.
5090 - Allow overriding -gsplit-dwarf from copts.
5091 - Improved sandbox performance on XFS filesystems.
5092
Bazel Release System00cf25d2016-02-09 18:36:51 +01005093## Release 0.1.5 (2016-02-05)
5094
5095```
5096Baseline: 3a95f35
5097 + 8378cd8: Rollback of commit
5098 a9b84575a32476a5faf991da22b44661d75c19b6.
5099```
5100
5101Incompatible changes:
5102
5103 - Set stamping to false by default (i.e., --nostamp)
5104 - Removed --objc_dump_syms_binary.
5105 - Removes --objc_gcov_binary flag.
5106 - Remove JAVAC "Make" variable
5107 - The startup flag --blaze_cpu is removed,
5108
5109New features:
5110
5111 - A new java test runner that support XML output and test filtering
5112 is supported. It can be used by specifying --nolegacy_bazel_java_test
5113 or by specifying the test_class attribute on a java_test.
5114 - Skylark aspects can now specify configuration fragment
5115 dependencies with fragments and host_fragments like rules can.
5116
5117Important changes:
5118
5119 - Support for downloading remote resources through proxies by
5120 setting HTTP_PROXY (or HTTPS_PROXY).
5121 - Timestamps within Android apks are removed to make apks
5122 deterministic.
5123 - Support aggregation over existing rules in Skylark extensions
5124 through native.rules and native.rule.
5125 - A tools/bazel script in the workspace will be executed
5126 as an opportunity to use a fixed version of Bazel (not
5127 implemented for the homebrew recipe yet).
5128 - --noimplicit_deps and --nohost_deps work correctly for Aspect
5129 attributes.
5130 - JDK-related targets are now available via @local_jdk (instead of
5131 @local-jdk).
5132 - j2objc tools can now be accessed via @bazel_j2objc, not
5133 @bazel-j2objc.
5134 - Repository rules must use names that are valid workspace names.
5135 - [rust] Update to Rust 1.6
5136 - Add support for .tar.xz archives to http_archive rules.
5137 - Make C++ modules compatible with tools using
5138 --compilation_prerequisites_only
5139 - [d] Update to DMD 2.070.0
5140
Bazel Release System446d9922016-01-21 10:59:31 +01005141## Release 0.1.4 (2016-01-15)
5142
5143```
5144Baseline: e933d5e
5145 + 3d796fe: Rollback of commit
5146 ac6ed79e1a3fa6b0ca91657b28e2a35f7e49758c.
5147 + 7a02e5d: Fix installer under OS X
5148 + 848740c: Fix bazel version for debian package
5149 + 7751d43: Add a method for getting the root of a rule workspace
5150 to the Label method
5151```
5152
5153Important changes:
5154
5155 - add loadfiles() query operator, to find skylark files loaded by
5156 targets.
5157 - Added ability to declare and use aspects in Skylark.
5158 - Skylark load statements may now reference .bzl files via build
5159 labels, in addition to paths. In particular, such labels can be
5160 used to reference Skylark files in external repositories; e.g.,
5161 load("@my_external_repo//some_pkg:some_file.bzl", ...).
5162 Path-based loads are now deprecated and may be disabled in the
5163 future. Caveats: Skylark files currently do not respect package
5164 visibility; i.e., all Skylark files are effectively public. Also,
5165 loads may not reference the special //external package.
5166 - Relative paths can now be used for 'path' with
5167 new_local_repository and local_repository.
5168
Bazel Release System1518253e2016-01-11 10:10:19 +01005169## Release 0.1.3 (2016-01-07)
5170
5171```
5172Baseline: 23ad8f6
5173 + de2183d: Only depend on the WORKSPACE file for external files
5174 that are under the external/ directory, i.e. were
5175 created by Bazel.
5176 + f8f855c: Rollback of commit
5177 12bad3af0eade9c4b79d76f9e1c950ad2e3214c2.
5178 + f627562: Stop parsing the WORKSPACE file when a parse error is
5179 detected
5180 + 763f139: Add -fno-canonical-system-headers to CROSSTOOL files so
5181 that gcc doesn't resolve symlinks in .d files, which
5182 would confuse Blaze.
5183 + b95995b: Use openjdk7 as dependency for debian package of jdk7
5184 flavor
5185```
5186
5187New features:
5188
5189 - Skylark macros are now enabled in WORKSPACE file.
5190 - .bazelrc allows workspace-relative imports as "import
5191 %workspace%/path/to/rcfile"
5192 - Evaluate the query expression in a file by passing
5193 --query_file=<file> to query
5194
5195Important changes:
5196
5197 - Remove obsolete --objc_per_proto_includes flag.
5198 - iOS apps and extensions now have launch_storyboard
5199 - Passing multiple JVM options via a single --host_jvm_args flag is
5200 now deprecated. Pass each JVM option behind its own
5201 --host_jvm_args flag.
5202 - Resources defined locally on an android_library rule will respect
5203 the neverlink attribute.
5204 - Update Rust to 1.4
5205 - Fix resource handling for exported android_library rules
5206 - Files in external repositories are now treated as mutable, which
5207 will make the correctness guarantees of using external
5208 repositories stronger (existent), but may cause performance
5209 penalties.
5210
Bazel Release System0d2e4092015-12-04 23:31:41 +01005211## Release 0.1.2 (2015-11-20)
5212
5213```
5214Baseline: ee0ade3
5215 + 1e66ccd: RELNOTES: Symlink dirents of directories containing a
5216 file named
5217 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA
5218 _A_RECURSIVE_TARGET_PATTERN" will *not* be traversed
5219 for transitive target patterns. The motivation here is
5220 to allow directories that intentionally contain wonky
5221 symlinks (e.g. foo/bar -> foo) to opt out of being
5222 consumed by Blaze. For example, given
5223 + f5773fc: Set the ijar MAX_BUFFER_SIZE to 256 MB
5224```
5225
5226New features:
5227
5228 - java_library now supports the proguard_specs attribute for
5229 passing Proguard configuration up to Android (not Java) binaries.
5230 - http_file can specify "executable" to make the downloaded file
5231 runnable.
5232 - Debian and tar packaging is now supported
5233 (see tools/build_defs/pkg/README.md).
5234 - cpxx_builtin_include_directory specifications allow more
5235 flexibility.
5236 - accept %crosstool_top% in cxx_builtin_include_directory
5237 - android_binary now supports proguard_apply_mapping to re-use a
5238 previously generated proguard mapping.
5239
5240Important changes:
5241
5242 - remove webstatusserver (--use_webstatusserver).
5243 - Add support for objc textual headers, which will not be compiled
5244 when modules are enabled.
5245 - actoolzip, momczip and swiftstdlibtoolzip have all been made into
5246 bash scripts and have been renamed to actoolwrapper, momcwrapper
5247 and swiftstdlibtoolwrapper respectively. The old versions will be
5248 deleted in a later change.
5249 - [rust] Add rust_bench_test and rust_doc_test rules and improve
5250 usability of rust_test tule.
5251 - Java rules now support a resource_strip_prefix attribute that
5252 allows the removal of path prefixes from Java resources.
5253 - [docker_build] incremental loading is default now.
5254 Specify explicitly //package:target.tar (with the .tar extension)
5255 to obtain the full image.
5256 - --ios_signing_cert_name allows specifying a cert for iOS app
5257 signing
5258 - Go rules for Bazel.
5259 - [jsonnet] Update to Jsonnet 0.8.1.
5260 - [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to
5261 allow passing external variables to Jsonnet via --var and
5262 --code_var.
5263 - Adds --override_workspace_root blaze flag to hand-set
5264 workspace_root and mainGroup in xcodeproj.
5265 - Allow dots in package names.
5266 - When used as a forwarding rule (i.e., has no sources),
5267 android_library
5268 will also forward any exported_plugins in its dependencies.
5269 - Add support for Windows-created zip files with non-posix
5270 permissions.
5271 - [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.
5272 - C++ compile actions run in a sandbox now on systems that support
5273 sandboxed execution.
5274 - The names of the clang compilers in the Android NDK crosstool no
5275 longer reference gcc.
5276 - 420 dpi is now a valid density for andoid_binary.densities.
5277 - Bazel does strict validation of include files now to ensure
5278 correct incremental builds. If you see compilation errors when
5279 building C++ code, please make sure that you explicitly declare
5280 all header files in the srcs or hdrs attribute of your cc_*
5281 targets and that your cc_* targets have correct "deps" on
5282 cc_library's that they use.
5283 - [jsonnet] Fix jsonnet_to_json rule to read code_vars from
5284 code_vars instead of vars.
5285 - Tests, genrules, and Skylark actions without the
5286 "requires-network" tag will no longer be able to access the
5287 network.
5288 - C++ libraries no longer need includes = ["."] (or similar copts)
5289 to include paths relative to a remote repository's root.
5290 - Support exports attribute for android_library
5291 - Symlink dirents of directories containing a file named
5292 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA_A_RECURSI
5293 VE_TARGET_PATTERN" will *not* be traversed for transitive target
5294 patterns. The motivation here is to allow directories that
5295 intentionally contain wonky symlinks (e.g. foo/bar -> foo) to opt
5296 out of being consumed by Blaze.
5297
Bazel Release Systemfa35b182015-10-14 12:11:51 -04005298## Release 0.1.1 (2015-10-05)
5299
5300```
5301Baseline: 22616ae
5302 + 1ef338f: Rollback of "Propagates cc_library linkopts attribute
5303 to dependent objc_libraries.": breaks certain
5304 objc_binary build targets.
5305 + 5fb1073: Reintroduce an inconsistency check (albeit, in a weaker
5306 form) removed by a previous change that was trying to
5307 optimize away a filesystem call.
5308 + 6d00468b2eb976866cfb814d562e0d53a580a46f: Add IdlClass to the embedded default android tools
5309 repository and rearrange BuildJar's JarHelper so that
5310 it too can be embedded.
5311 + a5199039934a2e399a7201adc0d74e2f2d2b0ff3: Fixes Android integration tests by wiring up idlclass
5312 rules in integration environment.
5313```
5314
5315Incompatible changes:
5316
5317 - Bazel requires JDK 8 to run.
5318 - Attribute "copts" is removed from j2objc_library.
5319
5320New features:
5321
5322 - a cc_binary rule may list '.s' and '.asm' files in the srcs
5323 - Support for build with libsass.
5324 - labels in "linkopts" may match any label in either "deps" or
5325 "srcs" to be considered valid.
5326 - Maven servers that require username & password authentication are
5327 now supported (see maven_server documentation).
5328
5329Important changes:
5330
5331 - Support empty plist files
5332 - The <compatible-screens> section of the AndroidManifest.xml will
5333 not be overwritten if it already contains a <screen> tag for each
5334 of the densities specified on the android_binary rule.
5335 - Add Jsonnet rules to Bazel
5336 - Remove deprecated xcode_options flag.
5337 - Workspace names are now restricted to being in their base
5338 directory
5339 (that is, the names cannot contain up-level references or /./).
5340 - j2objc_library on Bazel now transpiles transitive proto_library
5341 dependencies. (Note that java_* rules in Bazel do not yet support
5342 protos; currently they ignore proto dependencies.)
5343 - new_http_archive can specify a root directory.
5344 - Adds support for dylibs on devices for Xcode 7.
5345 - [d] d_docs rules now depend on a d_binary, a d_library or
5346 d_source_library.
5347 - [docker] docker_build now set the permission to 0555 to files
5348 added to the layer, use `mode = "0644"` to use the legacy behavior.
5349 - android_binary now has a main_dex_proguard_specs attribute to
5350 specify which classes should be in the main dex.
5351 - [rust] Add rust_docs rule for generating rustdoc.
Bazel Release System79e40ac2015-09-08 23:38:00 +02005352## Release 0.1.0 (2015-09-08)
5353
5354```
5355Baseline: a0881e8
5356 + 87374e6: Make android_binary use a constant, hard-coded,
5357 checked-in debug key.
5358 + 2984f1c: Adds some safety checks in the Bazel installer
5359 + 4e21d90: Remove BUILD.glob and incorporate the necessary
5360 filegroups into the android_{ndk,sdk}_repository rules
5361 themselves.
5362 + 1ee813e: Fix Groovy rules to work with sandboxing
5363 + 8741978: Add initial D rules to Bazel.
5364 + 2c2e70d: Fix the installer and fixing the package shiped into
5365 binary version of Bazel.
5366```
5367
5368Initial release.
Bazel Release System6712cac2017-02-01 19:53:37 +01005369
Bazel Release System8d635fc2017-03-16 13:18:30 +01005370
Bazel Release Systema3e26832017-05-26 14:11:07 +02005371
Bazel Release System63222de2017-06-06 11:32:04 +02005372
Bazel Release System7b851222017-06-27 15:08:47 +02005373
Bazel Release System195a7a82017-07-27 20:27:32 +02005374
Bazel Release System5371d132017-08-25 11:24:06 +02005375
Bazel Release System471c0e12017-09-28 16:36:12 +02005376
Bazel Release Systemed0ebc02017-10-05 23:52:25 +02005377
Bazel Release System76b6d0a2017-10-18 14:34:11 +02005378
Bazel Release System0838aee2017-11-27 14:16:34 +01005379
Bazel Release System3d53cb02017-12-05 15:28:40 +01005380
Bazel Release System5bd27482018-02-01 09:43:33 +01005381
Bazel Release Systeme1148362018-02-15 10:02:05 +01005382
Bazel Release System09077a32018-02-23 11:09:18 -05005383
Bazel Release Systemc86d6a02018-03-06 19:32:18 +01005384
Bazel Release System546976c2018-04-11 17:34:19 +02005385
Bazel Release System1d9c6062018-04-30 10:45:38 +02005386
Bazel Release System24c68ff2018-05-23 10:59:57 +02005387
Bazel Release System3a592f62018-06-01 15:04:31 +02005388
Bazel Release System513bbf52018-06-08 14:15:20 +02005389
Bazel Release System5013a332018-06-26 14:07:47 +02005390
Bazel Release System1281a022018-07-16 16:13:53 +02005391
Bazel Release System1bd58832018-08-13 15:41:26 +02005392
Bazel Release Systemfdb09a22018-09-14 12:15:54 +02005393
Bazel Release System50921e62018-09-21 12:27:04 +02005394
Bazel Release System36177972018-10-15 10:29:10 +02005395
Bazel Release System92849b82018-10-31 15:41:11 +01005396
Bazel Release System684f1092018-11-12 10:26:58 -05005397
Bazel Release Systemcb3e2982018-11-19 11:19:38 -05005398
Bazel Release System85378562018-11-30 15:34:16 +01005399