blob: cef42f6216ac957f98bdd11b0f94bb196049a409 [file] [log] [blame] [view]
Bazel Release Systemf28ff222019-03-04 11:12:24 +01001## Release 0.23.1 (2019-03-04)
2
3```
4Baseline: 441fd75d0047f8a998d784c557736ab9075db893
5
6Cherry picks:
7
8 + 6ca7763669728253606578a56a205bca3ea883e9:
9 Fix a typo
10 + 2310b1c2c8b2f32db238f667747e7d5672480f4a:
11 Ignore SIGCHLD in test setup script
12 + f9eb1b56706f91063e9d080b850fa56964e77324:
13 Complete channel initialization in the event loop
14 + f0a1597cca2252754daf1d53ff76cf1a9b3dd9b9:
15 remote: properly reset state when using remote cache. Fixes #7555
16```
17
18Release 0.23.1rc1 (2019-02-28)
19
Bazel Release Systemed104862019-02-26 18:36:00 +010020## Release 0.23.0 (2019-02-26)
21
22```
23Baseline: 441fd75d0047f8a998d784c557736ab9075db893
24
25Cherry picks:
26
27 + 6ca7763669728253606578a56a205bca3ea883e9:
28 Fix a typo
29 + 2310b1c2c8b2f32db238f667747e7d5672480f4a:
30 Ignore SIGCHLD in test setup script
31 + f9eb1b56706f91063e9d080b850fa56964e77324:
32 Complete channel initialization in the event loop
33```
34
35Incompatible changes:
36
37 - //src:bazel uses the minimal embedded JDK, if you want to
38 avoid the extra steps of minimizing the JDK, use //src:bazel-dev
39 instead.
40 - //src:bazel uses the minimal embedded JDK, if you want to
41 avoid the extra steps of building bazel with the minimized JDK,
42 use //src:bazel-dev
43 instead.
44 - The default value of --host_platform and --platforms will be
45 changed to not be dependent on the configuration. This means
46 that setting
47 --cpu or --host_cpu will not affect the target or host platform.
48 - Toolchain resolution for cc rules is now enabled via an
49 incompatible flag, --incompatible_enable_cc_toolchain_resolution.
50 The previous
51 flag, --enabled_toolchain_types, is deprecated and will be
52 removed.
53 - java_(mutable_|)proto_library: removed strict_deps attribute.
54 - Python rules will soon reject the legacy "py" struct provider
55 (preview by enabling --incompatible_disallow_legacy_py_provider).
56 Upgrade rules to use PyInfo instead. See
57 [#7298](https://github.com/bazelbuild/bazel/issues/7298).
58 - java_(mutable_|)proto_library: removed strict_deps attribute.
59 - Two changes to native Python rules: 1) `default_python_version`
60 and `--force_python` are deprecated; use `python_version` and
61 `--python_version` respectively instead. You can preview the
62 removal of the deprecated names with
63 --incompatible_remove_old_python_version_api. See
64 [#7308](https://github.com/bazelbuild/bazel/issues/7308). 2) The
65 version flag will no longer override the declared version of a
66 `py_binary` or `py_test` target. You can preview this new
67 behavior with --incompatible_allow_python_version_transitions.
68 See [#7307](https://github.com/bazelbuild/bazel/issues/7307).
69
70Important changes:
71
72 - There is a new flag available
73 `--experimental_java_common_create_provider_enabled_packages`
74 that acts as a whitelist for usages of
75 `java_common.create_provider`. The constructor will be deprecated
76 in Bazel 0.23.
77 - [#7024] Allow chaining of the same function type in aquery.
78 - Introduces --local_{ram,cpu}_resources, which will take the place
79 of --local_resources.
80 - [#6930] Add documentation for the aquery command.
81 - Incompatible flag `--incompatible_dont_emit_static_libgcc` has
82 been flipped (https://github.com/bazelbuild/bazel/issues/6825)
83 - Incompatible flag `--incompatible_linkopts_in_user_link_flags`
84 has been flipped (https://github.com/bazelbuild/bazel/issues/6826)
85 - Flag --incompatible_range_type is removed.
86 - Flag --incompatible_disallow_slash_operator is removed.
87 - Flag --incompatible_disallow_conflicting_providers is removed.
88 - `--incompatible_disallow_data_transition` is now enabled by
89 default
90 - Allow inclusion of param files in aquery output
91 - [#6985] Add test to verify aquery's behavior for Cpp action
92 templates.
93 - --incompatible_require_feature_configuration_for_pic was flipped
94 (https://github.com/bazelbuild/bazel/issues/7007).
95 - Also ignore module-info.class in multi-version Jars
96 - objc_framework has been deleted. Please refer to
97 apple_dynamic_framework_import and apple_static_framework_import
98 rules available in
99 [rules_apple](https://github.com/bazelbuild/rules_apple/blob/maste
100 r/doc/rules-general.md)
101 - --test_sharding_strategy=experimental_heuristic is no more
102 - objc_bundle_library has been removed. Please migrate to
103 rules_apple's
104 [apple_resource_bundle](https://github.com/bazelbuild/rules_apple/
105 blob/master/doc/rules-resources.md#apple_resource_bundle).
106 - You can now use the attribute `aapt_version` or the flag
107 `--android_aapt` to pick the aapt version for android_local_test
108 tests
109 - In --keep_going mode, Bazel now correctly returns a non-zero exit
110 code when encountering a package loading error during target
111 pattern parsing of patterns like "//foo:all" and "//foo/...".
112 - The default value for --incompatible_strict_action_env has been
113 flipped to 'false' again, as we discovered breakages for local
114 execution users. We'll need some more time to figure out the best
115 way to make this work for local and remote execution. Follow
116 https://github.com/bazelbuild/bazel/issues/7026 for more details.
117 - Locally-executed spawns tagged "no-cache" no longer upload their
118 outputs to the remote cache.
119 - Introduces --host_compiler flag to allow setting a compiler for
120 host compilation when --host_crosstool_top is specified.
121 - --incompatible_expand_directories is enabled by default
122 - [aquery] Handle the case of aspect-on-aspect.
123 - Fixed a longstanding bug in the http remote cache where the value
124 passed to
125 --remote_timeout would be interpreted as milliseconds instead of
126 seconds.
127 - Enable --incompatible_use_jdk10_as_host_javabase by default, see
128 https://github.com/bazelbuild/bazel/issues/6661
129 - Add --incompatible_use_jdk11_as_host_javabase: makes JDK 11 the
130 default --host_javabase for remote jdk
131 (https://github.com/bazelbuild/bazel/issues/7219)
132 - Highlight TreeArtifact in aquery text output.
133 - Locally-executed spawns tagged "no-cache" no longer upload their
134 outputs to the remote cache.
135 - java_common APIs now accept JavaToolchainInfo and JavaRuntimeInfo
136 instead of configured targets for java_toolchain and java_runtime
137 - cc_common.create_cc_toolchain_config_info is stable and available
138 for production use
139 - incompatible_use_toolchain_providers_in_java_common: pass
140 JavaToolchainInfo and JavaRuntimeInfo providers to java_common
141 APIs instead of configured targets
142 (https://github.com/bazelbuild/bazel/issues/7186)
143 - --incompatible_strict_argument_ordering is enabled by default.
144 - Bazel now supports reading cache hits from a repository cache,
145 even if it doesn't have write access to the cache.
146 - Adding arm64e to OSX CROSSTOOL.
147 - Ignore package-level licenses on config_setting.
148 - Add an optional output_source_jar parameter to java_common.compile
149 - --incompatible_disable_objc_provider_resources is now enabled by
150 default. This disables ObjcProvider's fields related to resource
151 processing.
152 - Explicitly set https.protocols and exclude TLSv1.3.
153 - Bazel now validates that JAVA_HOME points to a valid JDK and
154 falls back to auto-detection by looking up the path of `javac`.
155 - Upgrade the embedded JDK version to 11.0.2.
156 - Added --incompatible_disable_crosstool_file
157 (https://github.com/bazelbuild/bazel/issues/7320)
158 - --incompatible_disable_objc_provider_resources is now enabled by
159 default. This disables ObjcProvider's fields related to resource
160 processing.
161 - --incompatible_disable_tools_defaults_package has been flipped.
162 - For tests that do not generate a test.xml, Bazel now uses a
163 separate action to generate one; this results in minor
164 differences in the generated test.xml, and makes the generation
165 more reliable overall.
166 - incompatible_generate_javacommon_source_jar: java_common.compile
167 now always generates a source jar, see
168 https://github.com/bazelbuild/bazel/issues/5824.
169 - New incompatible flag
170 --incompatible_disallow_struct_provider_syntax removes the
171 ability for rule implementation functions to return struct. Such
172 functions should return a list of providers instead. Migration
173 tracking: https://github.com/bazelbuild/bazel/issues/7347
174
175This 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.
176
Bazel Release System2f82b332019-01-28 13:54:53 +0100177## Release 0.22.0 (2019-01-28)
178
179```
180Baseline: deb028e3fb30b4e2953df16f35ab1f55a08ea8fa
181
182Cherry picks:
183
184 + a3a5975dca3ad04c19dc7d063fcf490a8cd612fd:
185 Fix a race condition in remote cache
186 + b8d0e1b05c225a4b943ce498194d069d18093d9a:
187 Use a new GitHub token and KMS key for the release process.
188 + 3759e3895503aa2bbd6943c5b568b8c050b9448f:
189 remote: fix unexpected IO error (not a directory)
190 + 4473bb1a9ec4282aa8497b86580d68e82415df4a:
191 Fix a race condition in Bazel's Windows process management.
192 + 9137fb940886aa516f32ca8a36feccedb545c99b:
193 undo flag flip of --incompatible_strict_action_env
194 + 12ab12e80ad1c9a3510aa4bbfdf3fddafc0bca00:
195 Revert "Enabling Bazel to generate input symlinks as defined by
196 RE AP?
197 + 6345c747d8cb1819e70c853becadbf8a989decf1:
198 Automated rollback of commit
199 30536baa4a410d8c0a7adab5cd58cd8a2ac7e46c.
200```
201
Bazel Release System2f82b332019-01-28 13:54:53 +0100202
Bazel Release System2f82b332019-01-28 13:54:53 +0100203
Klaus Aehligcb59bd22019-01-28 14:20:37 +0100204The Bazel team is happy to announce a new release of Bazel,
205[Bazel 0.22.0](https://github.com/bazelbuild/bazel/releases/tag/0.22.0).
Bazel Release System2f82b332019-01-28 13:54:53 +0100206
Klaus Aehligcb59bd22019-01-28 14:20:37 +0100207Baseline: deb028e3fb30b4e2953df16f35ab1f55a08ea8fa
Bazel Release System2f82b332019-01-28 13:54:53 +0100208
Klaus Aehligcb59bd22019-01-28 14:20:37 +0100209### Breaking changes
210
211- [`--incompatible_string_is_not_iterable`](https://github.com/bazelbuild/bazel/issues/5830)
212
213### Upcoming changes
214
215This release is a [migration window for the following changes](https://github.com/bazelbuild/bazel/labels/migration-0.22).
216
217- [`--incompatible_disallow_data_transition`](https://github.com/bazelbuild/bazel/issues/6153)
218- [`--incompatible_dont_emit_static_libgcc`](https://github.com/bazelbuild/bazel/issues/6825)
219- [`--incompatible_linkopts_in_user_link_flags`](https://github.com/bazelbuild/bazel/issues/6826)
220- [`--incompatible_disable_legacy_crosstool_fields`](https://github.com/bazelbuild/bazel/issues/6861)
221- [`--incompatible_use_aapt2_by_default`](https://github.com/bazelbuild/bazel/issues/6907)
222- [`--incompatible_disable_runtimes_filegroups`](https://github.com/bazelbuild/bazel/issues/6942)
223- [`--incompatible_disable_legacy_cc_provider`](https://github.com/bazelbuild/bazel/issues/7036)
224- [`--incompatible_require_feature_configuration_for_pic`](https://github.com/bazelbuild/bazel/issues/7007)
225- [`--incompatible_disable_expand_if_all_available_in_flag_set`](https://github.com/bazelbuild/bazel/issues/7008)
226- [`--incompatible_disable_legacy_proto_provider`](https://github.com/bazelbuild/bazel/issues/7152)
227- [`--incompatible_disable_proto_source_root`](https://github.com/bazelbuild/bazel/issues/7153)
228
229### General Changes
230
231- https://docs.bazel.build now supports versioned
232 documentation. Use the selector at the top of the navigation bar
233 to switch between documentation for different Bazel releases.
234
235- set `projectId` in all `PublishBuildToolEventStreamRequest`
236
237### Android
238
239- mobile-install now works with aapt2. Try it out with `bazel
240 mobile-install --android_aapt=aapt2 //my:target`
241
242- Fixed issues with mobile-install v1 when deploying to Android 9 Pie
243 devices. https://github.com/bazelbuild/bazel/issues/6814
244
245- Fixed issue where error messages from Android manifest merging
246 actions were not fully propagated.
247
248- New incompatible change flag `--incompatible_use_aapt2_by_default`
249 for defaulting to aapt2 in Android builds has been added. To build with
250 aapt2 today, pass the flag
251 `--incompatible_use_aapt2_by_default=true` or
252 `--android_aapt=aapt2`, or set the `aapt_version` to `aapt2` on
253 your `android_binary` or `android_local_test` target.
254
255- Fixed mobile-install v1 error when installing an app with native
256 libraries onto an Android 9 (Pie) device. See
257 https://github.com/bazelbuild/examples/issues/77
258
259- Fixed a mobile-install bug where `arm64-v8a` libraries were not
260 deployed correctly on `arm64` devices. This was done by enabling
261 incremental native lib deployment by default. A previously
262 undocumented `--android_incremental_native_libs` flag is removed,
263 and is now the regular behavior. See
264 https://github.com/bazelbuild/bazel/issues/2239
265
266### Apple
267
268- The `objc_bundle` rule has been removed. Please migrate to rules_apple's
269 [apple_bundle_import](https://github.com/bazelbuild/rules_apple/bl
270 ob/master/doc/rules-resources.md#apple_bundle_import).
271
272- The `apple_stub_binary` rule has been deleted.
273
274- The `--xbinary_fdo` option that passes xbinary profiles has been added.
275
276### C++
277
278- `cc_toolchain.(static|dynamic)_runtime_libs` attributes are now optional
279
280### Packaging
281
282- `build_tar.py` in `tools/build_defs/pkg` now supports a JSON manifest
283 that can be used to add paths that have symbols that can't be
284 specified via the command line
285
286### Query
287
288- Filtering of inputs, outputs, and mnemonic filtering have been added to
289 aquery.
290
291- The aquery and cquery query2 tests have been open-sourced.
292
293- The Bazel query how-to recommends ":*" instead of ":all", because "all" might
294 be the name of a target.
295
296### Testing
297
298- The `--runs_per_test` has been placed in the TESTING documentation category.
299
300- A a clarifying message has been added to test case summary output when all
301 test cases pass but the target fails.
302
303### Contributors
304
305This release contains contributions from many people at Google, as well as
306Benjamin Peterson, Dave Lee, George Gensure, Gert van Dijk, Gustavo Storti
307Salibi, Keith Smiley, Loo Rong Jie, Lukasz Tekieli, Mikhail Mazurskiy, Thi,
308Travis Cline, Vladimir Chebotarev, and Yannic.
Bazel Release System2f82b332019-01-28 13:54:53 +0100309
Bazel Release Systema189d422018-12-19 13:53:11 +0100310## Release 0.21.0 (2018-12-19)
311
312```
313Baseline: cb9b2afbba3f8d3a1db8bf68e65d06f1b36902f5
314
315Cherry picks:
316
317 + 12b96466ee0d6ab83f7d4cd24be110bb5021281d:
318 Windows, test wrapper: rename the associated flag
319 + 7fc967c4d6435de2bb4e34aac00ca2e499f55fca:
320 Use a fixed thread pool in ByteStreamBuildEventArtifactUploader
321 + 798b9a989aa793655d29504edb5fb85f3143db84:
322 Add --build_event_upload_max_threads option
323 + dbe05df23ccf4c919379e0294e0701fd3f66739c:
324 Update the version of skylib bundled in the distfile
325```
326
327Incompatible changes:
328
329 - The --experimental_stl command line option is removed.
330 - aquery defaults to human readable output format.
331
332New features:
333
334 - repository_ctx.download and repository_ctx.download_and_extract
335 now return a struct.
336 - Android Databinding v2 can be enabled with
337 --experimental_android_databinding_v2.
338
339Important changes:
340
341 - The deprecated and unmaintained Docker rules in
342 tools/build_defs/docker were removed. Please use
343 https://github.com/bazelbuild/rules_docker instead.
344 - The new --upload_query_output_using_bep query/cquery/aquery flag
345 causes query outputs to be uploaded via BEP.
346 - New incompatible flag --incompatible_strict_argument_ordering
347 - --strict_android_deps and --strict_java_deps were renamed to
348 --experimental_strict_java_deps
349 - config_settings that select on "compiler" value instead of values
350 = {"compiler" : "x"} should use flag_values =
351 {"@bazel_tools//tools/cpp:compiler": "x"}.
352 - The new --upload_query_output_using_bep query/cquery/aquery flag
353 causes query outputs to be uploaded via BEP.
354 - Turn on --incompatible_disable_sysroot_from_configuration
355 - We revamped our Android with Bazel tutorial! Check it out
356 [here](https://docs.bazel.build/versions/master/tutorial/android-a
357 pp.html).
358 - --incompatible_disallow_slash_operator is now on by default
359 - Enable --experimental_check_desugar_deps by default. This flag
360 rules out several types of invalid Android builds at compile-time.
361 - The --max_config_changes_to_show option lists the names of
362 options which
363 have changed and thus caused the analysis cache to be dropped.
364 - The --experimental_strict_action_env option has been renamed to
365 --incompatible_strict_action_env and is now on by default. This
366 means Bazel will no longer use the client's PATH and
367 LD_LIBRARY_PATH environmental variables in the default action
368 environment. If the old behavior is desired, pass
369 --action_env=PATH and --action_env=LD_LIBRARY_PATH.
370 --noincompatible_strict_action_env will also temporarily restore
371 the old behavior. However, as --action_env is a more general and
372 explicit way to pass client environmental variables into actions,
373 --noincompatible_strict_action_env will eventually be deprecated
374 and removed. See #6648 for more details.
375 - XCRUNWRAPPER_LABEL has been removed. If you used this value
376 before, please use @bazel_tools//tools/objc:xcrunwrapper instead.
377 - --incompatible_static_name_resolution is no unable by default
378 - We will phase out --genrule_strategy in favor of
379 --strategy=Genrule=<value> (for genrules) or
380 --spawn_strategy=<value> (for all actions).
381 - --incompatible_package_name_is_a_function is now enabled by
382 default
383 - Dynamic execution is now available with
384 --experimental_spawn_strategy. Dynamic execution allows a build
385 action to run locally and remotely simultaneously, and Bazel
386 picks the fastest action. This provides the best of both worlds:
387 faster clean builds than pure local builds, and faster
388 incremental builds than pure remote builds.
389 - --incompatible_package_name_is_a_function is now enabled by
390 default
391 - New incompatible flag --incompatible_merge_genfiles_directory
392 - grpc log now logs updateActionResult
393 - CppConfiguration doesn't do package loading anymore. That means:
394 * it's no longer needed to have C++ toolchain available when
395 building non-C++ projects
396 * bazel will not analyze C++ toolchain when not needed -> speedup
397 ~2s on bazel startup when C++ rules using hermetic toolchain are
398 not loaded
399 - --incompatible_package_name_is_a_fu...
400
401This 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.
402
Bazel Release System85378562018-11-30 15:34:16 +0100403## Release 0.20.0 (2018-11-30)
404
405```
406Baseline: 7bf7f031c332dc483257248d1c1f98ad75bbc83b
407
408Cherry picks:
409
410 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
411 update bazel-toolchains pin to latest release Part of changes to
412 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
413 before 0.17.0 are not compatible with bazel 0.19.0 or above.
414 + 241f28d05424db2d11ee245dc856b992258505e3:
415 Revert "Toggle --incompatible_disable_late_bound_option_defaults
416 flag."
417 + f7e5aef145c33968f658eb2260e25630dc41cc67:
418 Add cc_toolchain targets for the new entries in the default
419 cc_toolchain_suite.
420 + d2920e32ec7f3f8551a693d33c17b19f1b802145:
421 Revert "WindowsFileSystem: open files with delete-sharing"
422```
423
424[Breaking changes in 0.20](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Abreaking-change-0.20)
425
426 - [--incompatible_remove_native_http_archive](https://github.com/bazelbuild/bazel/issues/6570).
427 - [--incompatible_remove_native_git_repository](https://github.com/bazelbuild/bazel/issues/6569).
428 - [--incompatible_disable_cc_toolchain_label_from_crosstool_proto](https://github.com/bazelbuild/bazel/issues/6434).
429 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6384).
430 - [--incompatible_disable_cc_configuration_make_variables](https://github.com/bazelbuild/bazel/issues/6381).
431 - [--incompatible_disallow_conflicting_providers](https://github.com/bazelbuild/bazel/issues/5902).
432 - [--incompatible_range_type](https://github.com/bazelbuild/bazel/issues/5264).
433
434[0.20 is a migration window for the following changes](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Amigration-0.20)
435
436 - [--incompatible_use_jdk10_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6661)
437 - [--incompatible_use_remotejdk_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6656)
438 - [--incompatible_disable_sysroot_from_configuration](https://github.com/bazelbuild/bazel/issues/6565)
439 - [--incompatible_provide_cc_toolchain_info_from_cc_toolchain_suite](https://github.com/bazelbuild/bazel/issues/6537)
440 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6383)
441 - [--incompatible_package_name_is_a_function](https://github.com/bazelbuild/bazel/issues/5827)
442
443[Breaking changes in the next release (0.21)](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+label%3Abreaking-change-0.21)
444
445 - [--incompatible_use_jdk10_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6661)
446 - [--incompatible_use_remotejdk_as_host_javabase](https://github.com/bazelbuild/bazel/issues/6656)
447 - [--incompatible_disable_sysroot_from_configuration](https://github.com/bazelbuild/bazel/issues/6565)
448 - [--incompatible_provide_cc_toolchain_info_from_cc_toolchain_suite](https://github.com/bazelbuild/bazel/issues/6537)
449 - [--incompatible_disable_depset_in_cc_user_flags](https://github.com/bazelbuild/bazel/issues/6383)
450 - [--incompatible_disallow_data_transition](https://github.com/bazelbuild/bazel/issues/6153)
451 - [--incompatible_package_name_is_a_function](https://github.com/bazelbuild/bazel/issues/5827)
452 - [--incompatible_disallow_slash_operator](https://github.com/bazelbuild/bazel/issues/5823)
453 - [--incompatible_static_name_resolution](https://github.com/bazelbuild/bazel/issues/5637)
454
455Incompatible changes:
456
457 - the --experimental_no_dotd_scanning_with_modules command line
458 argument is not supported anymore.
459 - The --prune_cpp_modules command line option is not supported
460 anymore.
461 - the --experimental_prune_cpp_input_discovery command line option
462 is not supported anymore.
463
464New features:
465
466 - Added support for Android NDK r18.
467
468Important changes:
469
470 - The 'default' parameter of attr.output and attr.output_list is
471 removed. This is controlled by
472 --incompatible_no_output_attr_default
473 - A number of platform-related Starlark APIs which were previously
474 marked "experimental" are now disabled by default, and may be
475 enabled via --experimental_platforms_api
476 - Make legacy-test-support ("legacy_test-<api-level>") from
477 android_sdk_repository neverlink. The legacy test support
478 libraries shouldn't be built into test binaries. To make them
479 available at runtime, developers should declare them via
480 uses-library:
481 https://developer.android.com/training/testing/set-up-project#andr
482 oid-test-base
483 - query remote server Capabilities (per REAPI v2)
484 - CppRules: All cc_toolchains depended on from
485 cc_toolchain_suite.toolchains are now analyzed when not using
486 platforms in order to select the right cc_toolchain.
487 - removed obsolete --explicit_jre_deps flag.
488 - Incompatible flag
489 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
490 flipped.
491 - Improve error messaging when unsupport proguard options are
492 specified at the library level.
493 - Incompatible flag
494 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
495 flipped.
496 - Incompatible flag
497 --incompatible_disable_legacy_cpp_toolchain_skylark_api was
498 flipped.
499 - The --incompatible_disable_late_bound_option_defaults flag has
500 been flipped (#6384)
501 - Incompatible flag
502 --incompatible_disable_legacy_flags_cc_toolchain_api was flipped
503 (#6434)
504 - Fixed issue where ctx.resolve_command created conflicting
505 intermediate files when resolve_command was called multiple times
506 within the same rule invocation with a long command attribute.
507 - Incompatible flag
508 --incompatible_disable_cc_configuration_make_variables was
509 flipped (#6381)
510 - If the --javabase flag is unset, it Bazel locates a JDK using
511 the JAVA_HOME environment variable and searching the PATH. If no
512 JDK is found --javabase will be empty, and builds targeting Java
513 will not
514 be supported. Previously Bazel would fall back to using the
515 embedded
516 JDK as a --javabase, but this is no longer default behaviour. A
517 JDK should
518 be explicitly installed instead to enable Java development
519 - Bazel will now shut down when idle for 5 minutes and the system
520 is low on RAM (linux only).
521 - CROSSTOOL file is now read from the package of cc_toolchain, not
522 from
523 the package of cc_toolchain_suite. This is not expected to break
524 anybody since
525 cc_toolchain_suite and cc_toolchain are commonly in the same
526 package.
527 - All overrides of Starlark's ctx.new_file function are now
528 deprecated.
529 Try the `--incompatible_new_actions_api` flag to ensure your
530 code is forward-compatible.
531 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
532 was flipped.
533 - Introduce --(no)shutdown_on_low_sys_mem startup flag to toggle
534 idle low-memory shutdown, disabled by default.
535 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
536 was flipped.
537 - --incompatible_disable_cc_toolchain_label_from_crosstool_proto
538 was flipped.
539 - CppRules: All cc_toolchains depended on from
540 cc_toolchain_suite.toolchains are now analyzed when not using
541 platforms in order to select the right cc_toolchain.
542 - The function `attr.license` is deprecated and will be removed.
543 It can be disabled now with `--incompatible_no_attr_license`.
544 - `range()` function now returns a lazy value
545 (`--incompatible_range_type` is now set by default).
546 - The code coverage report now includes the actual paths to header
547 files instead of the ugly,
548 Bazel generated, virtual includes path.
549 - `--incompatible_disallow_conflicting_providers` has been switched
550 to true
551 - Add new flag `--incompatible_disable_systool_from_configration` to
552 disable loading the systool from CppConfiguration.
553 - Add new flag `--incompatible_disable_sysroot_from_configuration`
554 to
555 disable loading the systool from CppConfiguration.
556 - Sorting remote Platform properties for remote execution. May
557 affect cache keys!
558 - Use different server log files per Bazel server process; java.log
559 is
560 now a symlink to the latest log.
561
562This 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>.
563
Bazel Release Systemcb3e2982018-11-19 11:19:38 -0500564## Release 0.19.2 (2018-11-19)
565
566```
567Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
568
569Cherry picks:
570
571 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
572 Fix the "nojava" platform and enable full presubmit checks for
573 the various JDK platforms now that we have enough GCE resources.
574 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
575 Add openjdk_linux_archive java_toolchain for nojava platform.
576 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
577 Automated rollback of commit
578 19a401c38e30ebc0879925a5caedcbe43de0028f.
579 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
580 Windows: Fix Precondition check for addDynamicInputLinkOptions
581 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
582 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
583 it exists.
584 + e025726006236520f7e91e196b9e7f139e0af5f4:
585 Update turbine
586 + 5f312dd1678878fb7563eae0cd184f2270346352:
587 Fix event id for action_completed BEP events
588 + f0c844c77a2406518c4e75c49188390d5e281d3d:
589 Release 0.19.0 (2018-10-29)
590 + c3fb1db9e4e817e8a911f5b347b30f2674a82f7c:
591 Do not use CROSSTOOL to select cc_toolchain
592 + 8e280838e8896a6b5eb5421fda435b96b6f8de60:
593 Windows Add tests for msys gcc toolchain and mingw gcc toolchain
594 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
595 update bazel-toolchains pin to latest release Part of changes to
596 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
597 before 0.17.0 are not compatible with bazel 0.19.0 or above.
598 + eb2af0f699350ad187048bf814a95af23f562c77:
599 Release 0.19.1 (2018-11-12)
600 + 6bc452874ddff69cbf7f66186238032283f1195f:
601 Also update cc_toolchain.toolchain_identifier when
602 CC_TOOLCHAIN_NAME is set
603 + f7e5aef145c33968f658eb2260e25630dc41cc67:
604 Add cc_toolchain targets for the new entries in the default
605 cc_toolchain_suite.
606 + 683c302129b66a8999f986be5ae7e642707e978c:
607 Read the CROSSTOOL from the package of the current cc_toolchain,
608 not from --crosstool_top
609```
610
611- Fixes regression #6662, by fixing tools/cpp/BUILD
612- Fixes regression #6665, by setting the toolchain identifier.
613- CROSSTOOL file is now read from the package of cc_toolchain, not from the
614 package of cc_toolchain_suite. This is not expected to break anybody since
615 cc_toolchain_suite and cc_toolchain are commonly in the same package.
616
Bazel Release System684f1092018-11-12 10:26:58 -0500617## Release 0.19.1 (2018-11-12)
618
619```
620Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
621
622Cherry picks:
623
624 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
625 Fix the "nojava" platform and enable full presubmit checks for
626 the various JDK platforms now that we have enough GCE resources.
627 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
628 Add openjdk_linux_archive java_toolchain for nojava platform.
629 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
630 Automated rollback of commit
631 19a401c38e30ebc0879925a5caedcbe43de0028f.
632 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
633 Windows: Fix Precondition check for addDynamicInputLinkOptions
634 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
635 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
636 it exists.
637 + e025726006236520f7e91e196b9e7f139e0af5f4:
638 Update turbine
639 + 5f312dd1678878fb7563eae0cd184f2270346352:
640 Fix event id for action_completed BEP events
641 + f0c844c77a2406518c4e75c49188390d5e281d3d:
642 Release 0.19.0 (2018-10-29)
643 + c3fb1db9e4e817e8a911f5b347b30f2674a82f7c:
644 Do not use CROSSTOOL to select cc_toolchain
645 + 8e280838e8896a6b5eb5421fda435b96b6f8de60:
646 Windows Add tests for msys gcc toolchain and mingw gcc toolchain
647 + fd52341505e725487c6bc6dfbe6b5e081aa037da:
648 update bazel-toolchains pin to latest release Part of changes to
649 allow bazelci to use 0.19.0 configs. RBE toolchain configs at or
650 before 0.17.0 are not compatible with bazel 0.19.0 or above.
651```
652
653Important changes:
654- Fix regression #6610, which prevents using the MINGW compiler on Windows.
655
Klaus Aehlig5e5832c2018-10-31 15:45:53 +0100656## Release 0.19.0 (2018-10-29)
657
658```
659Baseline: ac880418885061d1039ad6b3d8c28949782e02d6
660
661Cherry picks:
662
663 + 9bc3b20053a8b99bf2c4a31323a7f96fabb9f1ec:
664 Fix the "nojava" platform and enable full presubmit checks for
665 the various JDK platforms now that we have enough GCE resources.
666 + 54c2572a8cabaf2b29e58abe9f04327314caa6a0:
667 Add openjdk_linux_archive java_toolchain for nojava platform.
668 + 20bfdc67dc1fc32ffebbda7088ba49ee17e3e182:
669 Automated rollback of commit
670 19a401c38e30ebc0879925a5caedcbe43de0028f.
671 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
672 Windows: Fix Precondition check for addDynamicInputLinkOptions
673 + 83d406b7da32d1b1f6dd02eae2fe98582a4556fd:
674 Windows, test-setup.sh: Setting RUNFILES_MANIFEST_FILE only when
675 it exists.
676 + e025726006236520f7e91e196b9e7f139e0af5f4:
677 Update turbine
678 + 5f312dd1678878fb7563eae0cd184f2270346352:
679 Fix event id for action_completed BEP events
680```
681
682The Bazel team is happy to announce a new version of Bazel, [Bazel 0.19](https://github.com/bazelbuild/bazel/releases/tag/0.19.0).
683
684This document lists the major changes since Bazel 0.18.
685
686General changes
687---------------
688
689* The `--incompatible_expand_directories` flag will automatically expand directories in command lines. Design doc: https://docs.google.com/document/d/11agWFiOUiz2htBLj6swPTob5z78TrCxm8DQE4uJLOwM
690
691* 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.
692
693Android
694-------
695
696* Fixed missing debug symbols when building native code with `--compilation_mode=dbg` that target Android ARM architectures by adding the `-g` flag.
697
698C++
699---
700
701* 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.
702
703* 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.
704
705* :cc_binary link action no longer hardcodes `-static-libgcc` for toolchains that support embedded runtimes (guarded by `--experimental_dont_emit_static_libgcc` temporarily).
706
707* The flag `--experimental_enable_cc_configuration_make_variables` is removed, use `--incompatible_disable_cc_configuration_make_variables` instead.
708
709Java
710----
711
712* 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.
713
714Code Coverage
715-------------
716
717* LcovMerger was renamed to CoverageOutputGenerator.
718
719* Faster coverage collection for gcc compiled C++ code can now be tested by enabling it with `--experimental_cc_coverage`.
720
721Other Changes
722-------------
723
724* Add `--apple_compiler` and `--apple_grte_top options`. These provide the equivalent of --compiler / --grte_top for the toolchain configured in --apple_crosstool_top.
725
726* There is now a `same_pkg_direct_rdeps` query function. See the query documentation for more details.
727
728* Propagating remote errors to the user even if `--verbose_failures=false` is set.
729
730* Add number of configured targets to analysis phase status output.
731
732* 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.
733
734Future Changes
735--------------
736
737* 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:
738 * [`--incompatible_disable_late_bound_option_defaults`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-late-bound-option-defaults): #6384
739 * [`--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
740 * [`--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
741 * [`--incompatible_disable_cc_configuration_make_variables`](https://github.com/bazelbuild/bazel/issues/6381): #6381
742 * [`--incompatible_disable_legacy_cpp_toolchain_skylark_api`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-legacy-c-configuration-api): #6380
743 * [`incompatible_disable_legacy_flags_cc_toolchain_api`](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-legacy-c-toolchain-api): #6434
744
745* 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.
746
747Thank you to our contributors!
748------------------------------
749
750This 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
751
752Thank you to everyone who contributed to this release!
753
Bazel Release System92849b82018-10-31 15:41:11 +0100754## Release 0.18.1 (2018-10-31)
Bazel Release System36177972018-10-15 10:29:10 +0200755
756```
Bazel Release System92849b82018-10-31 15:41:11 +0100757Baseline: c062b1f1730f3562d5c16a037b374fc07dc8d9a2
Bazel Release System36177972018-10-15 10:29:10 +0200758
759Cherry picks:
760
Bazel Release System92849b82018-10-31 15:41:11 +0100761 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
762 Include also ext jars in the bootclasspath jar.
763 + 2579b791c023a78a577e8cb827890139d6fb7534:
764 Fix toolchain_java9 on --host_javabase=<jdk9> after
765 7eb9ea150fb889a93908d96896db77d5658e5005
766 + faaff7fa440939d4367f284ee268225a6f40b826:
767 Release notes: fix markdown
768 + b073a18e3fac05e647ddc6b45128a6158b34de2c:
769 Fix NestHost length computation Fixes #5987
770 + bf6a63d64a010f4c363d218e3ec54dc4dc9d8f34:
771 Fixes #6219. Don't rethrow any remote cache failures on either
772 download or upload, only warn. Added more tests.
773 + c1a7b4c574f956c385de5c531383bcab2e01cadd:
774 Fix broken IdlClassTest on Bazel's CI.
775 + 71926bc25b3b91fcb44471e2739b89511807f96b:
776 Fix the Xcode version detection which got broken by the upgrade
777 to Xcode 10.0.
778 + 86a8217d12263d598e3a1baf2c6aa91b2e0e2eb5:
779 Temporarily restore processing of workspace-wide tools/bazel.rc
780 file.
Bazel Release System83870d62018-10-29 10:31:13 -0400781 + 914b4ce14624171a97ff8b41f9202058f10d15b2:
782 Windows: Fix Precondition check for addDynamicInputLinkOptions
Bazel Release System83870d62018-10-29 10:31:13 -0400783 + e025726006236520f7e91e196b9e7f139e0af5f4:
784 Update turbine
Bazel Release System36177972018-10-15 10:29:10 +0200785```
786
Bazel Release System92849b82018-10-31 15:41:11 +0100787Important changes:
Bazel Release System83870d62018-10-29 10:31:13 -0400788
Bazel Release System92849b82018-10-31 15:41:11 +0100789 - Fix regression #6219, remote cache failures
Bazel Release System36177972018-10-15 10:29:10 +0200790
Klaus Aehlig7b417542018-10-29 15:46:36 +0100791## Release 0.18.0 (2018-10-15)
792
793```
794Baseline: c062b1f1730f3562d5c16a037b374fc07dc8d9a2
795
796Cherry picks:
797
798 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
799 Include also ext jars in the bootclasspath jar.
800 + 2579b791c023a78a577e8cb827890139d6fb7534:
801 Fix toolchain_java9 on --host_javabase=<jdk9> after
802 7eb9ea150fb889a93908d96896db77d5658e5005
803 + faaff7fa440939d4367f284ee268225a6f40b826:
804 Release notes: fix markdown
805 + b073a18e3fac05e647ddc6b45128a6158b34de2c:
806 Fix NestHost length computation Fixes #5987
807 + bf6a63d64a010f4c363d218e3ec54dc4dc9d8f34:
808 Fixes #6219. Don't rethrow any remote cache failures on either
809 download or upload, only warn. Added more tests.
810 + c1a7b4c574f956c385de5c531383bcab2e01cadd:
811 Fix broken IdlClassTest on Bazel's CI.
812 + 71926bc25b3b91fcb44471e2739b89511807f96b:
813 Fix the Xcode version detection which got broken by the upgrade
814 to Xcode 10.0.
815 + 86a8217d12263d598e3a1baf2c6aa91b2e0e2eb5:
816 Temporarily restore processing of workspace-wide tools/bazel.rc
817 file.
818```
819
820General changes
821
822- New [bazelrc file list](https://docs.bazel.build/versions/master/user-manual.html#where-are-the-bazelrc-files).
823 If you need to keep both the old and new lists of .rc files active
824 concurrently to support multiple versions of Bazel, you can import the old
825 file location into the new list using `try-import`. This imports a file if it
826 exists and silently exits if it does not. You can use this method to account
827 for a user file that may or may not exist
828
829- [.bazelignore](https://docs.bazel.build/versions/master/user-manual.html#.bazelignore)
830 is now fully functional.
831
832- The startup flag `--host_javabase` has been renamed to
833 `--server_javabase` to avoid confusion with the build flag
834 `--host_javabase`.
835
836Android
837
838- The Android resource processing pipeline now supports persistence
839 via worker processes. Enable it with
840 `--persistent_android_resource_processor`. We have observed a 50% increase
841 in build speed for clean local builds and up to 150% increase in build
842 speed for incremental local builds.
843
844C++
845
846- In-memory package //tools/defaults has been removed (controlled by
847 `--incompatible_disable_tools_defaults_package` flag). Please see
848 [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-inmemory-tools-defaults-package)
849 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
850 behavior will be removed in Bazel 0.20.
851
852- Late bound option defaults (typical example was the `--compiler` flag, when
853 it was not specified, it’s value was computed using the CROSSTOOL) are removed
854 (controlled by `--incompatible_disable_late_bound_option_defaults` flag).
855 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-late-bound-option-defaults)
856 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
857 behavior will be removed in Bazel 0.20.
858
859- Depsets are no longer accepted in `user_compile_flags` and `user_link_flags`
860 in the C++ toolchain API (controlled by
861 `--incompatible_disable_depset_in_cc_user_flags` flag) affects C++ users.
862 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disable-depsets-in-c-toolchain-api-in-user-flags)
863 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy
864 behavior will be removed in Bazel 0.20.
865
866- CROSSTOOL is no longer consulted when selecting C++ toolchain (controlled by
867 `--incompatible_disable_cc_toolchain_label_from_crosstool_proto` flag).
868 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-crosstool-to-select-the-cc_toolchain-label)
869 and migrate soon, the flag will be flipped in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
870
871- You can now use [`toolchain_identifier` attribute](https://github.com/bazelbuild/bazel/commit/857d4664ce939f240b1d10d8d2baca6c6893cfcb)
872 on `cc_toolchain` to pair it with CROSSTOOL toolchain.
873
874- C++ specific Make variables
875 are no longer passed from the `CppConfiguration`, but from the C++ toolchain
876 (controlled by `--incompatible_disable_cc_configuration_make_variables` flag).
877 Please see [migration instructions](https://docs.bazel.build/versions/master/skylark/backward-compatibility.html#disallow-using-c-specific-make-variables-from-the-configuration)
878 and migrate soon, the flag will be flipped
879 in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
880
881- Skylark api accessing C++
882 toolchain in `ctx.fragments.cpp` is removed (controlled by
883 `--incompatible_disable_legacy_cpp_toolchain_skylark_api` flag).
884 Please migrate soon, the flag will be flipped
885 in Bazel 0.19, and the legacy behavior will be removed in Bazel 0.20.
886
887- cc_binary link action no longer hardcodes
888 `-static-libgcc` for toolchains that support embedded runtimes
889 (guarded by [`--experimental_dont_emit_static_libgcc`](https://source.bazel.build/bazel/+/2f281960b829e964526a9d292d4c3003e4d19f1c)
890 temporarily). Proper deprecation using `--incompatible` flags will follow.
891
892Java
893
894- Future versions of Bazel will require a locally installed JDK
895 for Java development. Previously Bazel would fall back to using
896 the embedded `--server_javabase` if no JDK as available. Pass
897 `--incompatible_never_use_embedded_jdk_for_javabase` to disable the
898 legacy behaviour.
899
900- `--javacopt=` no longer affects compilations of tools that are
901 executed during the build; use `--host_javacopt=` to change javac
902 flags in the host configuration.
903
904Objective C
905
906- `objc_library` now supports the module_name attribute.
907
908Skylark
909
910- Adds `--incompatible_expand_directories` to automatically expand
911 directories in skylark command lines. Design doc:
912 https://docs.google.com/document/d/11agWFiOUiz2htBLj6swPTob5z78TrCxm8DQE4uJLOwM
913
914- Support fileset expansion in ctx.actions.args(). Controlled by
915 `--incompatible_expand_directories`.
916
917Windows
918
919- `--windows_exe_launcher` is deprecated, this flag will be removed
920 soon. Please make sure you are not using it.
921
922- Bazel now supports the symlink runfiles tree on Windows with
923 `--experimental_enable_runfiles` flag. For more details, see
924 [this doc](https://docs.google.com/document/d/1hnYmU1BmtCSJOUvvDAK745DSJQCapToJxb3THXYMrmQ).
925
926Other Changes
927
928- A new experimental option `--experimental_ui_deduplicate` has been added. It
929 causes the UI to attempt to deduplicate messages from actions to keep the
930 console output cleaner.
931
932- Add `--modify_execution_info`, a flag to customize action execution
933 info.
934
935- Add ExecutionInfo to aquery output for ExecutionInfoSpecifier
936 actions.
937
938- When computing `--instrumentation_filter`, end filter patterns with
939 "[/:]" to match non-top-level packages exactly and treat
940 top-level targets consistently.
941
942- Added the `bazel info server_log` command, which obtains the main Bazel
943 server log file path. This can help debug Bazel issues.
944
945- `aapt shrink` resources now properly respect filter configurations.
946
Bazel Release System50921e62018-09-21 12:27:04 +0200947## Release 0.17.2 (2018-09-21)
948
949```
950Baseline: aa118ca818baf722aede0bc48d0a17584fa45b6e
951
952Cherry picks:
953 + 0e0462589528154cb5160411991075a2000b5452:
954 Update checker framework dataflow and javacutil versions
955 + 3987300d6651cf0e6e91b395696afac6913a7d66:
956 Stop using --release in versioned java_toolchains
957 + 438b2773b8c019afa46be470b90bcf70ede7f2ef:
958 make_deb: Add new empty line in the end of conffiles file
959 + 504401791e0a0e7e3263940e9e127f74956e7806:
960 Properly mark configuration files in the Debian package.
961 + 9ed9d8ac4347408d15c8fce7c9c07e5c8e658b30:
962 Add flag
963 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfil
964 es_tree.
965 + 22d761ab42dfb1b131f1facbf490ccdb6c17b89c:
966 Update protobuf to 3.6.1 -- add new files
967 + 27303d79c38f2bfa3b64ee7cd7a6ef03a9a87842:
968 Update protobuf to 3.6.1 -- update references
969 + ddc97ed6b0367eb443e3e09a28d10e65179616ab:
970 Update protobuf to 3.6.1 -- remove 3.6.0 sources
971 + ead1002d3803fdfd4ac68b4b4872076b19d511a2:
972 Fix protobuf in the WORKSPACE
973 + 12dcd35ef7a26d690589b0fbefb1f20090cbfe15:
974 Revert "Update to JDK 10 javac"
975 + 7eb9ea150fb889a93908d96896db77d5658e5005:
976 Automated rollback of
977 https://github.com/bazelbuild/bazel/commit/808ec9ff9b5cec14f23a4b
978 a106bc5249cacc8c54 and
979 https://github.com/bazelbuild/bazel/commit/4c9149d558161e7d3e363f
980 b697f5852bc5742a36 and some manual merging.
981 + 4566a428c5317d87940aeacfd65f1018340e52b6:
982 Fix tests on JDK 9 and 10
983 + 1e9f0aa89dad38eeab0bd40e95e689be2ab6e5e5:
984 Fix more tests on JDK 9 and 10
985 + a572c1cbc8c26f625cab6716137e2d57d05cfdf3:
986 Add ubuntu1804_nojava, ubuntu1804_java9, ubuntu1804_java10 to
987 postsubmit.
988 + 29f1de099e4f6f0f50986aaa4374fc5fb7744ee8:
989 Disable Android shell tests on the "nojava" platform.
990 + b495eafdc2ab380afe533514b3bcd7d5b30c9935:
991 Update bazel_toolchains to latest release.
992 + 9323c57607d37f9c949b60e293b573584906da46:
993 Windows: fix writing java.log
994 + 1aba9ac4b4f68b69f2d91e88cfa8e5dcc7cb98c2:
995 Automated rollback of commit
996 de22ab0582760dc95f33e217e82a7b822378f625.
997 + 2579b791c023a78a577e8cb827890139d6fb7534:
998 Fix toolchain_java9 on --host_javabase=<jdk9> after
999 7eb9ea150fb889a93908d96896db77d5658e5005
1000 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
1001 Include also ext jars in the bootclasspath jar.
1002 + fdb09a260dead1e1169f94584edc837349a4f4a5:
1003 Release 0.17.1 (2018-09-14)
1004 + 1d956c707e1c843896ac58a341c335c9c149073d:
1005 Do not fail the build when gcov is not installed
1006 + 2e677fb6b8f309b63558eb13294630a91ee0cd33:
1007 Ignore unrecognized VM options in desugar.sh, such as the JVM 9
1008 flags to silence warnings.
1009```
1010
1011Important changes:
1012
1013 - In the future, Bazel will expand tree artifacts in runfiles, too,
1014 which causes the sandbox to link each file individually into the
1015 sandbox directory, instead of symlinking the entire directory. In
1016 this release, the behavior is not enabled by default yet. Please
1017 try it out via
1018 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
1019 s_tree and let us know if it causes issues. If everything looks
1020 good, this behavior will become the default in a following
1021 release.
1022
Bazel Release Systemfdb09a22018-09-14 12:15:54 +02001023## Release 0.17.1 (2018-09-14)
1024
1025```
1026Baseline: aa118ca818baf722aede0bc48d0a17584fa45b6e
1027
1028Cherry picks:
1029 + 0e0462589528154cb5160411991075a2000b5452:
1030 Update checker framework dataflow and javacutil versions
1031 + 3987300d6651cf0e6e91b395696afac6913a7d66:
1032 Stop using --release in versioned java_toolchains
1033 + 438b2773b8c019afa46be470b90bcf70ede7f2ef:
1034 make_deb: Add new empty line in the end of conffiles file
1035 + 504401791e0a0e7e3263940e9e127f74956e7806:
1036 Properly mark configuration files in the Debian package.
1037 + 9ed9d8ac4347408d15c8fce7c9c07e5c8e658b30:
1038 Add flag
1039 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfil
1040 es_tree.
1041 + 22d761ab42dfb1b131f1facbf490ccdb6c17b89c:
1042 Update protobuf to 3.6.1 -- add new files
1043 + 27303d79c38f2bfa3b64ee7cd7a6ef03a9a87842:
1044 Update protobuf to 3.6.1 -- update references
1045 + ddc97ed6b0367eb443e3e09a28d10e65179616ab:
1046 Update protobuf to 3.6.1 -- remove 3.6.0 sources
1047 + ead1002d3803fdfd4ac68b4b4872076b19d511a2:
1048 Fix protobuf in the WORKSPACE
1049 + 12dcd35ef7a26d690589b0fbefb1f20090cbfe15:
1050 Revert "Update to JDK 10 javac"
1051 + 7eb9ea150fb889a93908d96896db77d5658e5005:
1052 Automated rollback of
1053 https://github.com/bazelbuild/bazel/commit/808ec9ff9b5cec14f23a4b
1054 a106bc5249cacc8c54 and
1055 https://github.com/bazelbuild/bazel/commit/4c9149d558161e7d3e363f
1056 b697f5852bc5742a36 and some manual merging.
1057 + 4566a428c5317d87940aeacfd65f1018340e52b6:
1058 Fix tests on JDK 9 and 10
1059 + 1e9f0aa89dad38eeab0bd40e95e689be2ab6e5e5:
1060 Fix more tests on JDK 9 and 10
1061 + a572c1cbc8c26f625cab6716137e2d57d05cfdf3:
1062 Add ubuntu1804_nojava, ubuntu1804_java9, ubuntu1804_java10 to
1063 postsubmit.
1064 + 29f1de099e4f6f0f50986aaa4374fc5fb7744ee8:
1065 Disable Android shell tests on the "nojava" platform.
1066 + b495eafdc2ab380afe533514b3bcd7d5b30c9935:
1067 Update bazel_toolchains to latest release.
1068 + 9323c57607d37f9c949b60e293b573584906da46:
1069 Windows: fix writing java.log
1070 + 1aba9ac4b4f68b69f2d91e88cfa8e5dcc7cb98c2:
1071 Automated rollback of commit
1072 de22ab0582760dc95f33e217e82a7b822378f625.
1073 + 2579b791c023a78a577e8cb827890139d6fb7534:
1074 Fix toolchain_java9 on --host_javabase=<jdk9> after
1075 7eb9ea150fb889a93908d96896db77d5658e5005
1076 + 2834613f93f74e988c51cf27eac0e59c79ff3b8f:
1077 Include also ext jars in the bootclasspath jar.
1078```
1079
1080Incompatible changes:
1081
1082 - Loading @bazel_tools//tools/build_defs/repo:git_repositories.bzl
1083 no longer works. Load @bazel_tools//tools/build_defs/repo:git.bzl
1084 instead.
1085 - If the same artifact is generated by two distinct but identical
1086 actions, and a downstream action has both those actions' outputs
1087 in its inputs, the artifact will now appear twice in the
1088 downstream action's inputs. If this causes problems in Skylark
1089 actions, you can use the uniquify=True argument in Args.add_args.
1090 - If the same artifact is generated by two distinct but identical
1091 actions, and a downstream action has both those actions' outputs
1092 in its inputs, the artifact will now appear twice in the
1093 downstream action's inputs. If this causes problems in Skylark
1094 actions, you can use the uniquify=True argument in Args.add_args.
1095 - Labels in C++ rules' linkopts attribute are not expanded anymore
1096 unless they are wrapped, e.g: $(location //foo:bar)
1097 - If the same artifact is generated by two distinct but identical
1098 actions, and a downstream action has both those actions' outputs
1099 in its inputs, the artifact will now appear twice in the
1100 downstream action's inputs. If this causes problems in Skylark
1101 actions, you can use the uniquify=True argument in Args.add_args.
1102 - New bazelrc file list.
1103 - Windows: when BAZEL_SH envvar is not defined and Bazel searches
1104 for a suitable bash.exe, Bazel will no longer look for Git Bash
1105 and no longer recommend installing it as a Bash implementation.
1106 See issue #5751.
1107 - New bazelrc file list.
1108
1109New features:
1110
1111 - The aquery command now supports --output=text.
1112 - Java, runfiles: the Java runfiles library is now in
1113 @bazel_tools//tools/java/runfiles. The old target
1114 (@bazel_tools//tools/runfiles:java-runfiles) is deprecated and
1115 will be removed in Bazel 0.18.0.
1116 - Java, runfiles: the Java runfiles library is now in
1117 @bazel_tools//tools/java/runfiles. The old target
1118 (@bazel_tools//tools/runfiles:java-runfiles) is deprecated and
1119 will be removed in Bazel 0.19.0 (not 0.18.0, as stated earlier).
1120
1121Important changes:
1122
1123 - Allow @ in package names.
1124 - Remove support for java_runtime_suite; use alias() together with
1125 select() instead.
1126 - Python wrapper scripts for MSVC are removed.
1127 - [JavaInfo] Outputs are merged in java_common.merge().
1128 - Faster analysis by improved parallelization.
1129 - --experimental_shortened_obj_file_path is removed.
1130 - Introduce the --remote_cache_proxy flag,
1131 which allows for remote http caching to connect
1132 via a unix domain socket.
1133 - No longer define G3_VERSION_INFO for c++ linkstamp compiles, as
1134 it was a duplicate of G3_TARGET_NAME.
1135 - Added support for Android NDK r17. The default STL is now
1136 `libc++`, and support for targeting `mips`, `mips64` and `ARMv5`
1137 (`armeabi`) has been removed.
1138 - Add aquery command to get analysis time information about the
1139 action graph.
1140 - Fixed compatibility with aar_import when using aapt2. AAPT2 is
1141 now supported for Android app builds without resource shrinking.
1142 To use it, pass the `--android_aapt=aapt2` flag or define
1143 android_binary.aapt_version=aapt2.
1144 - Code coverage is collected for Java binaries invoked from sh_test.
1145 - java_common.compile creates the native headers jar accesible via
1146 JavaInfo.outputs.native_headers.
1147 - Deleting deprecated no-op flag --show_package_location
1148 - The JDK shipped with Bazel was updated to JDK10.
1149 - Rename the startup flag --host_javabase to --server_javabase to
1150 avoid confusion with the build flag --host_javabase
1151 - newly added options --experimental_repository_hash_file and
1152 --experimental_verify_repository_rules allow to verify for
1153 repositories
1154 the directory generated against pre-recorded hashes. See
1155 documentation
1156 for those options.
1157 - Removed the gen_jars output group
1158 - --subcommands can now take a "pretty_print" value
1159 ("--subcommands=pretty_print") to print the
1160 arguments of subcommands as a list for easier reading.
1161 - follow-up to
1162 https://github.com/bazelbuild/bazel/commit/1ac359743176e659e9c7472
1163 645e3142f3c44b9e8
1164 - A rule error is now thrown if a Skylark rule implementation
1165 function returns multiple providers of the same type.
1166 - When using Bazel's remote execution feature and Bazel has to
1167 fallback to local execution for an action, Bazel used
1168 non-sandboxed
1169 local execution until now. From this release on, you can use the
1170 new
1171 flag --remote_local_fallback_strategy=<strategy> to tell Bazel
1172 which
1173 strategy to use in that case.
1174 - Execution Log Parser can now, when printing it out, filter the
1175 log by runner type
1176 - A rule error is now thrown if a Skylark rule implementation
1177 function returns multiple providers of the same type.
1178 - Removed the gen_jars output group
1179 - Removed the gen_jars output group
1180 - Set --defer_param_files to default to true.
1181 - Sort attribute lists in proto-form query output to fix
1182 non-deterministic genquery output.
1183 - Replace 0/1 with False/True for testonly attribute
1184 - bazel now supports a .bazelignore file specifying
1185 directories to be ignored; however, these directories still
1186 have to be well founded and, in particular, may not contain
1187 symlink cycles.
1188 - Add more detailed reporting of the differences between startup
1189 options.
1190 - update data binding to 3.2.0
1191 - For Android incremental dexing actions, Bazel now persists its
1192 DexBuilder process across individual actions. From our
1193 benchmarks, this results in a 1.2x speedup for clean local builds.
1194 - The standard `xcode_VERSION` feature now always uses exactly two
1195 components in the version, even if you specify `--xcode_version`
1196 with
1197 more or fewer than two.
1198 - A rule error will be thrown if a Skylark rule implementation
1199 function returns multiple providers of the same type. Try the
1200 `--incompatible_disallow_conflicting_providers` flag to ensure
1201 your code is forward-compatible.
1202 - Removed notion of FULLY_STATIC linking mode from C++ rules.
1203 - In documentation, we've renamed Skylark into Starlark.
1204 - Execution Log Parser can now, when printing it out, reorder the
1205 actions for easier text diffs
1206 - Linkstamps are no longer recompiled after server restart.
1207 - Use VanillaJavaBuilder and disable header compilation in
1208 toolchain_hostjdk8. The default toolchain will soon drop
1209 compatibility with JDK 8. Using a JDK 8 host_javabase
1210 will only be supported when using 'VanillaJavaBuilder' (which
1211 does not support Error Prone,
1212 Strict Java Deps, or reduced classpaths) and with header
1213 compilation disabled.
1214 - In the future, Bazel will expand tree artifacts in runfiles, too,
1215 which causes the sandbox to link each file individually into the
1216 sandbox directory, instead of symlinking the entire directory. In
1217 this release, the behavior is not enabled by default yet. Please
1218 try it out via
1219 --incompatible_symlinked_sandbox_expands_tree_artifacts_in_runfile
1220 s_tree and let us know if it causes issues. If everything looks
1221 good, this behavior will become the default in a following
1222 release.
1223
Bazel Release System1bd58832018-08-13 15:41:26 +02001224## Release 0.16.1 (2018-08-13)
1225
1226```
1227Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5
1228
1229Cherry picks:
1230 + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
1231 reduce the size of bazel's embedded jdk
1232 + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
1233 remote: limit number of open tcp connections by default. Fixes
1234 #5491
1235 + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
1236 Fix autodetection of linker flags
1237 + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
1238 Fix autodetection of -z linker flags
1239 + 10219659f58622d99034288cf9f491865f818218:
1240 blaze_util_posix.cc: fix order of #define
1241 + ab1f269017171223932e0da9bb539e8a17dd99ed:
1242 blaze_util_freebsd.cc: include path.h explicitly
1243 + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
1244 openjdk: update macOS openjdk image. Fixes #5532
1245 + f45c22407e6b00fcba706eb62141cb9036bd38d7:
1246 Set the start time of binary and JSON profiles to zero correctly.
1247 + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
1248 remote: fix race on download error. Fixes #5047
1249 + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
1250 jdk: use parallel old gc and disable compact strings
1251 + 6bd0bdf5140525cb33dc2db068b210261d9df271:
1252 Add objc-fully-link to the list of actions that require the
1253 apple_env feature. This fixes apple_static_library functionality.
1254 + f330439fb970cfa17c70fc59c1458bb1c31c9522:
1255 Add the action_names_test_files target to the OSS version of
1256 tools/buils_defs/cc/BUILD.
1257 + d215b64362c4ede61c8ba87b5f3f57bce4785d15:
1258 Fix StackOverflowError on Windows. Fixes #5730
1259 + 366da4cf27b7f957ef39f89206db77fa2ac289df:
1260 In java_rules_skylark depend on the javabase through
1261 //tools/jdk:current_java_runtime
1262 + 30c601dc13d9e1b40a57434c022c888c7578cc56:
1263 Don't use @local_jdk for jni headers
1264 + c56699db5f9173739ba3ac55aa9fa69b6457a99b:
1265 'DumpPlatformClasspath' now dumps the current JDK's default
1266 platform classpath
1267```
1268
1269This release is a patch release that contains fixes for several serious
1270regressions that were found after the release of Bazel 0.16.0.
1271
1272In particular this release resolves the following issues:
1273
1274 - Bazel crashes with a StackOverflowError on Windows (See #5730)
1275 - Bazel requires a locally installed JDK and does not fall back
1276 to the embedded JDK (See #5744)
1277 - Bazel fails to build for Homebrew on macOS El Capitan (See #5777)
1278 - A regression in apple_static_library (See #5683)
1279
1280Please watch our blog for a more detailed release announcement.
1281
Bazel Release Systemb292ad12018-07-31 12:55:37 -04001282## Release 0.16.0 (2018-07-31)
Bazel Release System97564f62018-07-17 14:19:41 +02001283
1284```
Bazel Release Systemb292ad12018-07-31 12:55:37 -04001285Baseline: 4f64b77a3dd8e4ccdc8077051927985f9578a3a5
Bazel Release System97564f62018-07-17 14:19:41 +02001286
1287Cherry picks:
Bazel Release Systemb292ad12018-07-31 12:55:37 -04001288 + 4c9a0c82d308d5df5c524e2a26644022ff525f3e:
1289 reduce the size of bazel's embedded jdk
1290 + d3228b61f633cdc5b3f740b641a0836f1bd79abd:
1291 remote: limit number of open tcp connections by default. Fixes
1292 #5491
Bazel Release System97564f62018-07-17 14:19:41 +02001293 + 8ff87c164f48dbabe3b20becd00dde90c50d46f5:
1294 Fix autodetection of linker flags
1295 + c4622ac9205d2f1b42dac8c598e83113d39e7f11:
1296 Fix autodetection of -z linker flags
Bazel Release Systemb292ad12018-07-31 12:55:37 -04001297 + 10219659f58622d99034288cf9f491865f818218:
1298 blaze_util_posix.cc: fix order of #define
1299 + ab1f269017171223932e0da9bb539e8a17dd99ed:
1300 blaze_util_freebsd.cc: include path.h explicitly
1301 + 68e92b45a37f2142c768a56eb7ecfa484b8b22df:
1302 openjdk: update macOS openjdk image. Fixes #5532
1303 + f45c22407e6b00fcba706eb62141cb9036bd38d7:
1304 Set the start time of binary and JSON profiles to zero correctly.
1305 + bca1912853086b8e9a28a85a1b144ec0dc9717cc:
1306 remote: fix race on download error. Fixes #5047
1307 + 3842bd39e10612c7eef36c6048407e81bcd0a8fb:
1308 jdk: use parallel old gc and disable compact strings
Bazel Release System97564f62018-07-17 14:19:41 +02001309```
1310
Bazel Release Systemb292ad12018-07-31 12:55:37 -04001311Incompatible changes:
1312
1313 - The $(ANDROID_CPU) Make variable is not available anymore. Use
1314 $(TARGET_CPU) after an Android configuration transition instead.
1315 - The $(JAVA_TRANSLATIONS) Make variable is not supported anymore.
1316 - Skylark structs (using struct()) may no longer have to_json and
1317 to_proto overridden.
1318 - The mobile-install --skylark_incremental_res flag is no longer
1319 available, use the --skylark flag instead.
1320
1321New features:
1322
1323 - android_local_test now takes advantage of Robolectric's binary
1324 resource processing which allows for faster tests.
1325 - Allow @ in package names.
1326
Bazel Release System97564f62018-07-17 14:19:41 +02001327Important changes:
1328
Bazel Release Systemb292ad12018-07-31 12:55:37 -04001329 - Option --glibc is removed, toolchain selection relies solely on
1330 --cpu and --compiler options.
1331 - Build support for enabling cross binary FDO optimization.
1332 - The --distdir option is no longer experimental. This
1333 option allows to specify additional directories to look for
1334 files before trying to fetch them from the network. Files from
1335 any of the distdirs are only used if a checksum for the file
1336 is specified and both, the filename and the checksum, match.
1337 - Java coverage works now with multiple jobs.
1338 - Flip default value of --experimental_shortened_obj_file_path to
1339 true, Bazel now generates short object file path by default.
1340 - New rules for importing Android dependencies:
1341 `aar_import_external` and `aar_maven_import_external`.
1342 `aar_import_external` enables specifying external AAR
1343 dependencies using a list of HTTP URLs for the artifact.
1344 `aar_maven_import_external` enables specifying external AAR
1345 dependencies using the artifact coordinate and a list of server
1346 URLs.
1347 - The BAZEL_JAVAC_OPTS environment variable allows arguments, e.g.,
1348 "-J-Xmx2g", may be passed to the javac compiler during bootstrap
1349 build. This is helpful if your system chooses too small of a max
1350 heap size for the Java compiler during the bootstrap build.
1351 - --noexpand_configs_in_place is deprecated.
1352 - A tool to parse the Bazel execution log.
1353 - Support for LIPO has been fully removed.
1354 - Remove support for --discard_actions_after_execution.
1355 - Add --materialize_param_files flag to write parameter files even
1356 when actions are executed remotely.
1357 - Windows default system bazelrc is read from the user's
1358 ProgramData if present.
1359 - --[no]allow_undefined_configs no longer exists, passing undefined
1360 configs is an error.
Bazel Release System1281a022018-07-16 16:13:53 +02001361 - In remote caching we limit the number of open
1362 TCP connections to 100 by default. The number can be adjusted
1363 by specifying the --remote_max_connections flag.
1364
Bazel Release System5013a332018-06-26 14:07:47 +02001365## Release 0.15.0 (2018-06-26)
1366
1367```
1368Baseline: b93ae42e8e693ccbcc387841a17f58259966fa38
1369
1370Cherry picks:
1371 + 4b80f2455e7e49a95f3a4c9102a67a57dad52207:
1372 Add option to enable Docker sandboxing.
1373 + 6b1635279e8b33dc1ac505ac81825e38f8797a14:
1374 Allow disabling the simple blob caches via CLI flag overrides.
1375 + 4ec0a7524913ab2c4641368e3f8c09b347351a08:
1376 Use BUILD.bazel instead of BUILD for external projects
1377```
1378
1379Incompatible changes:
1380
1381 - Bazel now always runs binaries in with "bazel run" in
1382 interactive mode. The "--nodirect_run" command line option is now
1383 a no-op.
1384 - "bazel run --noas_test" is not supported anymore.
1385 - Indentation on the first line of a file was previously ignored.
1386 This is now fixed.
1387
1388New features:
1389
1390 - C++,runfiles: to access data-dependencies (runfiles) in C++
1391 programs, use the runfiles library built into Bazel. For usage
1392 info, see
1393 https://github.com/bazelbuild/bazel/blob/master/tools/cpp/runfiles
1394 /runfiles.h
1395
1396Important changes:
1397
1398 - Bazel now allows almost all 7-bit ASCII characters in labels.
1399 - Remove vestigial java_plugin.data attribute
1400 - Bazel supports including select Java 8 APIs into Android apps
1401 targeting pre-Nougat Android devices with
1402 --experimental_desugar_java8_libs
1403 - Flag `--incompatible_disable_glob_tracking` is removed.
1404 - SkyQuery's rbuildfiles now returns targets corresponding to
1405 broken packages.
1406 - Introduce build support for providing cache prefetch hints.
1407 - Update the skylark DefaultInfo documentation to spell out
1408 runfiles, data_runfiles and default_runfiles
1409 - An internal action for symlinking runfiles will use Command
1410 instead of a Spawns. This should have no functional chages; the
1411 only user visible consequence should be that the internal action
1412 is no longer be included in statistics when calculating processes
1413 count.
1414 - --batch is deprecated
1415 - execution strategies line no longer handles differently the case
1416 where all processes have the same strategy.
1417 - The --experimental_remote_spawn_cache flag is now enabled by
1418 default, and remote caching no longer needs --*_strategy=remote
1419 flags (it will fail if they are specified).
1420 - android_binary.aapt_version='aapt2' now supports en_XA and ar_XB
1421 - Added --apple_enable_auto_dsym_dbg flag.
1422 - non_propagated_deps has been removed from objc_library and
1423 apple_binary.
1424 - For Android projects, Bazel now supports building fonts as
1425 resources. See
1426 https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml
1427 for more information on the feature.
1428 - With --incompatible_no_support_tools_in_action_inputs enabled, Skylark
1429 action inputs are no longer scanned for tools. Move any such
1430 inputs to the newly introduced 'tools' attribute.
1431
Bazel Release System513bbf52018-06-08 14:15:20 +02001432## Release 0.14.1 (2018-06-08)
1433
1434```
1435Baseline: 5c3f5c9be7fa40d4fb3c35756891fab8483ca406
1436
1437Cherry picks:
1438 + f96f037f8f77335dc444844abcc31a372a3e1849:
1439 Windows, Java launcher: Support jar files under different drives
1440 + ff8162d01409db34893de98bd840a51c5f13e257:
1441 sh_configure.bzl: FreeBSD is also a known platform
1442 + 7092ed324137f03fcd34856bdb0595a1bdec3069:
1443 Remove unneeded exec_compatible_with from local_sh_toolchain
1444 + 57bc201346e61c62a921c1cbf32ad24f185c10c9:
1445 Do not autodetect C++ toolchain when
1446 BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 is present
1447 + 35a78c09cf2fbfc3de9c124d2142e3d72aac4348:
1448 remote: recursively delete incomplete downloaded output
1449 directory.
1450 + 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502:
1451 distfile: pack the archives needed later in the build
1452 + 27487c77387e457df18be3b6833697096d074eab:
1453 Slightly refactor SpawnAction to improve env handling
1454 + 1b333a2c37add9d04fe5bc5258ee4f73c93115e2:
1455 Fix Cpp{Compile,Link}Action environment and cache key computation
1456 + 3da8929963e9c70dff5d8859d6e988e6e7f4f9d7:
1457 Make SymlinkTreeAction properly use the configuration's
1458 environment
1459 + eca7b81cf8cc51e1fe56e5ed7d4ad5cd1668a17a:
1460 Add a missing dependency from checker framework dataflow to
1461 javacutils
1462 + 10a4de954c2061258d8222961fc3bd39516db49d:
1463 Release 0.14.0 (2018-06-01)
1464 + 4b80f2455e7e49a95f3a4c9102a67a57dad52207:
1465 Add option to enable Docker sandboxing.
1466 + 6b1635279e8b33dc1ac505ac81825e38f8797a14:
1467 Allow disabling the simple blob caches via CLI flag overrides.
1468```
1469
1470Bug fix for [#5336](https://github.com/bazelbuild/bazel/issues/5336)
1471Bug fix fot [#5308](https://github.com/bazelbuild/bazel/issues/5308)
1472
Bazel Release System3a592f62018-06-01 15:04:31 +02001473## Release 0.14.0 (2018-06-01)
1474
1475```
1476Baseline: 5c3f5c9be7fa40d4fb3c35756891fab8483ca406
1477
1478Cherry picks:
1479 + f96f037f8f77335dc444844abcc31a372a3e1849:
1480 Windows, Java launcher: Support jar files under different drives
1481 + ff8162d01409db34893de98bd840a51c5f13e257:
1482 sh_configure.bzl: FreeBSD is also a known platform
1483 + 7092ed324137f03fcd34856bdb0595a1bdec3069:
1484 Remove unneeded exec_compatible_with from local_sh_toolchain
1485 + 57bc201346e61c62a921c1cbf32ad24f185c10c9:
1486 Do not autodetect C++ toolchain when
1487 BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 is present
1488 + 35a78c09cf2fbfc3de9c124d2142e3d72aac4348:
1489 remote: recursively delete incomplete downloaded output
1490 directory.
1491 + 3c9cd82b847f3ece8ec04b2029bd5e8ad0eb7502:
1492 distfile: pack the archives needed later in the build
1493 + 27487c77387e457df18be3b6833697096d074eab:
1494 Slightly refactor SpawnAction to improve env handling
1495 + 1b333a2c37add9d04fe5bc5258ee4f73c93115e2:
1496 Fix Cpp{Compile,Link}Action environment and cache key computation
1497 + 3da8929963e9c70dff5d8859d6e988e6e7f4f9d7:
1498 Make SymlinkTreeAction properly use the configuration's
1499 environment
1500 + eca7b81cf8cc51e1fe56e5ed7d4ad5cd1668a17a:
1501 Add a missing dependency from checker framework dataflow to
1502 javacutils
1503```
1504
1505Incompatible changes:
1506
1507 - Add --incompatible_disallow_legacy_javainfo flag.
1508 - Added flag --incompatible_disallow_old_style_args_add to help
1509 migrate from args.add() to args.add_all() / args.add_joined()
1510 where appropriate.
1511
1512New features:
1513
1514 - Bash,runfiles: use the new platform-independent library in
1515 `@bazel_tools//tools/bash/runfiles` to access runfiles
1516 (data-dependencies). See
1517 https://github.com/bazelbuild/bazel/blob/master/tools/bash/runfile
1518 s/runfiles.bash for usage information.
1519 - TemplateVariableInfo can now be constructed from Skylark.
1520 - The java_host_runtime_alias rule is now implemented in Java.
1521
1522Important changes:
1523
1524 - Flip default value of --experimental_shortened_obj_file_path to
1525 true, Bazel now generates short object file path by default.
1526 - Introduce fdo_profile rule that allows architecture-sensitive
1527 specification of fdo profiles.
1528 - canonicalize-flags no longer reorders the flags
1529 - CppRules: optional_compiler_flag was removed from CROSSTOOL, use
1530 features instead.
1531 - Labels of the form ////foo are disallowed.
1532 - The `/` operator is deprecated in favor of `//` (floor integer
1533 division).
1534 Try the `--incompatible_disallow_slash_operator` flag to ensure
1535 your code
1536 is forward-compatible.
1537 - Flip default value of --experimental_shortened_obj_file_path to
1538 true, Bazel now generates short object file path by default.
1539 - Exposed "mnemonic" and "env" fields on skylark "Action" objects.
1540 - Removed flag `--incompatible_disallow_toplevel_if_statement`.
1541 - Remove vestigial 'deps' and 'data' attributes from
1542 proto_lang_toolchain
1543 - Args objects (ctx.actions.args()) have new methods add_all() and
1544 add_joined() for building command lines using depsets.
1545 - `FileType` is deprecated and will be removed soon.
1546 Try the `--incompatible_disallow_filetype` flag to ensure your
1547 code
1548 is forward-compatible.
1549 - Introduce absolute_path_profile attribute that allows fdo_profile
1550 to accept absolute paths.
1551 - Support two-arg overloads for ctx.actions.args (eg.
1552 args.add("--foo", val))
1553 - Introduce 'tools' attribute to ctx.actions.run.
1554 - Fixed error message for proguard_apply_dictionary.
1555 - "bazel run" now lets one run interactive binaries. The
1556 BUILD_WORKSPACE_DIRECTORY and BUILD_WORKING_DIRECTORY environment
1557 variables indicate the working directory and the workspace root
1558 of the Bazel invocation. Tests are provided with an approximation
1559 of the official test environment.
1560 - repository rules are no longer restricted to return None.
1561 - Add --high_priority_workers flag.
1562 - CppRules: Feature configuration can be created from Skylark
1563 - Adds new-style JavaInfo provider constructor.
1564 - Make java_common.compile now uses java_toolchain javacopts by
1565 default; explicitly retrieving them using
1566 java_common.default_javac_opts is unnecessary.
1567 - CppRules: C++ command lines and env variables for C++ actions can
1568 be retrieved from feature configuration.
1569 - Skylark rule definitions may advertise providers that targets of
1570 the rule must propagate.
1571 - Bazel now supports running actions inside Docker containers.
1572 To use this feature, run "bazel build --spawn_strategy=docker
1573 --experimental_docker_image=myimage:latest".
1574 - Remote execution works for Windows binaries with launchers.
1575 - Fixing start/end lib expansion for linking. There were many cases
1576 where archive files were still being used with toolchains that
1577 support start/end lib. This change consolidates the places that
1578 make that decision so they can be more consistent.
1579 - Add support for reporting an error if
1580 android_test.binary_under_test contains incompatible versions of
1581 deps
1582 - We replaced the --experimental_local_disk_cache and
1583 --experimental_local_disk_cache_path flags into a single
1584 --disk_cache flag. Additionally, Bazel now tries to create the disk cache
1585 directory if it doesn't exist.
1586 - Save Blaze memory by not storing LinkerInput objects in
1587 LinkCommandLine
1588 - In the JavaInfo created by java_common.create_provider now
1589 includes both direct and transitive arguments in
1590 transitive_compile_time_jars and transitive_runtime_jars
1591 - Allow --worker_max_instances to take MnemonicName=value to
1592 specify max for each worker.
1593 - Allow java_toolchain.header_compiler to be an arbitrary executable
1594
Bazel Release System24c68ff2018-05-23 10:59:57 +02001595## Release 0.13.1 (2018-05-23)
1596
1597```
1598Baseline: fdee70e6e39b74bfd9144b1e350d2d8806386e05
1599
1600Cherry picks:
1601 + f083e7623cd03e20ed216117c5ea8c8b4ec61948:
1602 windows: GetOutputRoot() returns GetHomeDir()
1603 + fa36d2f48965b127e8fd397348d16e991135bfb6:
1604 Automated rollback of commit
1605 4465dae23de989f1452e93d0a88ac2a289103dd9.
1606 + 4abd2babcc50900afd0271bf30dc64055f34e100:
1607 Add error message on empty public resources
1608 + 2c957575ff24c183d48ade4345a79ffa5bec3724:
1609 test-setup: remove leading "./" from test name
1610 + e6eaf251acb3b7054c8c5ced58a49c054b5f23b1:
1611 Sort entries by segment when building a parent node to prevent
1612 unordered directory structures.
1613```
1614
1615Important changes:
1616
1617 - Remote Execution: Fixes a regression that produces directories with unsorted file/directory lists
1618
Bazel Release System1d9c6062018-04-30 10:45:38 +02001619## Release 0.13.0 (2018-04-30)
1620
1621```
1622Baseline: fdee70e6e39b74bfd9144b1e350d2d8806386e05
1623
1624Cherry picks:
1625 + f083e7623cd03e20ed216117c5ea8c8b4ec61948:
1626 windows: GetOutputRoot() returns GetHomeDir()
1627 + fa36d2f48965b127e8fd397348d16e991135bfb6:
1628 Automated rollback of commit
1629 4465dae23de989f1452e93d0a88ac2a289103dd9.
1630 + 4abd2babcc50900afd0271bf30dc64055f34e100:
1631 Add error message on empty public resources
1632 + 2c957575ff24c183d48ade4345a79ffa5bec3724:
1633 test-setup: remove leading "./" from test name
1634```
1635
1636Incompatible changes:
1637
1638 - Remove //tools/defaults:android_jar. Use
1639 @bazel_tools//tools/android:android_jar instead.
1640 - The flag --incompatible_show_all_print_messages is removed.
1641 Messages generated by `print` statements from any package will be
1642 displayed as
1643 DEBUG messages.
1644 - The --incompatible_disallow_uncalled_set_constructor flag is no
1645 longer available, the `set` constructor` is completely removed
1646 from Skylark.
1647 Use `depset` instead.
1648 - Variables PACKAGE_NAME and REPOSITORY_NAME are deprecated in
1649 favor of
1650 functions `package_name()` and `repository_name()`.
1651
1652 https://docs.bazel.build/versions/master/skylark/lib/native.html#p
1653 ackage_name
1654 - BUILD_TIMESTAMP now contains seconds (and not milliseconds) since
1655 the epoch.
1656
1657New features:
1658
1659 - Strings have a new .elems() method, that provides an iterator on
1660 the characters of the string.
1661 - Now you can access three functions in windows_cc_configure.bzl by:
1662 load("@bazel_tools/tools/cpp:windows_cc_configure.bzl",
1663 "<function_name>")
1664
1665Important changes:
1666
1667 - CppRules: Unified action_configs for static libraries
1668 - Remove support for blaze dump --vfs. It is no longer meaningful.
1669 - Enable dependency checking for aar_import targets.
1670 - internal_bootstrap_hack has been deprecated and removed.
1671 - Properly handle tree artifacts on the link command line coming
1672 from a cc_library dependency.
1673 - Allow C++ features to make proto_library emit smaller C++ code
1674 - The 'j2objc' configuration fragment is exposed to Skylark.
1675 - Remove the default content of the global bazelrc.
1676 - In int() function, do not auto-detect base if input starts with
1677 '0'.
1678 - Users can now pass --experimental_shortened_obj_file_path=true to
1679 have a shorter object file path, the object file paths (and all
1680 other related paths) will be constructed as following:
1681 If there's no two or more source files with the same base name:
1682
1683 <bazel-bin>/<target_package_path>/_objs/<target_name>/<source_base
1684 _name>.<extension>
1685 otherwise:
1686
1687 <bazel-bin>/<target_package_path>/_objs/<target_name>/N/<source_ba
1688 se_name>.<extension>
1689 N = the file?s order among the source files with the same
1690 basename, starts from 0.
1691 - Move (c/cxx)opts from legacy_compile_flags to user_compile_flags
1692 - CppRules: Remove optional_*_flag fields from CROSSTOOL, they are
1693 not
1694 used, and could be expressed using features.
1695 - Introduce --incompatible_disable_objc_provider_resources to turn
1696 off all resource-related fields of the Objc provider.
1697 - Removed the statement of "What does Bazel support?" as it's
1698 limiting/misleading. Added supported host OSes to
1699 "multi-platform" paragraph.
1700 - android_library AAR output now contains proguard.txt
1701 - Bazel now displays information about remote cache hits and
1702 execution strategies used in its UI after every build and test,
1703 and adds a corresponding line "process stats" to BuildToolLogs in
1704 BEP.
1705 - Print correct build result for builds with --aspects flag.
1706 - android_binary.manifest_merger is no longer supported.
1707
Bazel Release System546976c2018-04-11 17:34:19 +02001708## Release 0.12.0 (2018-04-11)
1709
1710```
1711Baseline: b33e5afa313322a7048044c44d854cbb666b988e
1712
1713Cherry picks:
1714 + 369409995bd75eeb0683fd24f7585d2a90320796:
1715 Automated rollback of commit
1716 c2b332b45e6ea41a14ecbd3c5f30782bcdeec301.
1717 + dbf779869751cc893ba240402d352c6e70be2978:
1718 Emit SJD errors even if we don't know the label of a dependency
1719 + 4c3098cfa6f00f90c7530b6f40d3e93062931c1d:
1720 Android tools: remove mtime-modifications
1721 + a1068c44a700ec2cff84cbd12592e9bfea25d754:
1722 NDK cc_toolchains: include bundled runtime libraries in
1723 cc_toolchain.all_files
1724 + b1be5816ec1bf8e1172c1bed4f29b4e6c6bb7202:
1725 runfiles,Python: remove library from @bazel_tools
1726 + 0a4622012ff796429220fe57d3217f262cc208a8:
1727 Fix visibility of def_parser for remote builds
1728 + 3c5373c50c7c492842f8a468906eda2c0bc90787:
1729 Remove visibility attribute from
1730 //third_party/def_parser:def_parser
1731 + f54d7e5293cc40ce3507a9adef530e46ab817585:
1732 Enable bulk writes in the HttpBlobStore
1733 + 04ce86e8ba96630f89a436167b7f3a195c5e50e7:
1734 remote/http: properly complete user promise
1735```
1736
1737Incompatible changes:
1738
1739 - The order of dict-valued attributes is now the order in the BUILD
1740 file (or in the Skylark dict they were created from) and not
1741 lexicographically sorted.
1742
1743New features:
1744
1745 - The new "--direct_run" flag on "blaze run" lets one run
1746 interactive binaries.
1747 - "blaze run --direct_run" with tests now gives the test an
1748 approximation of the official test environment.
1749 - "blaze run --direct_run" now exports the
1750 BUILD_{WORKSPACE,WORKING}_DIRECTORY variables to tell the binary
1751 about the cwd of the client and the workspace root.
1752 - New Android device test rule: android_instrumentation_test.
1753 - Add option to dump the action graph to a file: 'bazel dump
1754 --action_graph=/path/to/file'.
1755 - Pass `tags` from `java_import_external` rule to the generated
1756 `java_import` rule.
1757 - blaze query: use --proto:output_rule_attrs to filter for given
1758 attributes
1759 - Added Android NDK r15 support, including compatibility with
1760 Unified Headers.
1761 - Adds --ltobackendopt and --per_file_ltobackendopt for passing
1762 options to ThinLTO LTO backend compile actions only.
1763
1764Important changes:
1765
1766 - Fix how libraries to link is specified to archiver actions.
1767 - Fix how libraries_to_link are expanded in the archiver command
1768 line.
1769 - stop using --no-locals in android coverage builds
1770 - apple_binary can now generate dSYM outputs with the
1771 --apple_generate_dsym=true flag.
1772 - Fix FDO_STAMP_MACRO to only be set when fdoBuildStamp is not null.
1773 - Improved clarity of warning message for unsupported NDK revisions.
1774 - Add lint check for discouraging glob(["**/*.java"])
1775 - unifly lint glob(["**/*.java"]) message
1776 - Removed flags `--incompatible_checked_arithmetic`,
1777 `--incompatible_dict_literal_has_no_duplicates`,
1778 `--incompatible_disallow_keyword_only_args`, and `
1779 --incompatible_comprehension_variables_do_not_leak`.
1780 - Add "proto_source_root" flag to proto_library.
1781 - Updated default android_cpu value to armeabi-v7a
1782 - In skylark, print(target) now shows the provider keys of a
1783 target, as debug information.
1784 - The native http_archive rule is deprecated. Use the
1785 Skylark version available via
1786 load("@bazel_tools//tools/build_defs/repo:http.bzl",
1787 "http_archive")
1788 instead.
1789 - flaky_test_attempts supports the regex@attempts syntax, like
1790 runs_per_test.
1791 - Fixed include paths for NDK r13+ llvm-libc++ headers to
1792 `ndk/sources/cxx-stl/llvm-libc++/include` and
1793 `ndk/sources/cxx-stl/llvm-libc++abi/include`
1794 - --config flags now expand in place by default.
1795 - aar_import now sets java.transitive_exports.
1796 - repository_cache is no longer experimental and enabled by default.
1797 - BAZEL_LINKOPTS is now consulted when autoconfiguring c++ toolchain
1798 - The native git_repository rule is deprecated. Use the
1799 Skylark version available via
1800 load("@bazel_tools//tools/build_defs/repo:git.bzl",
1801 "git_repository")
1802 instead.
1803 - Removed flag `--incompatible_load_argument_is_label`.
1804 - CcToolchain: Introduced action_config for
1805 "c++-link-transitive-dynamic-library"
1806 - Use bazel dump --action_graph=/path/to/action.proto
1807 --action_graph:targets://foo:bar,//foo:foo to filter for certain
1808 targets in the action graph dump.
1809 - Added Android NDK r16 support. Use --cxxopt='-std=c++11` compile
1810 with the C++11 standard, and
1811 `--android_crosstool_top=@androidndk//:toolchain-libcpp` to use
1812 the `libc++` STL.
1813 - Add a --build_event_publish_all_actions flag to allow all actions
1814 to be published via the BEP.
1815 - C++: Introduced --experimental_drop_fully_static_linking_mode
1816 - Removed cc_inc_library, please use cc_library instead
1817 - CppRules: cc_binary/cc_test now enable 'static_linking_mode' or
1818 'dynamic_linking_mode'.
1819
Bazel Release Systemc86d6a02018-03-06 19:32:18 +01001820## Release 0.11.1 (2018-03-06)
1821
1822```
1823Baseline: 00d781ae78a8bd51d3c61b621d79f0bb095aff9e
1824
1825Cherry picks:
1826 + ea2d4c475febdbd59ca0e0ba46adc7be759f84e0:
1827 Update stub_finds_runfiles_test to be a real sh_test.
1828 + d855d8133f4efb73ebd5e82c54a9afb4c7565d46:
1829 java,runfiles: fix bugs in runfiles library
1830 + 56aeb04a064218b845ecc193d530c341c6ec854d:
1831 Fixing #4585: broken re-execution of orphaned actions.
1832 + cf3f81aef7c32019d70cbce218a64a03276268f0:
1833 remote: Add support for HTTP Basic Auth
1834 + 28bd997c1c8793973f63dcae4c22bbae49e7d8b7:
1835 Fixing test-setup.sh occasionally missing stdout/stderr, on
1836 systems where "tail --pid" is supported.
1837 + 109e4b4dc9e786e3a2d8d7cb245d18320dbe9216:
1838 Automated rollback of commit
1839 7e6837cc1d1aa4259f5c27ba3606b277b5f6c3e9.
1840 + b3d52b1b6d46a0f23cc91125c1d522e9d13433b4:
1841 Fix incorrect include directories when -no-canonical-prefixes is
1842 passed to clang
1843 + 1001141f0674ff4b611814edcb00a5183680ef4a:
1844 Roll forward of
1845 https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba1
1846 b52bcac5a3ff942029
1847 (https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba
1848 1b52bcac5a3ff942029). Fix #4625 by running the test process in a
1849 sub-shell.
1850 + fc98b44b6181fa4c3efd8613d887970629468d74:
1851 android,windows: bugfix in aar_resources_extractor
1852```
1853
1854Important changes:
1855
1856 - Fixes regression building Android rules on Windows.
1857
Bazel Release System09077a32018-02-23 11:09:18 -05001858## Release 0.11.0 (2018-02-23)
1859
1860```
1861Baseline: 00d781ae78a8bd51d3c61b621d79f0bb095aff9e
1862
1863Cherry picks:
1864 + ea2d4c475febdbd59ca0e0ba46adc7be759f84e0:
1865 Update stub_finds_runfiles_test to be a real sh_test.
1866 + d855d8133f4efb73ebd5e82c54a9afb4c7565d46:
1867 java,runfiles: fix bugs in runfiles library
1868 + 56aeb04a064218b845ecc193d530c341c6ec854d:
1869 Fixing #4585: broken re-execution of orphaned actions.
1870 + cf3f81aef7c32019d70cbce218a64a03276268f0:
1871 remote: Add support for HTTP Basic Auth
1872 + 28bd997c1c8793973f63dcae4c22bbae49e7d8b7:
1873 Fixing test-setup.sh occasionally missing stdout/stderr, on
1874 systems where "tail --pid" is supported.
1875 + 109e4b4dc9e786e3a2d8d7cb245d18320dbe9216:
1876 Automated rollback of commit
1877 7e6837cc1d1aa4259f5c27ba3606b277b5f6c3e9.
1878 + b3d52b1b6d46a0f23cc91125c1d522e9d13433b4:
1879 Fix incorrect include directories when -no-canonical-prefixes is
1880 passed to clang
1881 + 3904ac33a983fd8faebba1b52bcac5a3ff942029:
1882 Automated rollback of commit
1883 28bd997c1c8793973f63dcae4c22bbae49e7d8b7.
1884 + 1001141f0674ff4b611814edcb00a5183680ef4a:
1885 Roll forward of
1886 https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba1
1887 b52bcac5a3ff942029
1888 (https://github.com/bazelbuild/bazel/commit/3904ac33a983fd8faebba
1889 1b52bcac5a3ff942029). Fix #4625 by running the test process in a
1890 sub-shell.
1891```
1892
1893Incompatible changes:
1894
1895 - ctx.fragments.jvm is not available anymore.
1896
1897New features:
1898
1899 - java,runfiles: You can now depend on
1900 `@bazel_tools//tools/runfiles:java-runfiles` to get a
1901 platform-independent runfiles library for Java. See JavaDoc of
1902 https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles
1903 /java/com/google/devtools/build/runfiles/Runfiles.java for usage
1904 information.
1905
1906Important changes:
1907
1908 - The --[no]experimental_disable_jvm command line option is not
1909 supported anymore.
1910 - Allow expanding TreeArtifacts for libraries_to_link
1911 - Proguarded Android binaries can be built with incremental dexing.
1912 - aar_import now supports assets.
1913 - Crash in OutputJar::Close has been fixed
1914 - generator_* attributes are nonconfigurable.
1915 - Introduces --[no]keep_state_after_build
1916 - Add support for merged object files needed for -flto-unit.
1917 - Fix how libraries to link is specified to archiver actions.
1918 - Replace //tools/defaults:android_jar with
1919 @bazel_tools//tools/android:android_jar.
1920 //tools/defaults:android_jar will be removed in a future release.
1921 - java_common.compile supports neverlink
1922 - Resolved an issue where a failure in the remote cache would not
1923 trigger local re-execution of an action.
1924
Bazel Release Systeme1148362018-02-15 10:02:05 +01001925## Release 0.10.1 (2018-02-15)
1926
1927```
1928Baseline: 22c2f9a7722e8c8b7fdf8f5d30a40f1c4118e993
1929
1930Cherry picks:
1931 + f6ca78808722c8c119affdb33400838ee92d44b6:
1932 isable_presubmit
1933 + 65c13dd5a4c1b4b5a072f7680b8f1cf3c5079b52:
1934 Fix StreamResourceLeak error
1935 + e5436745e1732f5e43fc55f0deb5b19e23ce8524:
1936 windows: fix --symlink_prefix=/ throwing exception
1937 + 22ccdd1ebe1dc495e05d894a3325f6b05e681fb3:
1938 Fix turbine command lines with empty javacopts
1939 + 96c654d43eb2906177325cbc2fc2b1e90dbcc792:
1940 Remove EOL'd Linux flavours, bump CentOS to 6.9.
1941 + f0bec36864f10370cbbda4caa8beac2e0c5ee45b:
1942 Automated rollback of commit
1943 2aeaeba66857c561dd6d63c79a213f1cabc3650d.
1944 + 860af5be10b6bad68144d9d2d34173e86b40268c:
1945 Consolidate Error Prone resource handling
1946 + 2e631c99495f75270d2639542cefb531ec262d67:
1947 sandbox: properly add `tmpDir` to `writablePaths`
1948 + 5bfa5844d0d16d71e88002956e88402bfec88ef7:
1949 actions,temp: respect TMPDIR envvar
1950 + 6cc2ad8676d1ae0542b351a07a05ddbe5efac165:
1951 sandbox: add env[TMPDIR] instead of `tmpDir`
1952 + 40c757f4ab90214f95935672532a495c4551490a:
1953 Change git clone to pull all history, so all needed commits can
1954 be accessed.
1955 + 56aeb04a064218b845ecc193d530c341c6ec854d:
1956 Fixing #4585: broken re-execution of orphaned actions.
1957```
1958
1959Important changes:
1960
1961 - Resolved an issue where a failure in the remote cache would not
1962 trigger local re-execution of an action.
1963
Bazel Release System5bd27482018-02-01 09:43:33 +01001964## Release 0.10.0 (2018-02-01)
1965
1966```
1967Baseline: 22c2f9a7722e8c8b7fdf8f5d30a40f1c4118e993
1968
1969Cherry picks:
1970 + f6ca78808722c8c119affdb33400838ee92d44b6:
1971 isable_presubmit
1972 + 65c13dd5a4c1b4b5a072f7680b8f1cf3c5079b52:
1973 Fix StreamResourceLeak error
1974 + e5436745e1732f5e43fc55f0deb5b19e23ce8524:
1975 windows: fix --symlink_prefix=/ throwing exception
1976 + 22ccdd1ebe1dc495e05d894a3325f6b05e681fb3:
1977 Fix turbine command lines with empty javacopts
1978 + 96c654d43eb2906177325cbc2fc2b1e90dbcc792:
1979 Remove EOL'd Linux flavours, bump CentOS to 6.9.
1980 + f0bec36864f10370cbbda4caa8beac2e0c5ee45b:
1981 Automated rollback of commit
1982 2aeaeba66857c561dd6d63c79a213f1cabc3650d.
1983 + 860af5be10b6bad68144d9d2d34173e86b40268c:
1984 Consolidate Error Prone resource handling
1985 + 2e631c99495f75270d2639542cefb531ec262d67:
1986 sandbox: properly add `tmpDir` to `writablePaths`
1987 + 5bfa5844d0d16d71e88002956e88402bfec88ef7:
1988 actions,temp: respect TMPDIR envvar
1989 + 6cc2ad8676d1ae0542b351a07a05ddbe5efac165:
1990 sandbox: add env[TMPDIR] instead of `tmpDir`
1991 + 40c757f4ab90214f95935672532a495c4551490a:
1992 Change git clone to pull all history, so all needed commits can
1993 be accessed.
1994```
1995
1996Incompatible changes:
1997
1998 - In order to access the template variables $(JAVA) and
1999 $(JAVABASE), @bazel_tools//tools/jdk:current_java_runtime needs
2000 to be added to the toolchains= attribute from now on.
2001 - The ctx.middle_man function is not supported anymore.
2002 - The flag --incompatible_list_plus_equals_inplace is removed, its
2003 default behavior is preserved. += on lists now always mutates the
2004 left hand
2005 side.
2006 - --android_sdk no longer supports filegroup targets.
2007 - android_* rules no longer support legacy_native_support attribute.
2008
2009New features:
2010
2011 - query: Add option --noproto:flatten_selects to turn off
2012 flattening of selector lists in proto output.
2013 - New android test rule, android_local_test.
2014
2015Important changes:
2016
2017 - The --remote_rest_cache flag now respects --remote_timeout.
2018 - --experimental_java_coverage is available for testing.
2019 - The deprecated builtin `set` is no longer allowed even from within
2020 unexecuted code in bzl files. It's temporarily possible to use
2021 --incompatible_disallow_uncalled_set_constructor=false if this
2022 change causes
2023 incompatibility issues.
2024 - Linkstamping is now a separate and full-blown CppCompileAction,
2025 it's
2026 no longer a part of linking command.
2027 - Using `+`, `|` or `.union` on depsets is now deprecated. Please
2028 use the new
2029 constructor instead (see
2030 https://docs.bazel.build/versions/master/skylark/depsets.html).
2031 - config_feature_flag's default_value is optional. It is
2032 only an error to have a config_feature_flag with no default_value
2033 if that config_feature_flag has not been set in the configuration
2034 it is being evaluated in.
2035 - --[no]keep_incrementality_data is gone, replaced by the
2036 enum-valued --incremental_state_retention_strategy
2037 - Linkstamping is now a separate and full-blown CppCompileAction,
2038 it's
2039 no longer a part of linking command.
2040 - Added --checkHashMismatch flag to ZipFilterAction. Valid values
2041 are IGNORE, WARN and ERROR. --errorOnHashMismatch is deprecated,
2042 please use this flag instead.
2043 - Set build jobs equivalent to number of logical processors by
2044 default. Should improve build times significantly.
2045 - Added --(no)expand_test_suites flag.
2046 - Rename --keep_incrementality_data to --track_incremental_state
2047 - --remote_rest_cache was renamed to --remote_http_cache. Both
2048 options keep working in this release, but --remote_rest_cache
2049 will be
2050 removed in the next release.
2051 - Aspects-on-aspect see and propagate over aspect attributes.
2052 - --auth_* flags were renamed to --google_* flags. The old names
2053 will continue to work for this release but will be removed in the
2054 next
2055 release.
2056 - Remote Caching and Execution support output directories.
2057 - Remove defunct flags
2058 --experimental_incremental_dexing_for_lite_proto and
2059 --experimental_incremental_dexing_error_on_missed_jars that have
2060 long been enabled by default
2061 - New version of aapt2 and Resources.proto.
2062 - Make PIC and non PIC outputs for C++ compilation with Tree
2063 Artifacts
2064
Bazel Release System7b423cc2017-12-19 10:31:05 +01002065## Release 0.9.0 (2017-12-19)
Bazel Release System3d53cb02017-12-05 15:28:40 +01002066
2067```
Bazel Release System7b423cc2017-12-19 10:31:05 +01002068Baseline: ddd5ac16aeffa6c4693c348f73e7365240b1abc5
Bazel Release System3d53cb02017-12-05 15:28:40 +01002069
2070Cherry picks:
Bazel Release System7b423cc2017-12-19 10:31:05 +01002071 + 2cf560f83922e6df9626ba3ee063c1caf6797548:
2072 Update version of re2
2073 + a2d2615362c65be98629b39ce39754a325ed1c42:
2074 Check for null build file returned from getBuildFileForPackage.
2075 + 68c577afc2fb33b5e66b820bcc9043fed1071456:
2076 Fix some broken targets and failing tests.
2077 + 766ba8adc4487f17ebfc081aeba6f34b18b53d6c:
Bazel Release System3d53cb02017-12-05 15:28:40 +01002078 Automated rollback of commit
Bazel Release System7b423cc2017-12-19 10:31:05 +01002079 337f19cc54e77c45daa1d5f61bf0a8d3daf8268f.
2080 + a22d0e9c14e58b29d81f5a83bdcc6e5fce52eafe:
2081 Fix: uploading artifacts of failed actions to remote cache
2082 stopped working.
2083 + 03964c8ccb20d673add76c7f37245e837c3899b6:
2084 [java_common.compile] Name output source jar relative to the
2085 output jar name
Bazel Release System3d53cb02017-12-05 15:28:40 +01002086```
2087
Bazel Release System7b423cc2017-12-19 10:31:05 +01002088Incompatible changes:
2089
2090 - The deprecated `set` constructor is removed, along with the
2091 migration flag --incompatible_disallow_set_constructor. It is
2092 still temporarily
2093 allowed to refer to `set` from within unexecuted code.
2094 - The flag --incompatible_disallow_set_constructor is no longer
2095 available, the deprecated `set` constructor is not available
2096 anymore.
2097 - The path to the JVM executable is not accessible anymore as
2098 ctx.{fragments,host_fragments}.jvm.java_executable. Use
2099 JavaRuntimeInfo.java_executable_exec_path instead.
2100 - --clean_style is no longer an option.
2101
2102New features:
2103
2104 - Users can use win_def_file attribute to specify a DEF file for
2105 exporting symbols when build a shared library on Windows.
2106 - Add --experimental_android_resource_cycle_shrinking option to
2107 allow for more aggressive code and resource shrinking.
2108
2109Important changes:
2110
2111 - Late-bound attributes are exposed to skylark. This is a new API
2112 (`configuration_field()`) to depend on certain
2113 configuration-defined targets from skylark rules.
2114 - Document interaction between test_suite and target exclusions
2115 - AAR manifest files will come from the processed resource APK if it
2116 exists.
2117 RELNOTES: None for Blaze users.
2118 - Document interaction between test_suite and target exclusions
2119 - --keep_incrementality_data flag allows Bazel servers to be run in
2120 memory-saving non-incremental mode independent of --batch and
2121 --discard_analysis_cache.
2122 - Add deps attribute to Skylark maven_aar and maven_jar workspace
2123 rules.
2124 - Use --expand_configs_in_place as a startup argument to change the
2125 order in which --config expansions are interpreted.
2126 - SOURCE_DATE_EPOCH
2127 (https://reproducible-builds.org/specs/source-date-epoch/) can
2128 be used to override the timestamp used for stamped target (when
2129 using --stamp).
2130 - Package specifications can now be prefixed with `-` to indicate
2131 negation
2132 - transitive_source_jars is now exposed on JavaInfo.
2133 - Add six to deps of has_services=1 py_proto_librarys.
2134 - java_tests no complain when use_testrunner is explicitly set to 1
2135 and main_class is set.
2136 - transitive_source_jars is now exposed on JavaInfo.
2137 - Debug messages generated by `print()` are not being filtered out
2138 by --output_filter anymore, it's recommended not to use them in
2139 production code.
2140 - in the Label() function, relative_to_caller_repository is now
2141 deprecated.
2142 - java_tests no complain when use_testrunner is explicitly set to 1
2143 and main_class is set.
2144 - Bazel's default hash function was changed from MD5 to SHA256.
2145 In particular, this affects users of remote caching and
2146 execution, as
2147 all hashes will be SHA256 by default.
2148 - Remove redirects for domains be.bazel.build and cr.bazel.build
2149 from the source for docs.bazel.build (because those subdomains
2150 don't resolve here; they resolve to bazel.build, which has the
2151 redirects for them)
2152 - First argument of 'load' must be a label. Path syntax is removed.
2153 (label should start with '//' or ':').
2154 - Document startup option --host_javabase
2155 - The --host_platform and --platform flags are no longer
2156 experimental.
Bazel Release System3d53cb02017-12-05 15:28:40 +01002157
Bazel Release System0838aee2017-11-27 14:16:34 +01002158## Release 0.8.0 (2017-11-27)
2159
2160```
2161Baseline: cff0dc94f6a8e16492adf54c88d0b26abe903d4c
2162
2163Cherry picks:
2164 + 8a49b156c4edf710e3e1e0acfde5a8d27cc3a086:
2165 Fix ImportError on tools.android for junction_lib
2166 + 275ae45b1228bdd0f912c4fbd634b29ba4180383:
2167 Automated rollback of commit
2168 4869c4e17d5b1410070a1570f3244148d8f97b5d.
2169 + d0bf589f2716b3d139c210930371a684c6e158eb:
2170 Add a random number to action temp dir
2171 + 9738f35abddb7ef7a7ef314b5d2a52a3be1b830a:
2172 CcProtoLibrary: Don't add dynamic librarys to filesToBuild on
2173 Windows
2174 + 0d6ff477099fdf6c8c1c7d4e2104f9184afe0a2b:
2175 Automated rollback of commit
2176 0ebb3e54fc890946ae6b3d059ecbd50e4b5ec840.
2177```
2178
2179Incompatible changes:
2180
2181 - ctx.fragments.apple.{xcode_version,ios_minimum_os} is not
2182 supported anymore. The same information is accessible through the
2183 target @bazel_tools//tools/osx:current_xcode_config: point an
2184 implicit attribute to it (i.e.
2185 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
2186 nfig")) then use
2187 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].
2188 - ctx.fragments.apple.minimum_os_for_platform_type is not supported
2189 anymore. The same information is accessible through the target
2190 @bazel_tools//tools/osx:current_xcode_config: point an implicit
2191 attribute to it (i.e.
2192 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
2193 nfig")) then use
2194 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].minimum_o
2195 s_for_platform_type .
2196 - ctx.fragments.apple.sdk_version_for_platform is not supported
2197 anymore. The same information is accessible through the target
2198 @bazel_tools//tools/osx:current_xcode_config: point an implicit
2199 attribute to it (i.e.
2200 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
2201 nfig")) then use
2202 ctx.attr._xcode_config[apple_common].XcodeVersionConfig].sdk_versi
2203 on_for_platform .
2204 - --javabase=<absolute path> and --host_javabase=<absolute path>
2205 are not supported anymore. If you need this functionality
2206 java_runtime_suite(name="suite", default=":runtime")
2207 java_runtime(name="runtime", java_home=<path to the JDK>) is an
2208 alternative.
2209 - The flag --incompatible_descriptive_string_representations is no
2210 longer available, old style string representations of objects are
2211 not supported
2212 anymore.
2213 - The flag --incompatible_disallow_set_constructor is no longer
2214 available, the deprecated `set` constructor is not available
2215 anymore.
2216 - += on lists now mutates them. `list1 += list2` is now equivalent
2217 to `list1.extend(list2)` and not equivalent to `list1 = list1 +
2218 list2` anymore.
2219 - the target_apple_env and apple_host_system_env methods on
2220 ctx.fragments.apple are not supported anymore. The same
2221 information is accessible through apple_common.target_apple_env
2222 and apple_common.apple_host_system_env . They need the Xcode
2223 configuration as an argument, which can be obtained by declaring
2224 an implicit dependency on it (i.e.
2225 attr.label(default=Label("@bazel_tools//tools/osx:current_xcode_co
2226 nfig")) and then calling e.g.
2227 apple_common.apple_host_system_env(ctx.attr._xcode_config[apple_co
2228 mmon.XcodeVersionConfig]).
2229 - C++ toolchain identifiers are not in the name of the output
2230 directory anymore.
2231 - Selecting on "xcode_version" and
2232 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
2233 What was config_setting(values={"$FOO_version": $VALUE}) is now
2234 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_
2235 flag": $VALUE}).
2236 - Selecting on "xcode_version" and
2237 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
2238 What was config_setting(values={"$FOO_version": $VALUE}) is now
2239 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_version_
2240 flag": $VALUE}).
2241 - The flag --incompatible_disallow_set_constructor is no longer
2242 available, the deprecated `set` constructor is not available
2243 anymore.
2244 - Selecting on "xcode_version" and
2245 "{ios,tvos,macos,watchos}_sdk_version" is not supported anymore.
2246 What was config_setting(values={"$FOO_version": $VALUE}) is now
2247 config_setting(flag_values={"@bazel_tools//tools/osx:$FOO_versi...
2248
2249New features:
2250
2251 - runfiles, sh: Shell scripts may now depend on
2252 //src/tools/runfiles:runfiles_sh_lib and source runfiles.sh. The
2253 script defines the `rlocation` function which returns runfile
2254 paths on every platform.
2255 - In addition to $(location), Bazel now also supports $(rootpath)
2256 to obtain
2257 the root-relative path (i.e., for runfiles locations), and
2258 $(execpath) to
2259 obtain the exec path (i.e., for build-time locations)
2260
2261Important changes:
2262
2263 - android_binary now supports custom debug keys via the debug_key
2264 attribute.
2265 - Updated Android proguard to 5.3.3. It now works with android-24+.
2266 - --experimental_use_parallel_android_resource_processing and
2267 --experimental_android_use_nocompress_extensions_on_apk are
2268 removed. These features are fully rolled out.
2269 - Fixes #2574
2270 - Fixes #3834
2271 - Enable experimental UI by default.
2272 - .
2273 RELNOTES: None.
2274 RELNOTES: No.
2275 - Add memory profiler.
2276 - [Bazel] {java,cc}_proto_library now look for dependencies in
2277 @com_google_protobuf, instead of in @com_google_protobuf_$LANG
2278 - Improved merge.sh script in cookbook.
2279 - Fixing regression to --experimental_remote_spawn_cache
2280 - Support for linker scripts in NativeDepsHelper (e.g.,
2281 android_binary)
2282 - Skylark semantics flags now affect WORKSPACE files and repository
2283 rules.
2284 - ctx.outputs.executable is deprecated. Use DefaultInfo(executable
2285 = ...) instead.
2286 - Update "mirror.bazel.build" urls to use https.
2287 - Improve --config logging when --announce_rc is present.
2288 - Document interaction between test_suite and target exclusions
2289 - Replace version numbers for Bazel installers with "<version>"
2290 (because this will change often)
2291 - Published command lines should have improved lists of effective
2292 options.
2293 - --incremental_dexing_binary_types has been removed. All builds
2294 are supported by incremental dexing (modulo proguard and some
2295 blacklisted dx flags).
2296 - Document --host_javabase, --host_java_toolchain
2297
Bazel Release System76b6d0a2017-10-18 14:34:11 +02002298## Release 0.7.0 (2017-10-18)
2299
2300```
2301Baseline: 5cc6246d429f7d9119b97ce263b4fd6893222e92
2302
2303Cherry picks:
2304 + e79a1107d90380501102990d82cbfaa8f51a1778:
2305 Windows,bootstrapping: fix build_windows_jni.sh
2306```
2307
2308Incompatible changes:
2309
2310 - The --output=location flag to 'bazel query' cannot be used with
2311 query expressions that involve the 'buildfiles' or 'loadfiles'
2312 operators. This also applies to 'genquery' rules.
2313 - Operators for equality, comparison, 'in' and 'not in' are no
2314 longer associative,
2315 e.g. x < y < z is now a syntax error. Before, it was parsed
2316 as: (x < y) < z.
2317 - In strings, octal sequences greater than \377 are now forbidden
2318 (e.g. "\\600").
2319 Previously, Blaze had the same behavior as Python 2, where
2320 "\\450" == "\050".
2321 - Using tabulation for identation is now fobidden in .bzl files
2322 - `load` is now a language keyword, it cannot be used as an
2323 identifier
2324 - lvalues must have define at least one variable (i.e. we forbid
2325 `[] = f()`).
2326 - Fixed a bug whereby multiple load() statements could appear on
2327 the same line
2328 - -extra_checks:off is no longer supported; use
2329 -XepDisableAllChecks instead
2330 - java_common.java_toolchain_attr is removed. Depend on the
2331 java_toolchain_alias() rule to accomplish the same thing.
2332 - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
2333 not supported anymore and were replaced with the
2334 cc_toolchain_alias() and java_runtime_alias() rules.
2335 - Noop flag --deprecated_generate_xcode_project deleted.
2336 - Objects in Skylark are converted to strings in a more descriptive
2337 and less harmful way (they don't leak information that shouldn't
2338 be accessed by Skylark code, e.g. nondeterministic memory addresses
2339 of objects).
2340 - `set` is deprecated in BUILD and .bzl files, please use `depset`
2341 instead. Ordering names have also been changed, please use "default",
2342 "postorder", "preorder", and "topological" instead of "stable",
2343 "compile", "naive_link", and "link" correspondingly.
2344 - Integer overflow (on signed 32 bit numbers) in BUILD/bzl files is
2345 an error.
2346 - Keyword-only syntax in a function definition is now forbidden
2347 e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`
2348 - --incompatible_comprehension_variables_do_not_leak defaults to
2349 "true."
2350 Iteration variable becomes inaccessible after a list/dict
2351 comprehension.
2352 - @bazel_tools//tools/build_defs/docker:docker.bzl is no longer
2353 available, please see https://github.com/bazelbuild/rules_docker.
2354
2355New features:
2356
2357 - Zipped LLVM profiles are now supported.
2358 - LIPO maps to ThinLTO for LLVM builds.
2359 - Change to handle LLVM FDO zipped profile contents correctly.
2360 - Do not disable fully dynamic linking with ThinLTO when invoked
2361 via LIPO options.
2362 - There is now a 'siblings' query function. See the query
2363 documentation for more details.
2364 - Added the print_action command, which outputs the
2365 actions needed to build a given target in the form of an
2366 ExtraActionSummary proto in text format.
2367 - android_binary now supports proguard_apply_dictionary to specify
2368 a custom dictionary to use for choosing names to obfuscate
2369 classes and members to.
2370
2371Important changes:
2372
2373 - Windows: bazel clean --expunge works
2374 - First argument of 'load' should be a label. Path syntax is
2375 deprecated (label should start with '//' or ':').
2376 - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
2377 instead of 0777).
2378 - The extension_safe attribute of apple_binary no longer validates
2379 transitive dependencies are compiled against extension_safe APIs.
2380 - Parentheses around the tuple are now mandatory in [a for b in c
2381 if 1, 2]
2382 - Adjust the thresholds for --test_verbose_timeout_warnings so that
2383 it can recommending timeout increases and won't recommend
2384 timeouts that are too close to the actual timeout.
2385 - Iterating on a `depset` object is deprecated. If you need an
2386 iterable, call the `.to_list()` method first.
2387 - Bazel now uses tools from action_configs in Crosstool by default
2388 (as oposed to using top level tools).
2389 - Incremental dexing errors on combination of --multidex=off and
2390 either --main-dex-list or --minimal-main-dex.
2391 - When using the dictionary literal syntax, it is now an error to
2392 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
2393 - New property on android_sdk: aapt2
2394 Choose the version of aapt on android_binary
2395 - Add idl_preprocessed attribute to android_library, so that
2396 preprocessed aidl files can be passed to android_library for
2397 compiling
2398 - Bazel's remote_worker backend for remote execution supports
2399 sandboxing on Linux now. Check
2400 https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
2401 orker/README.md for details.
2402 - Allows flags that expand to take values.
2403 - Make querying attributes formed by selector lists of list types
2404 more efficient by no longer listing every possible combination of
2405 attribute value but by more compactly storing the possible values
2406 of the list.
2407 - writing build events to a file is no longer experimental
2408 - set --rewrite_calls_to_long_compare to false by default.
2409 - ObjC and C++ coverage feature is unified under name 'coverage'
2410 - Enable --incremental_dexing for Android builds by default. Note
2411 that some dexopts are incompatible with incremental dexing,
2412 including --force-jumbo.
2413 - Evaluation will soon use checked arithmetics and throw an error
2414 instead of overflow/underflow.
2415 - Implicit iteration in the CROSSTOOL has been removed, use
2416 explicit 'iterate_over' message.
2417 - Add option for Android specific grte_top
2418 - Crosstool patches are only applied if the toolchain doesn't define
2419 'no_legacy_features' feature.
2420 - 'platform_type' is now a mandatory attribute on apple_binary and
2421 apple_static_library rules.
2422 If this change breaks your build, feel free to add platform_type
2423 = 'ios' to any apple_binary and apple_static_library
2424 targets in your project, as this was the previous default
2425 behavior.
2426 - Remove apple_watch2_extension build rule. Users should be using
2427 the skylark watchos_application and watchos_extension rules.
2428 https://github.com/bazelbuild/rules_apple has details.
2429 - Check stderr to detect if connected to a terminal. Deprecate
2430 --isatty.
2431 - Commands that shut down the server (like "shutdown") now ensure
2432 that the server process has terminated before the client process
2433 terminates.
2434 - Remove apple_watch1_extension and apple_watch_extension_binary
2435 rules. Users should be using the skylark watchos_application and
2436 watchos_extension rules.
2437 https://github.com/bazelbuild/rules_apple has details.
2438 - Windows: Wrapper-less CROSSTOOL becomes default now.
2439 set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
2440 - Ignore --glibc in the Android transition.
2441 - Remove --experimental_android_use_singlejar_for_multidex.
2442 - nocopts now also filter copts
2443 - 'strip' action is now configured via feature configuration
2444 - The Build Event Service (BES) client now properly supports
2445 Google Applicaton Default Credentials.
2446 - Flags from action_config get added first to the command line
2447 first, before the flags from features.
2448 - update dexing tools to Android SDK 26.0.1
2449 - Bazel Android support now requires build-tools 26.0.1 or later.
2450 - `bazel info output_path` no longer relies on the root directory
2451 filename being equal to the workspace name.
2452 - The `print` function now prints debug messages instead of
2453 warnings.
2454 - speedup of incremental dexing tools
2455 - --announce_rc now controls whether bazelrc startup options are
2456 printed to stderr.
2457 - Removing a few unused objc_provider keys.
2458 - Improved logging when workers have to be restarted due to its
2459 files having changed.
2460 - Top-level `if` statements are now forbidden.
2461 - Java protos are compiled to Java 7 bytecode.
2462 - All Android builds now use the desugar tool to support some Java
2463 8 features by default. To disable, use the --nodesugar_for_android flag.
2464 - Skylark-related options may now appear as "common" command
2465 options in the .bazelrc
2466 - Python is now required to build bazel.
2467 - New --build_runfile_manifests flag controls production of
2468 runfiles manifests.
2469 - Enable debug info for Java builds
2470 - Allow java_lite_proto_library in the deps of android rules.
2471 - .so files in APKs will be memory-page aligned when
2472 android_binary.nocompress_extensions contains ".so" and
2473 --experimental_android_use_nocompress_extensions_on_apk is
2474 specified.
2475 - Skylark providers can specify allowed fields and their
2476 documentation.
2477 - Support ctx.actions.args() for more efficient Skylark command
2478 line construction.
2479 - The remote HTTP/1.1 caching client (--remote_rest_cache) now
2480 distinquishes between action cache and CAS. The request URL for
2481 the action cache is prefixed with 'ac' and the URL for the CAS
2482 is prefixed with 'cas'.
2483 - `JavaInfo` is a preferred alias to `java_common.provider`.
2484 - J2ObjC version updated to 2.0.3.
2485 - A new Java coverage implementation is available. Makes possible
2486 coverage for Skylark JVM rules.
2487 - Make proguard_apply_dictionary also apply to class and package
2488 obfuscation, not just class members.
2489 - android_binary.nocompress_extensions now applies to all files in
2490 the APK, not just resources and assets.
2491 - The apple_genrule rule that is distributed with Bazel has been
2492 deleted. Users who wish to use genrules with Xcode's
2493 DEVELOPER_DIR set should use the rules in
2494 https://github.com/bazelbuild/rules_apple instead.
2495 - The swift_library rule that is distributed with Bazel has been
2496 deleted. Users who wish to compile Swift should use the rules in
2497 https://github.com/bazelbuild/rules_apple instead.
2498 - The Build Event Protocol's File.uri field is now properly
2499 encoded according to RFC2396.
2500 - Deprecated: Using the android_library.deps attribute to
2501 implicitly export targets to dependent rules. If your code is
2502 using this feature, Bazel will raise a warning. To fix, please
2503 use android_library.exports to explicitly specify exported
2504 targets. Run with
2505 --experimental_allow_android_library_deps_without_srcs=false to
2506 ensure forward compatibility when this feature is removed in a
2507 future release.
2508 - java_common.create_provider is now supported with creating ijars
2509 by default. This introduces incompatibilities for existing users.
2510 Please set use_ijar=False if you don't want to use ijars.
2511 - Tests can now write files to TEST_UNDECLARED_OUTPUTS_DIR and
2512 TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR and these will be
2513 reflected under bazel-testlogs.
2514 - remove unused --host_incremental_dexing flag
2515 - Stop using --undefined dynamic_lookup in Apple links. Enables
2516 unresolved symbol errors.
2517 - All test output files included for cached, uncached, and multiple
2518 attempt tests.
2519 - Android rules no longer restrict the manifest file to be named
2520 "AndroidManifest.xml".
2521 - Boolean flag values will now get normalized to 1 or 0 in
2522 canonicalize-flags output.
2523 - added experimental --use_new_category_enum to the help command to
2524 output options grouped by the new type of category.
2525 - Expose output jars and jdeps in java_common.provider, when
2526 available.
2527 - android_library targets are no longer allowed to use deps to
2528 export targets implicitly; please use android_library.exports
2529 instead.
2530 - New depset API
2531 - apple_binary and apple_static_library no longer support
2532 compilation attributes such as 'srcs'. If this breaks any
2533 existing targets, you may migrate all such attributes to a new
2534 objc_library target and depend on that objc_library target via
2535 the 'deps' attribute of apple_binary or apple_static_library.
2536
Bazel Release Systemed0ebc02017-10-05 23:52:25 +02002537## Release 0.6.1 (2017-10-05)
2538
2539```
2540Baseline: 87cc92e5df35d02a7c9bc50b229c513563dc1689
2541
2542Cherry picks:
2543 + a615d288b008c36c659fdc17965207bb62d95d8d:
2544 Rollback context.actions.args() functionality.
2545 + 7b091c1397a82258e26ab5336df6c8dae1d97384:
2546 Add a global failure when a test is interrupted/cancelled.
2547 + 95b0467e3eb42a8ce8d1179c0c7e1aab040e8120:
2548 Cleanups for Skylark tracebacks
2549 + cc9c2f07127a832a88f27f5d72e5508000b53429:
2550 Remove the status xml attribute from AntXmlResultWriter
2551 + 471c0e1678d0471961f1dc467666991e4cce3846:
2552 Release 0.6.0 (2017-09-28)
2553 + 8bdd409f4900d4574667fed83d86b494debef467:
2554 Only compute hostname once per server lifetime
2555 + 0bc9b3e14f305706d72180371f73a98d6bfcdf35:
2556 Fix bug in NetUtil caching.
2557```
2558
2559Important changes:
2560 - Only compute hostname once per server lifetime
2561
Bazel Release System471c0e12017-09-28 16:36:12 +02002562## Release 0.6.0 (2017-09-28)
2563
2564```
2565Baseline: 87cc92e5df35d02a7c9bc50b229c513563dc1689
2566
2567Cherry picks:
2568 + a615d288b008c36c659fdc17965207bb62d95d8d:
2569 Rollback context.actions.args() functionality.
2570 + 7b091c1397a82258e26ab5336df6c8dae1d97384:
2571 Add a global failure when a test is interrupted/cancelled.
2572 + 95b0467e3eb42a8ce8d1179c0c7e1aab040e8120:
2573 Cleanups for Skylark tracebacks
2574 + cc9c2f07127a832a88f27f5d72e5508000b53429:
2575 Remove the status xml attribute from AntXmlResultWriter
2576```
2577
2578Incompatible changes:
2579
2580 - Noop flag --deprecated_generate_xcode_project deleted.
2581 - Objects in Skylark are converted to strings in a more descriptive
2582 and less harmful way (they don't leak information that shouldn't
2583 be accessed by Skylark code, e.g. nondeterministic memory addresses
2584 of objects).
2585 - `set` is deprecated in BUILD and .bzl files, please use `depset`
2586 instead. Ordering names have also been changed, please use
2587 "default", "postorder", "preorder", and "topological" instead of
2588 "stable", "compile", "naive_link", and "link" correspondingly.
2589 - Integer overflow (on signed 32 bit numbers) in BUILD/bzl files is
2590 an error.
2591 - Keyword-only syntax in a function definition is now forbidden
2592 e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`
2593 - --incompatible_comprehension_variables_do_not_leak defaults to
2594 "true."
2595 Iteration variable becomes inaccessible after a list/dict
2596 comprehension.
2597
2598New features:
2599
2600 - There is now a 'siblings' query function. See the query
2601 documentation for more details.
2602 - Added the print_action command, which outputs the
2603 actions needed to build a given target in the form of an
2604 ExtraActionSummary proto in text format.
2605 - android_binary now supports proguard_apply_dictionary to specify
2606 a custom dictionary to use for choosing names to obfuscate
2607 classes and members to.
2608
2609Important changes:
2610
2611 - 'strip' action is now configured via feature configuration
2612 - Flags from action_config get added first to the command line
2613 first,
2614 before the flags from features.
2615 - `bazel info output_path` no longer relies on the root directory
2616 filename being equal to the workspace name.
2617 - The `print` function now prints debug messages instead of
2618 warnings.
2619 - speedup of incremental dexing tools
2620 - --announce_rc now controls whether bazelrc startup options are
2621 printed to stderr.
2622 - Removing a few unused objc_provider keys.
2623 - Improved logging when workers have to be restarted due to its
2624 files having changed.
2625 - Top-level `if` statements are now forbidden.
2626 - Java protos are compiled to Java 7 bytecode.
2627 - All Android builds now use the desugar tool to support some Java
2628 8 features by default. To disable, use the
2629 --nodesugar_for_android flag.
2630 - Skylark-related options may now appear as "common" command
2631 options in the .bazelrc
2632 - Python is now required to build bazel.
2633 - When the lvalue of an augmented assignment is a list, we now
2634 throw an error
2635 before evaluating the code (e.g. `a, b += 2, 3`).
2636 - New --build_runfile_manifests flag controls production of
2637 runfiles manifests.
2638 - Enable debug info for Java builds
2639 - Allow java_lite_proto_library in the deps of android rules.
2640 - .so files in APKs will be memory-page aligned when
2641 android_binary.nocompress_extensions contains ".so" and
2642 --experimental_android_use_nocompress_extensions_on_apk is
2643 specified.
2644 - Skylark providers can specify allowed fields and their
2645 documentation.
2646 - Support ctx.actions.args() for more efficient Skylark command
2647 line construction.
2648 - The remote HTTP/1.1 caching client (--remote_rest_cache) now
2649 distinquishes between action cache and CAS. The request URL for
2650 the action cache is prefixed with 'ac' and the URL for the CAS
2651 is prefixed with 'cas'.
2652 - `JavaInfo` is a preferred alias to `java_common.provider`.
2653 - J2ObjC version updated to 2.0.3.
2654 - A new Java coverage implementation is available. Makes possible
2655 coverage for Skylark JVM rules.
2656 - Make proguard_apply_dictionary also apply to class and package
2657 obfuscation, not just class members.
2658 - When using the dictionary literal syntax, it is now an error to
2659 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
2660 - android_binary.nocompress_extensions now applies to all files in
2661 the APK, not just resources and assets.
2662 - The apple_genrule rule that is distributed with Bazel has been
2663 deleted. Users who wish to use genrules with Xcode's
2664 DEVELOPER_DIR set should use the rules in
2665 https://github.com/bazelbuild/rules_apple instead.
2666 - The swift_library rule that is distributed with Bazel has been
2667 deleted. Users who wish to compile Swift should use the rules in
2668 https://github.com/bazelbuild/rules_apple instead.
2669
Bazel Release System5371d132017-08-25 11:24:06 +02002670## Release 0.5.4 (2017-08-25)
2671
2672```
2673Baseline: 6563b2d42d29196432d5fcafa0144b8371fbb028
2674
2675Cherry picks:
2676 + d4fa181f8607c35230b7efa1ce94188b51508962:
2677 Use getExecPathString when getting bash_main_file
2678 + 837e1b3d4859140d29aaa6bbab8fbb008e6d701e:
2679 Windows, sh_bin. launcher: export runfiles envvars
2680 + fe9ba893c0ebec19228086356af5fa8d81f2809b:
2681 grpc: Consolidate gRPC code from BES and Remote Execution. Fixes
2682 #3460, #3486
2683 + e8d4366cd374fba92f1425de0d475411c8defda4:
2684 Automated rollback of commit
2685 496d3ded0bce12b7371a93e1183ba30e6aa88032.
2686 + 242a43449dd44a22857f6ce95f7cc6a7e134d298:
2687 bes,remote: update default auth scope.
2688 + 793b409eeae2b42be7fed58251afa87b5733ca4d:
2689 Windows, sh_bin. launcher: fix manifest path
2690 + 7e4fbbe4ab3915a57b2187408c3909e5cd6c6013:
2691 Add --windows_exe_launcher option
2692 + 91fb38e92ace6cf14ce5da6527d71320b4e3f3d2:
2693 remote_worker: Serialize fork() calls. Fixes #3356
2694 + b79a9fcd40f448d3aebb2b93a2ebe80d09b38408:
2695 Quote python_path and launcher in
2696 python_stub_template_windows.txt
2697 + 4a2e17f85fc8450aa084b201c5f24b30010c5987:
2698 Add build_windows_jni.sh back
2699 + ce61d638197251f71ed90db74843b55d9c2e9ae5:
2700 don't use methods and classes removed in upstream dx RELNOTES:
2701 update dexing tools to Android SDK 26.0.1
2702 + 5393a4996d701fa192964a35cbb75e558a0599c0:
2703 Make Bazel enforce requirement on build-tools 26.0.1 or later.
2704 + 5fac03570f80856c063c6019f5beb3bdc1672dee:
2705 Fix --verbose_failures w/ sandboxing to print the full command
2706 line
2707 + f7bd1acf1f96bb7e3e19edb9483d9e07eb5af070:
2708 Only patch in C++ compile features when they are not already
2709 defined in crosstool
2710 + d7f5c120417bc2d2344dfb285322355f225d9153:
2711 Bump python-gflags to 3.1.0, take two
2712 + 3cb136d5451e9d8af58f9a99990cad0592df101a:
2713 Add python to bazel's dockerfiles
2714```
2715
2716New features:
2717
2718 - Do not disable fully dynamic linking with ThinLTO when invoked
2719 via LIPO options.
2720
2721Important changes:
2722
2723 - Ignore --glibc in the Android transition.
2724 - Remove --experimental_android_use_singlejar_for_multidex.
2725 - nocopts now also filter copts
2726 - The Build Event Service (BES) client now properly supports
2727 Google Applicaton Default Credentials.
2728 - update dexing tools to Android SDK 26.0.1
2729 - Bazel Android support now requires build-tools 26.0.1 or later.
2730 - Fix a bug in the remote_worker that would at times make it crash on Linux. See #3356
2731 - The java_proto_library rule now supports generated sources. See #2265
2732
Bazel Release System195a7a82017-07-27 20:27:32 +02002733## Release 0.5.3 (2017-07-27)
2734
2735```
2736Baseline: 88518522a18df5788736be6151fc67992efe2aad
2737
2738Cherry picks:
2739 + 820a46af10808396873c36d0f331e533118cf0c6:
2740 Automated rollback of commit
2741 6d6e87297fe8818e4c374fdfabfbcf538bca898a.
2742 + ccfb2df69ecf4746f5a15e1295af995c3a45aa94:
2743 Allow py_binary to be the executable of a Skylark action or any
2744 SpawnAction on Windows.
2745 + 06534911696838e720c8681f6f568c69d28da65e:
2746 Fix string representation for the Root class
2747 + cd159bcee72a7f377621b45409807231a636f9e2:
2748 sandbox: Allow UNIX sockets on macOS even when block-network is
2749 used.
2750 + ad73cba3caa2e08ad61ea9ca63f9111cde1f48d1:
2751 Fix python_stub_template.txt to be compatible with Python 2.4.
2752 + 9a63aff8bb771af8917903fbbc9df3b708e2c0ed:
2753 Create Windows ZIP release artifact using Bazel
2754 + 5e576637b5705aff0a7bf56b5077463dffcd712f:
2755 Automated rollback of commit
2756 820a46af10808396873c36d0f331e533118cf0c6.
2757 + b6e29ca217b02c3ba499b85479a3830f59c9b9b6:
2758 Use the correct function to generate the release notes
2759 + 0f3481ba6364f24ef76b839bdde06ae7883c9bd9:
2760 Include <cinttypes> instead of <stdint.h>
2761```
2762
2763Incompatible changes:
2764
2765 - The --output=location flag to 'bazel query' cannot be used with
2766 query expressions that involve the 'buildfiles' or 'loadfiles'
2767 operators. This also applies to 'genquery' rules.
2768 - Operators for equality, comparison, 'in' and 'not in' are no
2769 longer associative, e.g. x < y < z is now a syntax error.
2770 Before, it was parsed as: (x < y) < z.
2771 - In strings, octal sequences greater than \377 are now forbidden
2772 (e.g. "\\600"). Previously, Blaze had the same behavior as Python 2,
2773 where "\\450" == "\050".
2774 - Using tabulation for identation is now fobidden in .bzl files
2775 - `load` is now a language keyword, it cannot be used as an
2776 identifier
2777 - lvalues must have define at least one variable (i.e. we forbid
2778 `[] = f()`).
2779 - Fixed a bug whereby multiple load() statements could appear on
2780 the same line
2781 - -extra_checks:off is no longer supported; use
2782 -XepDisableAllChecks instead
2783 - java_common.java_toolchain_attr is removed. Depend on the
2784 java_toolchain_alias() rule to accomplish the same thing.
2785 - cc_common.cc_toolchain_attr and java_common.java_runtime_attr are
2786 not supported anymore and were replaced with the
2787 cc_toolchain_alias() and java_runtime_alias() rules.
2788
2789New features:
2790
2791 - Zipped LLVM profiles are now supported.
2792 - LIPO maps to ThinLTO for LLVM builds.
2793 - Change to handle LLVM FDO zipped profile contents correctly.
2794
2795Important changes:
2796
2797 - Windows: bazel clean --expunge works
2798 - First argument of 'load' should be a label. Path syntax is
2799 deprecated (label should start with '//' or ':').
2800 - Octal prefix '0' is deprecated in favor of '0o' (use 0o777
2801 instead of 0777).
2802 - The extension_safe attribute of apple_binary no longer validates
2803 transitive dependencies are compiled against extension_safe APIs.
2804 - Parentheses around the tuple are now mandatory in [a for b in c
2805 if 1, 2]
2806 - Adjust the thresholds for --test_verbose_timeout_warnings so that
2807 it can recommending timeout increases and won't recommend
2808 timeouts that are too close to the actual timeout.
2809 - Iterating on a `depset` object is deprecated. If you need an
2810 iterable, call the `.to_list()` method first.
2811 - Bazel now uses tools from action_configs in Crosstool by default
2812 (as oposed to using top level tools).
2813 - Incremental dexing errors on combination of --multidex=off and
2814 either --main-dex-list or --minimal-main-dex.
2815 - When using the dictionary literal syntax, it is now an error to
2816 have duplicated keys (e.g. {'ab': 3, 'ab': 5}).
2817 - New property on android_sdk: aapt2
2818 Choose the version of aapt on android_binary
2819 - Add idl_preprocessed attribute to android_library, so that
2820 preprocessed aidl files can be passed to android_library for
2821 compiling
2822 - Bazel's remote_worker backend for remote execution supports
2823 sandboxing on Linux now. Check
2824 https://github.com/bazelbuild/bazel/blob/master/src/tools/remote_w
2825 orker/README.md for details.
2826 - Allows flags that expand to take values.
2827 - Make querying attributes formed by selector lists of list types
2828 more efficient by no longer listing every possible combination of
2829 attribute value but by more compactly storing the possible values
2830 of the list.
2831 - Writing build events to a file is no longer experimental
2832 - set --rewrite_calls_to_long_compare to false by default.
2833 - ObjC and C++ coverage feature is unified under name 'coverage'
2834 - Enable --incremental_dexing for Android builds by default. Note
2835 that some dexopts are incompatible with incremental dexing,
2836 including --force-jumbo.
2837 - Evaluation will soon use checked arithmetics and throw an error
2838 instead of overflow/underflow.
2839 - Implicit iteration in the CROSSTOOL has been removed, use
2840 explicit 'iterate_over' message.
2841 - Add option for Android specific grte_top
2842 - Crosstool patches are only applied if the toolchain doesn't define
2843 'no_legacy_features' feature.
2844 - 'platform_type' is now a mandatory attribute on apple_binary and
2845 apple_static_library rules.
2846 If this change breaks your build, feel free to add platform_type
2847 = 'ios' to any apple_binary and apple_static_library
2848 targets in your project, as this was the previous default
2849 behavior.
2850 - Remove apple_watch2_extension build rule. Users should be using
2851 the skylark watchos_application and watchos_extension rules.
2852 https://github.com/bazelbuild/rules_apple has details.
2853 - Check stderr to detect if connected to a terminal. Deprecate
2854 --isatty.
2855 - Commands that shut down the server (like "shutdown") now ensure
2856 that the server process has terminated before the client process
2857 terminates.
2858 - Remove apple_watch1_extension and apple_watch_extension_binary
2859 rules. Users should be using the skylark watchos_application and
2860 watchos_extension rules.
2861 https://github.com/bazelbuild/rules_apple has details.
2862 - Windows: Wrapper-less CROSSTOOL becomes default now.
2863 set USE_MSVC_WRAPPER=1 if you still want to use wrapper script.
2864
Bazel Release System7b851222017-06-27 15:08:47 +02002865## Release 0.5.2 (2017-06-27)
2866
2867```
2868Baseline: e78ad83ded6e9c6d639793827e27b6570e6e9f65
2869
2870Cherry picks:
2871 + 68028317c1d3d831a24f90e2b25d1410ce045c54:
2872 experimental UI: move stopUpdateThread() out of synchronized,
2873 again
2874 + 019935dfbb61e61d08d1351b0365fb4e2d0df305:
2875 Fix bug in URI computation in RemoteModule
2876 + e9424cf9b9d72b98594966d5ac0f15bb018ec639:
2877 Automated rollback of commit
2878 7dec00574aa91327693f6ba7e90bff5bc834253e.
2879 + 9eea05d068a06ab642dd9d86d46ee5fa2e36b02e:
2880 Switching to Watcher API instead of wait_for_completion, in
2881 preparation for deprecating the wait_for_completion field.
2882 + 89659810e3048782dfb5e308e39aa8a0727e464e:
2883 Set correct execroot for info
2884 + 716b527266f47f59a2b7fb2e5fc52cb45e1691b1:
2885 Only create a single per-build instance of the remote cache /
2886 executor
2887 + 1d82d199f82409f217a42bcefebb96f723f91caa:
2888 protobuf: Update protobuf jars to be binary compatible with Java
2889 6. Fixes #3198
2890 + 524b90d9e5acc4fa568f215c9415eaa902e979f8:
2891 Change CAS URI to use the "bytestream" scheme instead of being
2892 scheme-less
2893 + 4929ad79865f8c13ef3b33c827040f4a037e4afe:
2894 Automated g4 rollback of commit
2895 923d7df521f67d031b288180560848bd35e20976.
2896 + 68b9a7e2dc17e32b194238d287e79bee1ba035b9:
2897 Automated g4 rollback of commit
2898 da56606563ee9df438db93392f681bf2abb4ac97.
2899 + 2ba693ffbe824136a0ca5f47d34710612f6302c3:
2900 Automated rollback of commit
2901 ce7c4deda60a307bba5f0c9421738e2a375cf44e.
2902```
2903
2904Incompatible changes:
2905
2906 - Blaze no longer generates xcode projects. Use tulsi.bazel.build
2907 instead.
2908
2909Important changes:
2910
2911 - Keyword-only syntax in a function definition is deprecated
2912 (e.g. `def foo(a, *, b)` or `def foo(a, *b, c)`) and will be
2913 removed in the future.
2914 - Attempting to build an Android target without setting up
2915 android_sdk_repository will now produce a helpful error message.
2916 - Adds a sha256 attribute to git_repository and new_git_repository.
2917 This can only be used if the remote is a public GitHub
2918 repository. It forces
2919 Bazel to download the repository as a tarball, which will often
2920 be faster and
2921 more robust than cloning it.
2922 - Sandboxing is now enabled by default on FreeBSD (via
2923 processwrapper-sandbox).
2924 - android_test may use manifest placeholders with 'manifest_merger
2925 = "android"'.
2926 - load() statements should be called at the top of .bzl files,
2927 before any
2928 other statement. This convention will be enforced in the future.
2929 - Effectively remove sysroot from CppConfiguration and allow it to
2930 use select statements.
2931 - proto_library.strict_proto_deps no longer exists.
2932 - Flag --explicit_jre_deps is now a noop.
2933 - The 'legacy' Android manifest merger is deprecated. Please
2934 upgrade to the 'android' manifest merger, which is the same
2935 merger used by Gradle.
2936 https://developer.android.com/studio/build/manifest-merge.html
2937 - Using $(CC_FLAGS) in a GenRule adds a dependency to the c++
2938 toolchain
2939 - add one-version enforcement to android_local_test
2940 - Skylark support (apple_common.dotted_version(string)) for
2941 building DottedVersion objects to interface with native apple
2942 rules
2943 - CC_FLAGS can be defined using 'cc-flags-make-variable' action_config in
2944 CROSSTOOL
2945 - ios_framework native rule has been removed. This rule had been
2946 essentially broken for several months now; users should be using
2947 the skylark ios framework rule.
2948 https://github.com/bazelbuild/rules_apple has details.
2949 - Clean command no longer uses boolean values for --async,
2950 --expunge, and --expunge_async options.
2951 - Partially fixes external J2ObjC support.
2952 - '--aspects' can occur more than once on the command line.
2953 - --no_ prefix no longer recognized.
2954 - Use action_config in crosstool for static library archiving,
2955 remove ar_flag.
2956 - Added a new flag --sandbox_writable_path, which asks the sandbox
2957 to
2958 make an existing directory writable when running actions.
2959 - bazel test now also computes a default instrumentation filter if
2960 --collect_code_coverage is enabled
2961 - n/na
2962 - In .bzl files, top-level `if` statements are deprecated and will
2963 be forbidden
2964 in the future. Move them in a function body instead (or use a
2965 conditional
2966 expression instead: `x if condition else y`).
2967 - ios_device and ios_test are deprecated. Please use the new testing
2968 rules in https://github.com/bazelbuild/rules_apple instead.
2969 - bazel query --output package now displays packages from external
2970 repository with the format "@reponame//package". Packages in the
2971 main repository continue to have the format "package".
2972 - ctx.expand_make_variables is deprecated.
2973 - Bazel posts links to the CAS to the BEP if remote caching /
2974 execution is enabled
2975 - `bazel info execution_root` returns the corrrect directory name
2976 for the execution root.
2977
Bazel Release System63222de2017-06-06 11:32:04 +02002978## Release 0.5.1 (2017-06-06)
2979
2980```
2981Baseline: f3ae88ee043846e7acdffd645137075a4e72c573
2982
2983Cherry picks:
2984 + c58ba098526b748f9c73e6229cafd74748205aa1:
2985 Release to GCS: put the final release in its own directory
2986 + 0acead4ea3631240659836ce6ecd6d7f67fd352b:
2987 Update protobuf to latest master at a64497c and apply
2988 @laszlocsomor's latest changes from
2989 https://github.com/google/protobuf/pull/2969 on top of it.
2990 + d0242ce4a87929f2528f4602d0fb09d1ccfcea94:
2991 Make symlinks consistent
2992 + d953ca8b87a46decbce385cebb446ae0dd390881:
2993 Clean VanillaJavaBuilder output directories
2994 + 755669fb5de1f4e762f27c19776cac9f410fcb94:
2995 Pass all the environment variable to Bazel during bootstrapping
2996 + 6f041661ca159903691fcb443d86dc7b6454253d:
2997 Do not mark the JDK7 installer -without-jdk-installer
2998 + 720561113bfa702acfc2ca24ce3cc3fd7ee9c115:
2999 Fix #2958: Installer should not overwrite bazelrc
3000 + 511c35b46cead500d4e76706e0a709e50995ceba:
3001 Bootstrap: move the fail function to the top
3002 + 8470be1122825aae8ad0903dd1e1e2a90cce47d2:
3003 Clean up javac and Error Prone targets
3004 + 4a404de2c6c38735167e17ab41be45ef6fc4713a:
3005 Update javac version to 9-dev-r4023-2
3006 + 36ce4b433e19498a78c34540d5a166d4e0006b22:
3007 Update javac version to 9-dev-r4023-2
3008 + 38949b8526bdb3e6db22f3846aac87162c28c33f:
3009 Migrate off versioned javac and Error Prone targets
3010 + 1a57d298f8aa6ea8136d93223902104f2479cd2a:
3011 Re-enabling passing -sourcepath via javacopts.
3012 + eb565f408e03125e92d42b00756e519795be6593:
3013 Make make sure that msys build actually builds msys version
3014 + 39f328cf392056618d1a3ead4835a138b189a06d:
3015 Fix typo. Also do not override host_cpu for msvc.
3016 + 624802893f4fe72118f00a78452605d41a2e1c6f:
3017 Select correct JDK for windows_msys
3018 + c4f271d1a68366b6fa5ff38ea7d951b6a22af044:
3019 Automated g4 rollback of commit
3020 3e5edafa2a04a71cd3596e929e83222da725f3f9.
3021 + 926180997a0f296a5a009326aead887279ce0a90:
3022 Remove process-tools.cc which I forgot to delete during the last
3023 rollback.
3024 + baca6e4cb023649920871b74810927d304729e59:
3025 Fix #2982: Bazel installer should not check for installed JDK if
3026 using a bundled JDK.
3027 + 866ecc8c3d5e0b899e3f0c9c6b2265f16daae842:
3028 Disable msys path conversion on Windows.
3029 + cc21998c299b4d1f97df37b961552ff8168da17f:
3030 Rollforward #2 of: Basic open-source crosstool to support
3031 targeting apple platform types.
3032 + 0f0ccc4fc8229c1860a9c9b58089d6cfb2ee971f:
3033 Escape % in strings that will appear in Crosstool
3034 + 3b08f774e7938928e3a240a47a0a7554cdc8d50b:
3035 Adding feature for linking C Run-Time library on Windows
3036 + 3566474202d1978acfdcb7e5ff73ee03ea6f3df9:
3037 Do not use sed -E in bootstrap/compile.sh
3038 + c3cf7d917afd02d71de3800cd46ad8d14f1ddf55:
3039 Reverts non-xcode-available darwin crosstool generation.
3040```
3041
3042Important changes:
3043
3044 - Fixes regression in 0.5.0 requiring Xcode to build C++ on OSX.
3045
Bazel Release Systema3e26832017-05-26 14:11:07 +02003046## Release 0.5.0 (2017-05-26)
3047
3048```
3049Baseline: f3ae88ee043846e7acdffd645137075a4e72c573
3050
3051Cherry picks:
3052 + c58ba098526b748f9c73e6229cafd74748205aa1:
3053 Release to GCS: put the final release in its own directory
3054 + 0acead4ea3631240659836ce6ecd6d7f67fd352b:
3055 Update protobuf to latest master at a64497c and apply
3056 @laszlocsomor's latest changes from
3057 https://github.com/google/protobuf/pull/2969 on top of it.
3058 + d0242ce4a87929f2528f4602d0fb09d1ccfcea94:
3059 Make symlinks consistent
3060 + d953ca8b87a46decbce385cebb446ae0dd390881:
3061 Clean VanillaJavaBuilder output directories
3062 + 755669fb5de1f4e762f27c19776cac9f410fcb94:
3063 Pass all the environment variable to Bazel during bootstrapping
3064 + 6f041661ca159903691fcb443d86dc7b6454253d:
3065 Do not mark the JDK7 installer -without-jdk-installer
3066 + 720561113bfa702acfc2ca24ce3cc3fd7ee9c115:
3067 Fix #2958: Installer should not overwrite bazelrc
3068 + 511c35b46cead500d4e76706e0a709e50995ceba:
3069 Bootstrap: move the fail function to the top
3070 + 8470be1122825aae8ad0903dd1e1e2a90cce47d2:
3071 Clean up javac and Error Prone targets
3072 + 4a404de2c6c38735167e17ab41be45ef6fc4713a:
3073 Update javac version to 9-dev-r4023-2
3074 + 36ce4b433e19498a78c34540d5a166d4e0006b22:
3075 Update javac version to 9-dev-r4023-2
3076 + 38949b8526bdb3e6db22f3846aac87162c28c33f:
3077 Migrate off versioned javac and Error Prone targets
3078 + 1a57d298f8aa6ea8136d93223902104f2479cd2a:
3079 Re-enabling passing -sourcepath via javacopts.
3080 + eb565f408e03125e92d42b00756e519795be6593:
3081 Make make sure that msys build actually builds msys version
3082 + 39f328cf392056618d1a3ead4835a138b189a06d:
3083 Fix typo. Also do not override host_cpu for msvc.
3084 + 624802893f4fe72118f00a78452605d41a2e1c6f:
3085 Select correct JDK for windows_msys
3086 + c4f271d1a68366b6fa5ff38ea7d951b6a22af044:
3087 Automated g4 rollback of commit
3088 3e5edafa2a04a71cd3596e929e83222da725f3f9.
3089 + 926180997a0f296a5a009326aead887279ce0a90:
3090 Remove process-tools.cc which I forgot to delete during the last
3091 rollback.
3092 + baca6e4cb023649920871b74810927d304729e59:
3093 Fix #2982: Bazel installer should not check for installed JDK if
3094 using a bundled JDK.
3095 + 866ecc8c3d5e0b899e3f0c9c6b2265f16daae842:
3096 Disable msys path conversion on Windows.
3097 + cc21998c299b4d1f97df37b961552ff8168da17f:
3098 Rollforward #2 of: Basic open-source crosstool to support
3099 targeting apple platform types.
3100 + 0f0ccc4fc8229c1860a9c9b58089d6cfb2ee971f:
3101 Escape % in strings that will appear in Crosstool
3102 + 3b08f774e7938928e3a240a47a0a7554cdc8d50b:
3103 Adding feature for linking C Run-Time library on Windows
3104```
3105
3106Incompatible changes:
3107
3108 - Bazel's Linux sandbox no longer mounts an empty tmpfs on /tmp,
3109 instead the existing /tmp is mounted read-write. If you prefer
3110 to have a tmpfs on /tmp for sandboxed actions for increased
3111 hermeticity, please use the flag --sandbox_tmpfs_path=/tmp.
3112 - Converting artifacts to strings and printing them now return
3113 "File" instead of "Artifact" to be consistent with the type name.
3114 - The return type of depset.to_list() is now a list rather than a
3115 frozen list. (Modifying the list has no effect on the depset.)
3116 - Bazel now prints logs in single lines to java.log
3117 - --use_dash, --dash_url and --dash_secret are removed.
3118 - Remote repositories must define any remote repositories they
3119 themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
3120 defined
3121 in @x's WORKSPACE file).
3122 - Remote repositories must define any remote repositories they
3123 themselves use (e.g., if @x//:foo depends on @y//:bar, @y must be
3124 defined
3125 in @x's WORKSPACE file).
3126 - objc_xcodeproj has been removed, use tulsi.bazel.build instead.
3127
3128New features:
3129
3130 - If grte_top is a label, it can now follow non-configurable
3131 redirects.
3132 - Optional coverage_files attribute to cc_toolchain
3133 - "query --output=build" now includes select()s
3134 - Raw LLVM profiles are now supported.
3135
3136Important changes:
3137
3138 - Automatically generate Proguard mapping when resource shrinking
3139 and Proguard are enabled.
3140 - New rules in Bazel: proto_library, java_lite_proto_library,
3141 java_proto_library and cc_proto_library
3142 - Activate the "dead_strip" feature if objc binary stripping is
3143 enabled.
3144 - More stable naming scheme for lambda classes in desugared android
3145 code
3146 - Convert --use_action_cache to a regular option
3147 - Per-architecture dSYM binaries are now propagated by
3148 apple_binary's AppleDebugOutputsProvider.
3149 - Avoid factory methods when desugaring stateless lambdas for
3150 Android
3151 - desugar calls to Objects.requireNonNull(Object o) with
3152 o.getClass() for android
3153 - Add an --copy_bridges_from_classpath argument to android
3154 desugaring tool
3155 - Change how desugar finds desugared classes to have it working on
3156 Windows
3157 - Evaluation of commands on TargetsBelowDirectory patterns
3158 (e.g. //foo/...) matching packages that fail to load now report
3159 more
3160 detailed error messages in keep_going mode.
3161 - Allow to have several inputs and outputs
3162 - Repository context's execute() function can print stdout/stderr
3163 while running. To enable, pass quiet=False.
3164 - Bazel can now be built with a bundled version of the OpenJDK.
3165 This makes it possible to use Bazel on systems without a JDK, or
3166 where
3167 the installed JDK is too old.
3168 - The --jobs flag now defaults to "auto", which causes Bazel to
3169 use a reasonable degree of parallelism based on the local
3170 machine's
3171 capacity.
3172 - Bazel benchmark (perf.bazel.build) supports Java and Cpp targets.
3173 - no factory methods generated for lambda expressions on android
3174 - The Linux sandbox no longer changes the user to 'nobody' by
3175 default, instead the current user is used as is. The old behavior
3176 can be
3177 restored via the --sandbox_fake_username flag.
3178 - /tmp and /dev/shm are now writable by default inside the
3179 Linux sandbox.
3180 - Bazel can now use the process-wrapper + symlink tree based
3181 sandbox implementation in FreeBSD.
3182 - turn on --experimental_incremental_dexing_error_on_missed_jars by
3183 default.
3184 - All android_binarys are now signed with both Apk Signature V1 and
3185 V2. See https://source.android.com/security/apksigning/v2.html
3186 for more details.
3187 - Windows MSVC wrappers: Not filtering warning messages anymore,
3188 use --copt=-w and --host_copt=-w to suppress them.
3189 - A downloader bug was fixed that prevented RFC 7233 Range
3190 connection resumes from working with certain HTTP servers
3191 - Introduces experimental android_device rule for configuring and
3192 launching Android emulators.
3193 - For boolean flags, setting them to false using --no_<flag_name>
3194 is deprecated. Use --no<flag_name> without the underscore, or
3195 --<flag_name>=false instead.
3196 - Add --experimental_android_compress_java_resources flag to store
3197 java
3198 resources as compressed inside the APK.
3199 - Removed --experimental_use_jack_for_dexing and libname.jack
3200 output of
3201 android_library.
3202 - blaze canonicalize-flags now takes a --show_warnings flag
3203 - Changing --invocation_policy will no longer force a server
3204 restart.
3205 - Bazel now supports Android NDK14.
3206 - android_binary multidex should now work without additional flags.
3207 - Use action_config in crosstool for static library archiving,
3208 remove ar_flag.
3209 - new option for bazel canonicalize-flags, --canonicalize_policy
3210 - Use action_config in crosstool for static library archiving,
3211 remove ar_flag.
3212 - android_library exports_manifest now defaults to True.
3213 - Fix select condition intersections.
3214 - Adds a --override_repository option that takes a repository
3215 name and path. This forces Bazel to use the directory at that path
3216 for the repository. Example usage:
3217 `--override_repository=foo=/home/user/gitroot/foo`.
3218 - fix idempotency issue with desugaring lambdas in interface
3219 initializers for android
3220 - --experimental_android_use_singlejar_for_multidex is now a no-op
3221 and will eventually be removed.
3222 - Every local_repository now requires a WORKSPACE file.
3223 - Remove jack and jill attributes of the android_sdk rule.
3224 - Add Skylark stubs needed to remove sysroot from CppConfiguration.
3225 - Desugar try-with-resources so that this language feature is
3226 available
3227 to deveces with API level under 19.
3228 - The flag --worker_max_retries was removed. The
3229 WorkerSpawnStrategy no longer retries execution of failed Spawns,
3230 the reason being that this just masks compiler bugs and isn't
3231 done for any other execution strategy either.
3232 - Bazel will no longer gracefully restart workers that crashed /
3233 quit, instead this triggers a build failure.
3234 - All java resources are now compressed in android_binary APKs by
3235 default.
3236 - All java resources are now compressed in android_binary APKs by
3237 default.
3238 - android_ndk_repository now creates a cc_library
3239 (@androidndk//:cpufeatures) for the cpufeatures library that is
3240 bundled in the Android NDK. See
3241 https://developer.android.com/ndk/guides/cpu-features.html for
3242 more details.
3243 - 'output_groups' and 'instrumented_files' cannot be specified in
3244 DefaultInfo.
3245 - You can increase the CPU reservation for tests by adding a
3246 "cpu:<n>" (e.g. "cpu:4" for four cores) tag to their rule in a
3247 BUILD file. This can be used if tests would otherwise overwhelm
3248 your system if there's too much parallelism.
3249 - Deprecate use_singlejar_for_proguard_libraryjars and force
3250 behavior to always on.
3251
Bazel Release System8d635fc2017-03-16 13:18:30 +01003252## Release 0.4.5 (2017-03-16)
3253
3254```
3255Baseline: 2e689c29d5fc8a747216563235e905b1b62d63b0
3256
3257Cherry picks:
3258 + a28b54033227d930672ec7f2714de52e5e0a67eb:
3259 Fix Cpp action caching
3260 + 6d1d424b4c0da724e20e14235de8012f05c470f8:
3261 Fix paths of binaries in .deb packages.
3262 + 0785cbb672357d950e0c045770c4567df9fbdc43:
3263 Update to guava 21.0 and Error Prone version 2.0.18-20160224
3264 + 30490512eb0e48a3774cc4e4ef78680e77dd4e47:
3265 Update to latest javac and Error Prone
3266 + 867d16eab3bfabae070567ecd878c291978ff338:
3267 Allow ' ', '(', ')' and '$' in labels
3268 + 7b295d34f3a4f42c13aafc1cc8afba3cb4aa2985:
3269 Pass through -sourcepath to the JavaBuilder
3270 + 14e4755ce554cdfc685fc9cc2bfb5b699a3b48f4:
3271 PathFragment comparisons are now platform-aware
3272 + ed7795234ca7ccd2567007f2c502f853cd947e50:
3273 Flag to import external repositories in python import path
3274 + 81ae08bbc13f5f4a04f18caae339ca77ae2699c1:
3275 Suppress error for non-exhaustive switches
3276 + e8d1177eef9a9798d2b971630b8cea59471eec33:
3277 Correctly returns null if an environment variables is missing
3278 + 869d52f145c077e3499b88df752cebc60af51d66:
3279 Fix NPE in Android{S,N}dkRepositoryFunction.
3280 + d72bc57b60b26245e64f5ccafe023a5ede81cc7f:
3281 Select the good guava jars for JDK7 build
3282 + 92ecbaeaf6fa11dff161254df38d743d48be8c61:
3283 Windows: Assist JNI builds with a target for jni_md.h.
3284 + 36958806f2cd38dc51e64cd7bcc557bd143bbdb6:
3285 Add java_common.create_provider to allow creating a
3286 java_common.provider
3287 + 8c00f398d7be863c4f502bde3f5d282b1e18f504:
3288 Improve handling of unknown NDK revisions in
3289 android_ndk_repository.
3290 + b6ea0d33d3ab72922c8fb3ec1ff0e437af09584d:
3291 Add the appropriate cxx_builtin_include_directory entries for
3292 clang to the Android NDK crosstool created by
3293 android_ndk_repository.
3294```
3295
3296Incompatible changes:
3297
3298 - Depsets (former sets) are converted to strings as "depset(...)"
3299 instead of
3300 "set(...)".
3301 - Using --symlink_prefix is now applied to the output
3302 symlink (e.g. bazel-out) and the exec root symlink (e.g.
3303 bazel-workspace).
3304 - Bazel now uses the test's PATH for commands specified as
3305 --run_under; this can affect users who explicitly set PATH to
3306 a more
3307 restrictive value than the default, which is to forward the
3308 local PATH
3309 - It's not allowed anymore to compare objects of different types
3310 (i.e. a string to an integer) and objects for which comparison
3311 rules are not
3312 defined (i.e. a dict to another dict) using order operators.
3313
3314New features:
3315
3316 - environ parameter to the repository_rule function let
3317 defines a list of environment variables for which a change of
3318 value
3319 will trigger a repository refetching.
3320
3321Important changes:
3322
3323 - android_ndk_repository now supports Android NDK R13.
3324 - Android resource shrinking is now available for android_binary
3325 rules. To enable, set the attribute 'shrink_resources = 1'. See
3326 https://bazel.build/versions/master/docs/be/android.html#android_b
3327 inary.shrink_resources.
3328 - resolve_command/action's input_manifest return/parameter is now
3329 list
3330 - For increased compatibility with environments where UTS
3331 namespaces are not available, the Linux sandbox no longer hides
3332 the hostname of the local machine by default. Use
3333 --sandbox_fake_hostname to re-enable this feature.
3334 - proto_library: alias libraries produce empty files for descriptor
3335 sets.
3336 - Adds pkg_rpm rule for generating RPM packages.
3337 - Allow CROSSTOOL files to have linker flags specific to static
3338 shared libraries.
3339 - Make it mandatory for Java test suites in bazel codebase, to
3340 contain at least one test.
3341 - Support for Java 8 lambdas, method references, type annotations
3342 and repeated annotations in Android builds with
3343 --experimental_desugar_for_android.
3344 - Removed .xcodeproj automatic output from objc rules. It can still
3345 be generated by requesting it explicitly on the command line.
3346 - Flips --explicit_jre_deps flag on by default.
3347 - Activate the "dbg", "fastbuild", and "opt" features in the objc
3348 CROSSTOOL.
3349 - Remove support for configuring JDKs with filegroups; use
3350 java_runtime and java_runtime_suite instead
3351 - android_ndk_repository api_level attribute is now optional. If not
3352 specified, the highest api level in the ndk/platforms directory
3353 is used.
3354
Bazel Release System6712cac2017-02-01 19:53:37 +01003355## Release 0.4.4 (2017-02-01)
3356
3357```
3358Baseline: 4bf8cc30a
3359
3360Cherry picks:
3361 + ef1c6fd33: msvc_tools.py.tpl: Change default runtime library to
3362 static
3363```
3364
3365Incompatible changes:
3366
3367 - Only targets with public visibility can be bound to something in
3368 //external: .
3369 - The deprecated -x startup option has been removed.
3370 - docker_build: change the repository names embedded by
3371 docker_build. You can revert to the old behavior by setting
3372 legacy_repository_naming=True.
3373 - The string methods strip(), lstrip(), and rstrip() now
3374 by default remove the same whitespace characters as Python 3
3375 does, and accept
3376 None as an argument.
3377 - Deprecated globals HOST_CFG and DATA_CFG are removed. Use strings
3378 "host" and "data" instead.
3379 - repository_ctx environment is now affected by --action_env flag
3380 (value from the
3381 client environment will be replaced by value given on the command
3382 line through --action_env).
3383 - All executable labels must also have a cfg parameter specified.
3384 - Removed the cmd_helper.template function.
3385 The function was equivalent to:
3386 def template(items, template):
3387 return [template.format(path = i.path, short_path =
3388 i.short_path)
3389 for i in items]
3390 - Tuples that end with a trailing comma must now be inside parens,
3391 e.g. (1,) instead of 1,
3392 - The traversal orders for depsets have been renamed. The old names
3393 are deprecated and will be removed in the future. New names:
3394 "stable" -> "default", "compile" -> "postorder", "link" ->
3395 "topological", "naive_link" -> "preorder".
3396
3397New features:
3398
3399 - Skylark: you can now multiply a list by an integer to get the
3400 concatenation of N copies of this list, e.g. [a,b] * 3 =
3401 [a,b,a,b,a,b]
3402 - Allow Android aidl tool to add a jar to the program's classpath,
3403 such as if needed to support generated sources.
3404 - Add transitive proguard_specs when android_sdk.aidl_lib is
3405 specified
3406 - Windows: "/dev/null" is now a supported path, e.g.
3407 --bazelrc=/dev/null now works
3408
3409Important changes:
3410
3411 - Bazel Android builds use the apksigner tool from the Android SDK
3412 build-tools. Bazel Android builds now require build-tools version
3413 24.0.3 or
3414 later.
3415 - Android SDK external bindings for support libraries, e.g.
3416 //external:android/appcompat_v4, are removed because the support
3417 library JARs that they referenced no longer ship with the Android
3418 SDK.
3419 - aar_import rule is now documented.
3420 - An IE bug was fixed in repository_ctx.download_and_extract
3421 - Update "-I" to "-isystem" in documentation to reflect current
3422 behavior.
3423 - android_sdk_repository build_tools_version is now optional. The
3424 highest installed build-tools will be used if none is specified.
3425 - New flag --sandbox_add_mount_pair to specify customized
3426 source:target path pairs to bind mount inside the sandbox.
3427 - expose proto_library descriptor set to skylark via
3428 <dep>.proto.descriptor_set
3429 - The `set` constructor is deprecated in favor of `depset`
3430 - Autodetect gold linker in cc_configure.bzl
3431 - Remove build flag --experimental_j2objc_annotation_processing. It
3432 is on by default now.
3433 - Set clang's -mwatchos-version-min correctly using the value of
3434 --watchos_minimum_os, not --watchos_sdk_version.
3435 - singlejar can now create jar files larger than 4GB.
3436 - android_sdk_repository and android_ndk_repository now read
3437 $ANDROID_HOME and $ANDROID_NDK_HOME if the path attribute is not
3438 set.
3439 - Removed broken api levels 3, 4 and 5 from Android NDK 12.
3440 - Default --android_dynamic_mode to off.
3441 - android_sdk_repository no longer requires api_level. If one is
3442 not specified, the highest android platform installed will be
3443 used. Furthermore, android_sdk's are created for all android
3444 platforms installed and can be specified with the --android_sdk
3445 flag.
3446 - To iterate over or test for membership in a set, prefer using the
3447 new to_list() method. E.g., "for x in myset.to_list():", or
3448 "print(x in myset.to_list())". Iteration/membership-test on the
3449 raw set itself is deprecated.
3450 - Remove support for --javawarn; use e.g. --javacopt=-Xlint:all
3451 instead
3452
Bazel Release Systemd3b23642016-12-22 13:30:47 +01003453## Release 0.4.3 (2016-12-22)
Bazel Release System80865ff2016-11-30 13:18:54 +01003454
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01003455```
Bazel Release Systemd3b23642016-12-22 13:30:47 +01003456Baseline: c645a45
Bazel Release System80865ff2016-11-30 13:18:54 +01003457
3458Cherry picks:
Bazel Release Systemd3b23642016-12-22 13:30:47 +01003459 + af878d0: Add coverage support for java test. (series 4/4 of
3460 open-sourcing coverage command for java test)
3461 + 09b92a8: Rollback of commit
3462 67b4d5250edcefa7220e928e529b1f385e2dc464.
3463 + b11dd48: Fix bad bug with the parallel implementation of
3464 BinaryOperatorExpression. Turns out that
3465 ForkJoinTask#adapt(Callable) returns a ForkJoinTask
3466 whose Future#get on error throws a ExecutionException
3467 wrapping a RuntimeException wrapping the thrown checked
3468 exception from the callable. This is documented
3469 behavior [1] that I incorrectly didn't know about.
3470 + 9012bf1: Fix scripts/packages/convert_changelog to read the
3471 changelog correctly
3472 + 55c97bc: Release script: if master branch does not exist, fall
3473 back on origin/master
3474 + 4fb378c: Debian repository: override section and priority fields
3475 + acbcbc2: Fix release notes in emails
3476 + 4975760: Fix PathFragment to not use Java8-only static hashCode
3477 methods.
3478 + 05fd076: Disable sandboxing for XibCompile actions.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01003479```
Bazel Release System80865ff2016-11-30 13:18:54 +01003480
3481Incompatible changes:
3482
Bazel Release Systemd3b23642016-12-22 13:30:47 +01003483 - Skylark maven_jar and maven_aar settings attribute is now a label
3484 so it can be checked into your workspace.
3485 - --{no}experimental_use_rclass_generator is now a nop.
3486
3487New features:
3488
3489 - Coverage support (*experimental*) for pure Java target.
3490 Use `bazel coverage //my:target` to generate coverage information
3491 from a `java_test`.
Bazel Release System80865ff2016-11-30 13:18:54 +01003492
3493Important changes:
3494
Bazel Release Systemd3b23642016-12-22 13:30:47 +01003495 - Enable fallback URLs in Skylark http rules.
3496 - cc_proto_library generates C++ code from proto_library rules.
3497 - cc_library now supports the strip_prefix and strip_include_prefix
3498 attributes for control of include paths.
3499 - Skylark dicts internally don't rely on keys order anymore and
3500 accept any hashable values (i.e. structs with immutable values)
3501 as keys. Iteration order of dictionaries is no longer specified.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +01003502
3503## Release 0.4.2 (2016-12-02)
3504
3505```
3506Baseline: 6331a94
3507
3508Cherry picks:
3509 + 7b835d9: Do not patch WORKSPACE in the release process
3510```
3511
3512Incompatible changes:
3513
3514 - Callback functions in Skylark no longer support the cfg
3515 parameter. This is a cleanup and only affects the signatures of
3516 callbacks, since the parameter hasn't been set since September
3517 2016.
3518
3519Important changes:
3520
3521 - Alias proto_library's produce a descriptor set that contains all
3522 srcs of its dependencies.
3523 - proto_library supports strict proto deps.
3524 - Top level @androidsdk support library targets have been replaced
3525 by @androidsdk//<group id>:<artifact id>-<version> for Android
3526 SDK Support and Google Play Services libraries.
3527
Bazel Release System15402a92016-11-30 10:12:30 +01003528## Release 0.4.1 (2016-11-21)
3529
3530```
3531Baseline: 9a796de
3532
3533Cherry picks:
3534 + 88bfe85: Description redacted. -- MOS_MIGRATED_REVID=139219934
3535 + b09ea94: Rollback of commit
3536 a3f5f576cd35798140ba3e81d03d919dd4ecb847.
3537```
3538
3539New features:
3540
3541 - android_library now has a "exported_plugins" attribute just like
3542 java_library
3543 - Use --strict_system_includes to apply hdrs_check=strict also to
3544 cc_library.includes, even if sandboxing is disabled.
3545 - Bazel on Windows: java_binary can now be the executable of
3546 Skylark rule actions (ctx.action's executable argument)
3547 - Packages are defined in BUILD.bazel as well as BUILD files.
3548
3549Important changes:
3550
3551 - getattr()'s 3-arg form no longer raises an error when the
3552 retrieved field is a built-in method.
3553 - --apk_signing_method default changed to v1. Android APKs are now
3554 signed with the new ApkSignerTool by default.
3555 - New rule: proto_lang_toolchain(), to support LANG_proto_library
3556 rules on multiple platforms.
3557 - Fix for Android clang++ std::stack segfault on 32bit x86. See
3558 https://code.google.com/p/android/issues/detail?id=220159
3559 - Default android_manifest_merger is now "android" which uses the
3560 official Android manifest merger.
3561 http://tools.android.com/tech-docs/new-build-system/user-guide/man
3562 ifest-merger
3563 - Do not propagate aspect to its own attributes when using '*'.
3564 - Comparing sets (`if set1 < set2:`) is not allowed anymore in
3565 Skylark because it didn't work correctly anyway.
3566 - When --experimental_extra_action_top_level_only, Bazel reports
3567 extra-actions for actions registered by Aspects injected by a
3568 top-level rule (approximately).
3569 - Blacklists for proto_lang_toolchain() no longer have to be
3570 proto_library's.
3571 - Extra actions now contain aspect-related information.
3572 - Fix slicing bug where "abc"[:-4:-1] would give wrong answer
3573
Bazel Release Systemd0761e62016-11-02 13:36:35 -04003574## Release 0.4.0 (2016-10-26)
3575
3576```
3577Baseline: 088bbc6
3578
3579Cherry picks:
3580 + b01160c: Stamp Windows release.
3581 + 2d6736e: Add --no-tty for gpg signing
3582 + 9b1dfb8: Remove .sig file before gpg signing
3583 + 81aede1: Reimplement whole archive on Windows
3584```
3585
3586Incompatible changes:
3587
3588 - Skylark: updating list/dicts while they are being looped over is not
3589 allowed. Use an explicit copy if needed ("for x in list(mylist):").
3590 - Bazel now uses the --cpu flag to look up Jvms; it falls back
3591 to "default" if it can't find a Jvm matching the CPU value.
3592 - --command_port=-1 to use AF_UNIX for client/server communications
3593 is not supported anymore.
3594 - Sandboxed actions can access the network by default, unless their
3595 target has a "block-network" tag.
3596
3597New features:
3598
3599 - Files now have an "extension" property in Skylark.
3600
3601Important changes:
3602
3603 - Added a new flag --sandbox_tmpfs_path, which asks the sandbox to
3604 mount an empty, writable directory at a specified path when
3605 running actions. (Supported on Linux only for now.)
3606 - Update protoc-3.0.0-mingw.exe to a working (statically linked)
3607 binary
3608 - apple_static_library rule to create multi-architecture static
3609 archive files from Objc/C++/Swift dependencies on apple platforms
3610 - JS: Add support for localization with closure managed rules.
3611 - Create a flag --android_dynamic_mode to turn off dynamic mode
3612 during the Android split transition.
3613 - Darwin sandboxing is default.
3614 - Remove flag --experimental_zip_tree_artifact from j2objc Java
3615 annotation processing support.
3616 - A few functions are added to BUILD files for consistency (hash,
3617 dir,
3618 hasattr, getattr) with .bzl files, although they are not very
3619 useful.
3620 - --watchfs is now a command option; the startup option of the same
3621 name is deprecated. I.e., use bazel build --watchfs, not
3622 blaze --watchfs
3623 build.
3624
Bazel Release System33579a42016-10-07 13:05:11 -04003625## Release 0.3.2 (2016-10-07)
3626
3627```
3628Baseline: 023a7bd
3629
3630Cherry picks:
3631 + bebbbe5: Fix dependency on libtool's helper script
3632 make_hashed_objlist.py.
3633 + 8a0d45f: Add the version information to the bazel.exe file
3634 + 2bc0939: Allow new_ rules to overwrited BUILD files in
3635 downloaded repos
3636 + c5545fd: Rollback of commit
3637 96d46280bc5a4803ba2242a4ad16939f85a3b212.
3638 + eb87208: Make cc_configure on Windows more robust
3639 + c30432c: Fix cc_configure on Windows
3640 + 95b16a8: sandbox: Replace the error-prone lazy cleanup of
3641 sandbox directories by a simple synchronous cleanup.
3642 + e898023: Fix #1849: Sandboxing on OS X should be turned off by
3643 default for 0.3.2.
3644 + ffdc05d: Add action_config and feature for linking on Windows
3645```
3646
3647Incompatible changes:
3648
3649 - If you maintain a rule that uses persistent workers, you'll have
3650 to specify execution_requirements={"supports-workers": 1} in the
3651 ctx.action that intends to run a tool with workers. The
3652 WorkerSpawnStrategy will alert you with a warning message if you
3653 forget to make this change and fallback to non-worker based
3654 execution.
3655 - It is now an error to include a precompiled library (.a, .lo, .so)
3656 in a cc_library which would generate a library with the same name
3657 (e.g., libfoo.so in cc_library foo) if that library also contains
3658 other linkable
3659 sources.
3660 - The main repository's execution root is under the main
3661 repository's workspace name, not the source directory's basename.
3662 This shouldn't
3663 have any effect on most builds, but it's possible it could break
3664 someone doing
3665 weird things with paths in actions.
3666 - Blaze doesn't support Unix domain sockets for communication
3667 between its client and server anymore. Therefore, the
3668 --command_port command line argument doesn't accept -1 as a valid
3669 value anymore.
3670 - Skylark: It is an error to shadow a global variable with a local
3671 variable after the global has already been accessed in the
3672 function.
3673 - bin_dir and genfiles_dir are now properties of ctx, not
3674 configuration. That is, to access the bin or genfiles directory
3675 from a
3676 Skylark rule, use ctx.bin_dir or ctx.genfiles_dir (not
3677 ctx.configuration.{bin,genfiles}_dir). At the moment, you can
3678 access
3679 {bin,genfiles}_dir from either, but the ctx.configuration version
3680 will
3681 stop working in a future release.
3682 - filegroup-based C++ toolchains are not supported anymore.
3683 --*_crosstool_top options must always point to a
3684 cc_toolchain_suite rule (or an alias of one).
3685 - repository_ctx.{download,download_and_extract,execute} API now use
3686 named parameters for optional parameters and no
3687 longer uses argument
3688 type to distinguished between arguments
3689 (executable attribute name
3690 must be specified when preceding optional
3691 arguments are missing).
3692
3693New features:
3694
3695 - print and fail are now available in BUILD files.
3696
3697Important changes:
3698
3699 - Added @bazel_tools//tools/build_defs/repo/git.bzl as a Skylark
3700 rule for Git repositories.
3701 - Added @bazel_tools//tools/build_defs/repo/maven_rules.bzl as a
3702 Skylark rule for Maven repositories.
3703 - Add global hash() function for strings (only)
3704 - Improve Android split transition handling.
3705 - Removes exports_manifest attribute from android_binary rule.
3706 - java_proto_library: control strict-deps through a rule-level and
3707 a package-level attribute.
3708 - Persistent workers are now used by default for Java compilation
3709 in Bazel, which should speed up your Java builds by ~4x. You can
3710 switch back to the old behavior via --strategy=Javac=standalone.
3711 Check out http://www.bazel.io/blog/2015/12/10/java-workers.html
3712 for more details.
3713 - objc_* rules can now depend on any target that returns an "objc"
3714 provider.
3715 - Adds support for NDK12 to `android_ndk_repository` rule in Bazel.
3716 - Test targets can disable the JUnit4 test security manager via a
3717 property.
3718 - Disable the Android split transition if --android_cpu and
3719 fat_apk_cpu are both empty.
3720 - New sandboxing implementation for Linux in which all actions run
3721 in a separate execroot that contains input files as symlinks back
3722 to the originals in the workspace. The running action now has
3723 read-write access to its execroot and /tmp only and can no longer
3724 write in arbitrary other places in the file system.
3725 - Add worker support to single jar.
3726 - Invoke source jar action as a worker.
3727 - Sandboxed builds allow network access for builds by default.
3728 Tests will still be run without networking, unless
3729 "requires-network" is specified as a tag.
3730 - Add path.realpath() method for Skylark repositories.
3731 - On Mac devices, detect locally installed versions of xcode to:
3732 1. Use a sensible default if xcode is required but
3733 --xcode_version is unspecified.
3734 2. Use sensible default iOS SDK version for the targeted version
3735 of xcode if ios_sdk_version is unspecified.
3736 - Emacs' [C-x `], a.k.a. next-error, works again in emacsen >= 25.1
3737 - swift_library can be used to build watchOS apps.
3738 - Exposes the is_device field on Apple platform objects and adds
3739 the apple_common.platform_type(name) method to retrieve a
3740 platform_type value that can be passed to methods like the Apple
3741 fragment's multi_arch_platform.
3742 - Move Skylark git_repository rules to git.bzl
3743 - Add support for aspects to attr.label() attributes
3744 - Global varaiables HOST_CFG and DATA_CFG are deprecated in favor
3745 of strings "host"
3746 and "data.
3747 Argument `cfg = "host"` or `cfg = "data"` is mandatory if
3748 `executable = True` is provided for a label.
3749 - The deprecation attribute of all rules now causes warnings
3750 to be printed when other targets depend on a target with that
3751 attribute set.
3752 - Change default of --[no]instrument_test_targets to false, change
3753 default --instrumentation_filter (which previously tried to
3754 exclude test targets by heuristic) to only exclude targets in
3755 javatests.
3756 - Remove deprecated absolute paths in blaze IDE artifacts
3757 - When using android_binary.manifest_merger="android" the merger
3758 produces a summary log next to the merged manifest artifact.
3759 - Allow different default mallocs per configuration.
3760
Bazel Release System70c772b2016-07-29 10:28:13 +02003761## Release 0.3.1 (2016-07-29)
3762
3763```
3764Baseline: 792a9d6
3765
3766Cherry picks:
3767 + 25e5995: Rollback of commit
3768 a2770334ea3f3111026eb3e1368586921468710c.
3769 + 2479405: Fix NPE with unset maven_jar sha1
3770 + 3cf2126: Rewrite the extra action info files if the data within
3771 them changes.
3772 + 5a9c6b4: JavaBuilder: Reintroduce the -extra_checks flag.
3773```
3774
3775Incompatible changes:
3776
3777 - Removed predefined Python variable "generic_cpu".
3778 - Skylark rules: if you set "outputs" or an attribute to a
3779 function, this function must now list its required attributes as
3780 parameters (instead of an attribute map).
3781 - The host_platform and target_platform entries are not written to
3782 the master log anymore.
3783 - Bazel requires Hazelcast 3.6 or higher now for remote execution
3784 support, because we upgraded our client library and the protocol
3785 it uses is incompatible with older versions.
3786
3787New features:
3788
3789 - LIPO context (--lipo_context) can now also be a cc_test (in
3790 addition to cc_binary)
3791
3792Important changes:
3793
3794 - If --android_crosstool_top is set, native code compiled for
3795 android will always use --android_compiler and not --compiler in
3796 choosing the crosstool toolchain, and will use --android_cpu if
3797 --fat_apk_cpu is not set.
3798 - Add --instrument_test_targets option.
3799 - apple_binary supports a new platform_type attribute, which, if
3800 set to "watchos", will build dependencies for Apple's watchOS2.
3801 - objc_binary now supports late-loaded dynamic frameworks.
3802 - Native Swift rules no longer pull in module maps unconditionally.
3803 Use --experimental_objc_enable_module_maps for that.
3804 - Merged manifests are guaranteed to have the application element
3805 as the last child of the manifest element as required by Android
3806 N.
3807 - The Android manifest merger is now available as an option for
3808 android_binary rules. The merger will honor tools annotations in
3809 AndroidManifest.xml and will perform placeholder substitutions
3810 using the values specified in android_binary.manifest_values. The
3811 merger may be selected by setting the manifest_merger attribute
3812 on android_binary.
3813 - The progress message would not clear packages that need to be
3814 loaded twice.
3815 - Remove warning for high value of --jobs.
3816 - Use the correct build configuration for shared native deps during
3817 Android split transitions.
3818 - When building ObjectiveC++, pass the flag -std=gnu++11.
3819 - use xcrun simctl instead of iossim to launch the app for "blaze
3820 run".
3821 - Glob arguments 'exclude' and 'exclude_directories' must be named
3822 - Bazel no longer regards an empty file as changed if its mtime has
3823 changed.
3824
Bazel Release Systemccadf8d2016-06-10 13:28:40 +02003825## Release 0.3.0 (2016-06-10)
3826
3827```
3828Baseline: a9301fa
3829
3830Cherry picks:
3831 + ff30a73: Turn --legacy_external_runfiles back on by default
3832 + aeee3b8: Fix delete[] warning on fsevents.cc
3833```
3834
3835Incompatible changes:
3836
3837 - The --cwarn command line option is not supported anymore. Use
3838 --copt instead.
3839
3840New features:
3841
3842 - On OSX, --watchfs now uses FsEvents to be notified of changes
3843 from the filesystem (previously, this flag had no effect on OS X).
3844 - add support for the '-=', '*=', '/=', and'%=' operators to
3845 skylark. Notably, we do not support '|=' because the semantics
3846 of skylark sets are sufficiently different from python sets.
3847
3848Important changes:
3849
3850 - Use singular form when appropriate in blaze's test result summary
3851 message.
3852 - Added supported for Android NDK revision 11
3853 - --objc_generate_debug_symbols is now deprecated.
3854 - swift_library now generates an Objective-C header for its @objc
3855 interfaces.
3856 - new_objc_provider can now set the USES_SWIFT flag.
3857 - objc_framework now supports dynamic frameworks.
3858 - Symlinks in zip files are now unzipped correctly by http_archive,
3859 download_and_extract, etc.
3860 - swift_library is now able to import framework rules such as
3861 objc_framework.
3862 - Adds "jre_deps" attribute to j2objc_library.
3863 - Release apple_binary rule, for creating multi-architecture
3864 ("fat") objc/cc binaries and libraries, targeting ios platforms.
3865 - Aspects documentation added.
3866 - The --ues_isystem_for_includes command line option is not
3867 supported anymore.
3868 - global function 'provider' is removed from .bzl files. Providers
3869 can only be accessed through fields in a 'target' object.
3870
Bazel Release System9fdd6012016-05-17 11:12:31 +02003871## Release 0.2.3 (2016-05-10)
3872
3873```
3874Baseline: 5a2dd7a
3875```
3876
3877Incompatible changes:
3878
3879 - All repositories are now directly under the x.runfiles directory
3880 in the runfiles tree (previously, external repositories were at
3881 x.runfiles/main-repo/external/other-repo. This simplifies
3882 handling remote repository runfiles considerably, but will break
3883 existing references to external repository runfiles.
3884 Furthermore, if a Bazel project does not provide a workspace name
3885 in the WORKSPACE file, Bazel will now default to using __main__
3886 as the workspace name (instead of "", as previously). The
3887 repository's runfiles will appear under x.runfiles/__main__/.
3888 - Bazel does not embed protocol buffer-related rules anymore.
3889 - It is now an error for a cc rule's includes attribute to point to
3890 the workspace root.
3891 - Bazel warns if a cc rule's includes attribute points out of
3892 third_party.
3893 - Removed cc_* attributes: abi / abi_deps. Use select() instead.
3894
3895New features:
3896
3897 - select({"//some:condition": None }) is now possible (this "unsets"
3898 the attribute).
3899
3900Important changes:
3901
3902 - java_import now allows its 'jars' attribute to be empty.
3903 - adds crunch_png attribute to android_binary
3904 - Replace --java_langtools, --javabuilder_top, --singlejar_top,
3905 --genclass_top, and --ijar_top with
3906 java_toolchain.{javac,javabuilder,singlejar,genclass,ijar}
3907 - External repository correctness fix: adding a new file/directory
3908 as a child of a new_local_repository is now noticed.
3909 - iOS apps are signed with get-task-allow=1 unless building with -c
3910 opt.
3911 - Generate debug symbols (-g) is enabled for all dbg builds of
3912 objc_ rules.
3913 - Bazel's workspace name is now io_bazel. If you are using Bazel's
3914 source as an external repository, then you may want to update the
3915 name you're referring to it as or you'll begin seeing warnings
3916 about name mismatches in your code.
3917 - Fixes integer overflow in J2ObjC sources to be Java-compatible.
3918 - A FlagPolicy specified via the --invocation_policy flag will now
3919 match the current command if any of its commands matches any of
3920 the commands the current command inherits from, as opposed to
3921 just the current command.
3922 - The key for the map to cc_toolchain_suite.toolchains is now a
3923 string of the form "cpu|compiler" (previously, it was just "cpu").
3924 - Fix interaction between LIPO builds and C++ header modules.
3925 - Ctrl-C will now interrupt a download, instead of waiting for it to
3926 finish.
3927 - Proxy settings can now be specified in http_proxy and https_proxy
3928 environment variables (not just HTTP_PROXY and HTTPS_PROXY).
3929 - Skylark targets can now read include directories from
3930 ObjcProvider.
3931 - Expose parameterized aspects to Skylark.
3932 - Support alwayslink cc_library dependencies in objc binaries.
3933 - Import cc_library dependencies in generated Xcode project.
3934
Bazel Release System1aedd1f12016-04-25 09:47:50 +02003935## Release 0.2.2b (2016-04-22)
Bazel Release System951cea22016-04-21 14:10:12 +02003936
3937```
3938Baseline: 759bbfe
Bazel Release System1aedd1f12016-04-25 09:47:50 +02003939
3940Cherry picks:
Bazel Release System951cea22016-04-21 14:10:12 +02003941 + 1250fda: Rollback of commit
3942 351475627b9e94e5afdf472cbf465f49c433a25e.
3943 + ba8700e: Correctly set up build variables for the correct pic
3944 mode for fake_binary rules.
3945 + 386f242: Automated [] rollback of commit
3946 525fa71b0d6f096e9bfb180f688a4418c4974eb4.
Bazel Release System1aedd1f12016-04-25 09:47:50 +02003947 + 97e5ab0: Fix cc_configure include path for Frameworks on OS X.
3948 + a20352e: cc_configure: always add -B/usr/bin to the list of gcc
3949 option
3950 + 0b26f44: cc_configure: Add piii to the list of supported
3951 cpu_value
3952 + 3e4e416: cc_configure: uses which on the CC environment variable
3953 + aa3dbd3: cc_configure.bzl: strip end of line when looking for
3954 the cpu
3955 + 810d60a: cc_configure: Add -B to compiler flag too
Bazel Release System951cea22016-04-21 14:10:12 +02003956```
3957
Bazel Release System1aedd1f12016-04-25 09:47:50 +02003958Patch release, only includes fixes to C++ auto-configuration.
Bazel Release System951cea22016-04-21 14:10:12 +02003959
Bazel Release System950c1ab2016-03-31 17:18:55 +02003960## Release 0.2.1 (2016-03-21)
3961
3962```
3963Baseline: 19b5675
3964```
3965
3966Incompatible changes:
3967
3968 - Skylark rules that are available from their own repository will
3969 now issue a warning when accessed through @bazel_tools.
3970 - Set --legacy_bazel_java_test to off by default. java_test will
3971 now have a slightly different behaviour, correctly emitting XML
3972 file but, as a downside, it needs correct declaration of the
3973 test suite (see https://github.com/bazelbuild/bazel/issues/1017).
3974 - Labels in .bzl files in remote repositories will be resolved
3975 relative to their repository (instead of the repository the
3976 Skylark rule is used in).
3977 - Renamed proto_java_library to java_proto_library. The former
3978 is now deprecated and will print out a warning when used.
3979 - android_sdk now compiles android_jack on the fly from
3980 android_jar, which means android_jar must be a jar and
3981 android_jack is now deprecated. The Jack tools (jack, jill,
3982 resource_extractor) must be specified.
3983 - Any project that depended on the objc_options rule will be
3984 broken. Can be fixed by adding attrs (infoplists,copts) directly
3985 to rules depending on the options.
3986 - .aidl files correctly require import statements for types
3987 defined in the same package and the same android_library.
3988
3989New features:
3990
3991 - Experimental Windows support is available.
3992 - Experimental support for writing remote repository rules in
3993 Skylark is available.
3994 - iOS ipa_post_processor attribute allows for user-defined IPA
3995 edits.
3996 - Adds a to_json method to Skylark structs, providing conversion to
3997 JSON format.
3998 - Native python rule can depend on skylark rule as long as skylark
3999 rule provides 'py' provider.
4000 - When using both --verbose_failures and --sandbox_debug, Bazel
4001 prints instructions how to spawn a debugging shell inside the
4002 sandbox.
4003 - add flag --sandbox_add_path, which takes a list of additional
4004 paths as argument and mount these paths to sandbox.
4005
4006Important changes:
4007
4008 - @androidsdk//:org_apache_http_legacy added for the legacy Apache
4009 classes for android sdk version 23 and above.
4010 - Genrules correctly work when used with bazel run.
4011 - When namespace-sandbox is run with the -D (debug) flag and
4012 inside a terminal, it spawns a shell inside the sandbox to aid in
4013 debugging when the sandboxed command fails.
4014 - Added --artifact to workspace generator for generating workspace
4015 and build file rules from artifact coodrinates.
4016 - Specifying --experimental_android_resource_shrinking on the
4017 command line will enable a resource shrinking pass on
4018 android_binary targets that already use Proguard.
4019 - J2ObjC updated to 1.0.1 release.
4020 - Added "root_symlinks" and "symlinks" parameters to Skylark
4021 runfiles() method.
4022 - You can no longer use objc_binary targets for the xctest_app
4023 attribute of an ios_test rule.
4024 - Enable overriding jsonnet binaries and stdlib for Jsonnet rules.
4025 - mount target of /etc/resolv.conf if it is a symlink.
4026 - Tests that failed to build because execution was halted no longer
4027 print their status.
4028 - Bazel warns if a cc rule's includes attribute contains up-level
4029 references that escape its package.
4030 - Add repository_ctx.download and repository_ctx.download_and_extract
4031 function.
4032
Bazel Release Systemf98290d2016-02-23 13:51:16 +01004033## Release 0.2.0 (2016-02-18)
4034
4035```
4036Baseline: 9e100ac
4037```
4038
4039Incompatible changes:
4040
4041 - ObjC compile actions for J2ObjC-translated code now only has
4042 access to headers from the java deps of the associated original
4043 java rule.
4044 These compile actions no longer takes the compiler options
4045 specified in "copts" attribute on objc_binary/ios_test rules.
4046 J2ObjC dead code removal (enabled through flag
4047 "--j2objc_dead_code_removal") now happens *after* ObjC
4048 compilation.
4049 - maven_jar no longer supports separate artifact_id, group_id, and
4050 verison fields. This information should be provided in the
4051 artifact field,
4052 instead.
4053
4054New features:
4055
4056 - Better support for toolchains that don't have a dynamic linker.
4057 - build_file_content attribute added to new_git_repository,
4058 new_http_archive, and new_local_repository.
4059 - Add support for .tar.bz2 archives to http_archive rules.
4060
4061Important changes:
4062
4063 - The --skyframe flag is no longer available for the build command.
4064 - The --artifacts flag was removed from the dump command.
4065 - The sha256 attribute is now optional (although recommended!) for
4066 remote repository rules.
4067 - Add instrumented file provider support to Skylark rules.
4068 - Add imports attribute to native Python rules.
4069 - Allow overriding -gsplit-dwarf from copts.
4070 - Improved sandbox performance on XFS filesystems.
4071
Bazel Release System00cf25d2016-02-09 18:36:51 +01004072## Release 0.1.5 (2016-02-05)
4073
4074```
4075Baseline: 3a95f35
4076 + 8378cd8: Rollback of commit
4077 a9b84575a32476a5faf991da22b44661d75c19b6.
4078```
4079
4080Incompatible changes:
4081
4082 - Set stamping to false by default (i.e., --nostamp)
4083 - Removed --objc_dump_syms_binary.
4084 - Removes --objc_gcov_binary flag.
4085 - Remove JAVAC "Make" variable
4086 - The startup flag --blaze_cpu is removed,
4087
4088New features:
4089
4090 - A new java test runner that support XML output and test filtering
4091 is supported. It can be used by specifying --nolegacy_bazel_java_test
4092 or by specifying the test_class attribute on a java_test.
4093 - Skylark aspects can now specify configuration fragment
4094 dependencies with fragments and host_fragments like rules can.
4095
4096Important changes:
4097
4098 - Support for downloading remote resources through proxies by
4099 setting HTTP_PROXY (or HTTPS_PROXY).
4100 - Timestamps within Android apks are removed to make apks
4101 deterministic.
4102 - Support aggregation over existing rules in Skylark extensions
4103 through native.rules and native.rule.
4104 - A tools/bazel script in the workspace will be executed
4105 as an opportunity to use a fixed version of Bazel (not
4106 implemented for the homebrew recipe yet).
4107 - --noimplicit_deps and --nohost_deps work correctly for Aspect
4108 attributes.
4109 - JDK-related targets are now available via @local_jdk (instead of
4110 @local-jdk).
4111 - j2objc tools can now be accessed via @bazel_j2objc, not
4112 @bazel-j2objc.
4113 - Repository rules must use names that are valid workspace names.
4114 - [rust] Update to Rust 1.6
4115 - Add support for .tar.xz archives to http_archive rules.
4116 - Make C++ modules compatible with tools using
4117 --compilation_prerequisites_only
4118 - [d] Update to DMD 2.070.0
4119
Bazel Release System446d9922016-01-21 10:59:31 +01004120## Release 0.1.4 (2016-01-15)
4121
4122```
4123Baseline: e933d5e
4124 + 3d796fe: Rollback of commit
4125 ac6ed79e1a3fa6b0ca91657b28e2a35f7e49758c.
4126 + 7a02e5d: Fix installer under OS X
4127 + 848740c: Fix bazel version for debian package
4128 + 7751d43: Add a method for getting the root of a rule workspace
4129 to the Label method
4130```
4131
4132Important changes:
4133
4134 - add loadfiles() query operator, to find skylark files loaded by
4135 targets.
4136 - Added ability to declare and use aspects in Skylark.
4137 - Skylark load statements may now reference .bzl files via build
4138 labels, in addition to paths. In particular, such labels can be
4139 used to reference Skylark files in external repositories; e.g.,
4140 load("@my_external_repo//some_pkg:some_file.bzl", ...).
4141 Path-based loads are now deprecated and may be disabled in the
4142 future. Caveats: Skylark files currently do not respect package
4143 visibility; i.e., all Skylark files are effectively public. Also,
4144 loads may not reference the special //external package.
4145 - Relative paths can now be used for 'path' with
4146 new_local_repository and local_repository.
4147
Bazel Release System1518253e2016-01-11 10:10:19 +01004148## Release 0.1.3 (2016-01-07)
4149
4150```
4151Baseline: 23ad8f6
4152 + de2183d: Only depend on the WORKSPACE file for external files
4153 that are under the external/ directory, i.e. were
4154 created by Bazel.
4155 + f8f855c: Rollback of commit
4156 12bad3af0eade9c4b79d76f9e1c950ad2e3214c2.
4157 + f627562: Stop parsing the WORKSPACE file when a parse error is
4158 detected
4159 + 763f139: Add -fno-canonical-system-headers to CROSSTOOL files so
4160 that gcc doesn't resolve symlinks in .d files, which
4161 would confuse Blaze.
4162 + b95995b: Use openjdk7 as dependency for debian package of jdk7
4163 flavor
4164```
4165
4166New features:
4167
4168 - Skylark macros are now enabled in WORKSPACE file.
4169 - .bazelrc allows workspace-relative imports as "import
4170 %workspace%/path/to/rcfile"
4171 - Evaluate the query expression in a file by passing
4172 --query_file=<file> to query
4173
4174Important changes:
4175
4176 - Remove obsolete --objc_per_proto_includes flag.
4177 - iOS apps and extensions now have launch_storyboard
4178 - Passing multiple JVM options via a single --host_jvm_args flag is
4179 now deprecated. Pass each JVM option behind its own
4180 --host_jvm_args flag.
4181 - Resources defined locally on an android_library rule will respect
4182 the neverlink attribute.
4183 - Update Rust to 1.4
4184 - Fix resource handling for exported android_library rules
4185 - Files in external repositories are now treated as mutable, which
4186 will make the correctness guarantees of using external
4187 repositories stronger (existent), but may cause performance
4188 penalties.
4189
Bazel Release System0d2e4092015-12-04 23:31:41 +01004190## Release 0.1.2 (2015-11-20)
4191
4192```
4193Baseline: ee0ade3
4194 + 1e66ccd: RELNOTES: Symlink dirents of directories containing a
4195 file named
4196 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA
4197 _A_RECURSIVE_TARGET_PATTERN" will *not* be traversed
4198 for transitive target patterns. The motivation here is
4199 to allow directories that intentionally contain wonky
4200 symlinks (e.g. foo/bar -> foo) to opt out of being
4201 consumed by Blaze. For example, given
4202 + f5773fc: Set the ijar MAX_BUFFER_SIZE to 256 MB
4203```
4204
4205New features:
4206
4207 - java_library now supports the proguard_specs attribute for
4208 passing Proguard configuration up to Android (not Java) binaries.
4209 - http_file can specify "executable" to make the downloaded file
4210 runnable.
4211 - Debian and tar packaging is now supported
4212 (see tools/build_defs/pkg/README.md).
4213 - cpxx_builtin_include_directory specifications allow more
4214 flexibility.
4215 - accept %crosstool_top% in cxx_builtin_include_directory
4216 - android_binary now supports proguard_apply_mapping to re-use a
4217 previously generated proguard mapping.
4218
4219Important changes:
4220
4221 - remove webstatusserver (--use_webstatusserver).
4222 - Add support for objc textual headers, which will not be compiled
4223 when modules are enabled.
4224 - actoolzip, momczip and swiftstdlibtoolzip have all been made into
4225 bash scripts and have been renamed to actoolwrapper, momcwrapper
4226 and swiftstdlibtoolwrapper respectively. The old versions will be
4227 deleted in a later change.
4228 - [rust] Add rust_bench_test and rust_doc_test rules and improve
4229 usability of rust_test tule.
4230 - Java rules now support a resource_strip_prefix attribute that
4231 allows the removal of path prefixes from Java resources.
4232 - [docker_build] incremental loading is default now.
4233 Specify explicitly //package:target.tar (with the .tar extension)
4234 to obtain the full image.
4235 - --ios_signing_cert_name allows specifying a cert for iOS app
4236 signing
4237 - Go rules for Bazel.
4238 - [jsonnet] Update to Jsonnet 0.8.1.
4239 - [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to
4240 allow passing external variables to Jsonnet via --var and
4241 --code_var.
4242 - Adds --override_workspace_root blaze flag to hand-set
4243 workspace_root and mainGroup in xcodeproj.
4244 - Allow dots in package names.
4245 - When used as a forwarding rule (i.e., has no sources),
4246 android_library
4247 will also forward any exported_plugins in its dependencies.
4248 - Add support for Windows-created zip files with non-posix
4249 permissions.
4250 - [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.
4251 - C++ compile actions run in a sandbox now on systems that support
4252 sandboxed execution.
4253 - The names of the clang compilers in the Android NDK crosstool no
4254 longer reference gcc.
4255 - 420 dpi is now a valid density for andoid_binary.densities.
4256 - Bazel does strict validation of include files now to ensure
4257 correct incremental builds. If you see compilation errors when
4258 building C++ code, please make sure that you explicitly declare
4259 all header files in the srcs or hdrs attribute of your cc_*
4260 targets and that your cc_* targets have correct "deps" on
4261 cc_library's that they use.
4262 - [jsonnet] Fix jsonnet_to_json rule to read code_vars from
4263 code_vars instead of vars.
4264 - Tests, genrules, and Skylark actions without the
4265 "requires-network" tag will no longer be able to access the
4266 network.
4267 - C++ libraries no longer need includes = ["."] (or similar copts)
4268 to include paths relative to a remote repository's root.
4269 - Support exports attribute for android_library
4270 - Symlink dirents of directories containing a file named
4271 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA_A_RECURSI
4272 VE_TARGET_PATTERN" will *not* be traversed for transitive target
4273 patterns. The motivation here is to allow directories that
4274 intentionally contain wonky symlinks (e.g. foo/bar -> foo) to opt
4275 out of being consumed by Blaze.
4276
Bazel Release Systemfa35b182015-10-14 12:11:51 -04004277## Release 0.1.1 (2015-10-05)
4278
4279```
4280Baseline: 22616ae
4281 + 1ef338f: Rollback of "Propagates cc_library linkopts attribute
4282 to dependent objc_libraries.": breaks certain
4283 objc_binary build targets.
4284 + 5fb1073: Reintroduce an inconsistency check (albeit, in a weaker
4285 form) removed by a previous change that was trying to
4286 optimize away a filesystem call.
4287 + 6d00468b2eb976866cfb814d562e0d53a580a46f: Add IdlClass to the embedded default android tools
4288 repository and rearrange BuildJar's JarHelper so that
4289 it too can be embedded.
4290 + a5199039934a2e399a7201adc0d74e2f2d2b0ff3: Fixes Android integration tests by wiring up idlclass
4291 rules in integration environment.
4292```
4293
4294Incompatible changes:
4295
4296 - Bazel requires JDK 8 to run.
4297 - Attribute "copts" is removed from j2objc_library.
4298
4299New features:
4300
4301 - a cc_binary rule may list '.s' and '.asm' files in the srcs
4302 - Support for build with libsass.
4303 - labels in "linkopts" may match any label in either "deps" or
4304 "srcs" to be considered valid.
4305 - Maven servers that require username & password authentication are
4306 now supported (see maven_server documentation).
4307
4308Important changes:
4309
4310 - Support empty plist files
4311 - The <compatible-screens> section of the AndroidManifest.xml will
4312 not be overwritten if it already contains a <screen> tag for each
4313 of the densities specified on the android_binary rule.
4314 - Add Jsonnet rules to Bazel
4315 - Remove deprecated xcode_options flag.
4316 - Workspace names are now restricted to being in their base
4317 directory
4318 (that is, the names cannot contain up-level references or /./).
4319 - j2objc_library on Bazel now transpiles transitive proto_library
4320 dependencies. (Note that java_* rules in Bazel do not yet support
4321 protos; currently they ignore proto dependencies.)
4322 - new_http_archive can specify a root directory.
4323 - Adds support for dylibs on devices for Xcode 7.
4324 - [d] d_docs rules now depend on a d_binary, a d_library or
4325 d_source_library.
4326 - [docker] docker_build now set the permission to 0555 to files
4327 added to the layer, use `mode = "0644"` to use the legacy behavior.
4328 - android_binary now has a main_dex_proguard_specs attribute to
4329 specify which classes should be in the main dex.
4330 - [rust] Add rust_docs rule for generating rustdoc.
Bazel Release System79e40ac2015-09-08 23:38:00 +02004331## Release 0.1.0 (2015-09-08)
4332
4333```
4334Baseline: a0881e8
4335 + 87374e6: Make android_binary use a constant, hard-coded,
4336 checked-in debug key.
4337 + 2984f1c: Adds some safety checks in the Bazel installer
4338 + 4e21d90: Remove BUILD.glob and incorporate the necessary
4339 filegroups into the android_{ndk,sdk}_repository rules
4340 themselves.
4341 + 1ee813e: Fix Groovy rules to work with sandboxing
4342 + 8741978: Add initial D rules to Bazel.
4343 + 2c2e70d: Fix the installer and fixing the package shiped into
4344 binary version of Bazel.
4345```
4346
4347Initial release.
Bazel Release System6712cac2017-02-01 19:53:37 +01004348
Bazel Release System8d635fc2017-03-16 13:18:30 +01004349
Bazel Release Systema3e26832017-05-26 14:11:07 +02004350
Bazel Release System63222de2017-06-06 11:32:04 +02004351
Bazel Release System7b851222017-06-27 15:08:47 +02004352
Bazel Release System195a7a82017-07-27 20:27:32 +02004353
Bazel Release System5371d132017-08-25 11:24:06 +02004354
Bazel Release System471c0e12017-09-28 16:36:12 +02004355
Bazel Release Systemed0ebc02017-10-05 23:52:25 +02004356
Bazel Release System76b6d0a2017-10-18 14:34:11 +02004357
Bazel Release System0838aee2017-11-27 14:16:34 +01004358
Bazel Release System3d53cb02017-12-05 15:28:40 +01004359
Bazel Release System5bd27482018-02-01 09:43:33 +01004360
Bazel Release Systeme1148362018-02-15 10:02:05 +01004361
Bazel Release System09077a32018-02-23 11:09:18 -05004362
Bazel Release Systemc86d6a02018-03-06 19:32:18 +01004363
Bazel Release System546976c2018-04-11 17:34:19 +02004364
Bazel Release System1d9c6062018-04-30 10:45:38 +02004365
Bazel Release System24c68ff2018-05-23 10:59:57 +02004366
Bazel Release System3a592f62018-06-01 15:04:31 +02004367
Bazel Release System513bbf52018-06-08 14:15:20 +02004368
Bazel Release System5013a332018-06-26 14:07:47 +02004369
Bazel Release System1281a022018-07-16 16:13:53 +02004370
Bazel Release System1bd58832018-08-13 15:41:26 +02004371
Bazel Release Systemfdb09a22018-09-14 12:15:54 +02004372
Bazel Release System50921e62018-09-21 12:27:04 +02004373
Bazel Release System36177972018-10-15 10:29:10 +02004374
Bazel Release System92849b82018-10-31 15:41:11 +01004375
Bazel Release System684f1092018-11-12 10:26:58 -05004376
Bazel Release Systemcb3e2982018-11-19 11:19:38 -05004377
Bazel Release System85378562018-11-30 15:34:16 +01004378