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