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