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