blob: 9fdb7d4a3e61fdcc82461fcc8fe585223bd34190 [file] [log] [blame] [view]
Bazel Release System6712cac2017-02-01 19:53:37 +01001## Release 0.4.4 (2017-02-01)
2
3```
4Baseline: 4bf8cc30a
5
6Cherry picks:
7 + ef1c6fd33: msvc_tools.py.tpl: Change default runtime library to
8 static
9```
10
11Incompatible changes:
12
13 - Only targets with public visibility can be bound to something in
14 //external: .
15 - The deprecated -x startup option has been removed.
16 - docker_build: change the repository names embedded by
17 docker_build. You can revert to the old behavior by setting
18 legacy_repository_naming=True.
19 - The string methods strip(), lstrip(), and rstrip() now
20 by default remove the same whitespace characters as Python 3
21 does, and accept
22 None as an argument.
23 - Deprecated globals HOST_CFG and DATA_CFG are removed. Use strings
24 "host" and "data" instead.
25 - repository_ctx environment is now affected by --action_env flag
26 (value from the
27 client environment will be replaced by value given on the command
28 line through --action_env).
29 - All executable labels must also have a cfg parameter specified.
30 - Removed the cmd_helper.template function.
31 The function was equivalent to:
32 def template(items, template):
33 return [template.format(path = i.path, short_path =
34 i.short_path)
35 for i in items]
36 - Tuples that end with a trailing comma must now be inside parens,
37 e.g. (1,) instead of 1,
38 - The traversal orders for depsets have been renamed. The old names
39 are deprecated and will be removed in the future. New names:
40 "stable" -> "default", "compile" -> "postorder", "link" ->
41 "topological", "naive_link" -> "preorder".
42
43New features:
44
45 - Skylark: you can now multiply a list by an integer to get the
46 concatenation of N copies of this list, e.g. [a,b] * 3 =
47 [a,b,a,b,a,b]
48 - Allow Android aidl tool to add a jar to the program's classpath,
49 such as if needed to support generated sources.
50 - Add transitive proguard_specs when android_sdk.aidl_lib is
51 specified
52 - Windows: "/dev/null" is now a supported path, e.g.
53 --bazelrc=/dev/null now works
54
55Important changes:
56
57 - Bazel Android builds use the apksigner tool from the Android SDK
58 build-tools. Bazel Android builds now require build-tools version
59 24.0.3 or
60 later.
61 - Android SDK external bindings for support libraries, e.g.
62 //external:android/appcompat_v4, are removed because the support
63 library JARs that they referenced no longer ship with the Android
64 SDK.
65 - aar_import rule is now documented.
66 - An IE bug was fixed in repository_ctx.download_and_extract
67 - Update "-I" to "-isystem" in documentation to reflect current
68 behavior.
69 - android_sdk_repository build_tools_version is now optional. The
70 highest installed build-tools will be used if none is specified.
71 - New flag --sandbox_add_mount_pair to specify customized
72 source:target path pairs to bind mount inside the sandbox.
73 - expose proto_library descriptor set to skylark via
74 <dep>.proto.descriptor_set
75 - The `set` constructor is deprecated in favor of `depset`
76 - Autodetect gold linker in cc_configure.bzl
77 - Remove build flag --experimental_j2objc_annotation_processing. It
78 is on by default now.
79 - Set clang's -mwatchos-version-min correctly using the value of
80 --watchos_minimum_os, not --watchos_sdk_version.
81 - singlejar can now create jar files larger than 4GB.
82 - android_sdk_repository and android_ndk_repository now read
83 $ANDROID_HOME and $ANDROID_NDK_HOME if the path attribute is not
84 set.
85 - Removed broken api levels 3, 4 and 5 from Android NDK 12.
86 - Default --android_dynamic_mode to off.
87 - android_sdk_repository no longer requires api_level. If one is
88 not specified, the highest android platform installed will be
89 used. Furthermore, android_sdk's are created for all android
90 platforms installed and can be specified with the --android_sdk
91 flag.
92 - To iterate over or test for membership in a set, prefer using the
93 new to_list() method. E.g., "for x in myset.to_list():", or
94 "print(x in myset.to_list())". Iteration/membership-test on the
95 raw set itself is deprecated.
96 - Remove support for --javawarn; use e.g. --javacopt=-Xlint:all
97 instead
98
Bazel Release Systemd3b23642016-12-22 13:30:47 +010099## Release 0.4.3 (2016-12-22)
Bazel Release System80865ff2016-11-30 13:18:54 +0100100
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +0100101```
Bazel Release Systemd3b23642016-12-22 13:30:47 +0100102Baseline: c645a45
Bazel Release System80865ff2016-11-30 13:18:54 +0100103
104Cherry picks:
Bazel Release Systemd3b23642016-12-22 13:30:47 +0100105 + af878d0: Add coverage support for java test. (series 4/4 of
106 open-sourcing coverage command for java test)
107 + 09b92a8: Rollback of commit
108 67b4d5250edcefa7220e928e529b1f385e2dc464.
109 + b11dd48: Fix bad bug with the parallel implementation of
110 BinaryOperatorExpression. Turns out that
111 ForkJoinTask#adapt(Callable) returns a ForkJoinTask
112 whose Future#get on error throws a ExecutionException
113 wrapping a RuntimeException wrapping the thrown checked
114 exception from the callable. This is documented
115 behavior [1] that I incorrectly didn't know about.
116 + 9012bf1: Fix scripts/packages/convert_changelog to read the
117 changelog correctly
118 + 55c97bc: Release script: if master branch does not exist, fall
119 back on origin/master
120 + 4fb378c: Debian repository: override section and priority fields
121 + acbcbc2: Fix release notes in emails
122 + 4975760: Fix PathFragment to not use Java8-only static hashCode
123 methods.
124 + 05fd076: Disable sandboxing for XibCompile actions.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +0100125```
Bazel Release System80865ff2016-11-30 13:18:54 +0100126
127Incompatible changes:
128
Bazel Release Systemd3b23642016-12-22 13:30:47 +0100129 - Skylark maven_jar and maven_aar settings attribute is now a label
130 so it can be checked into your workspace.
131 - --{no}experimental_use_rclass_generator is now a nop.
132
133New features:
134
135 - Coverage support (*experimental*) for pure Java target.
136 Use `bazel coverage //my:target` to generate coverage information
137 from a `java_test`.
Bazel Release System80865ff2016-11-30 13:18:54 +0100138
139Important changes:
140
Bazel Release Systemd3b23642016-12-22 13:30:47 +0100141 - Enable fallback URLs in Skylark http rules.
142 - cc_proto_library generates C++ code from proto_library rules.
143 - cc_library now supports the strip_prefix and strip_include_prefix
144 attributes for control of include paths.
145 - Skylark dicts internally don't rely on keys order anymore and
146 accept any hashable values (i.e. structs with immutable values)
147 as keys. Iteration order of dictionaries is no longer specified.
Damien Martin-Guillerez961e54f2016-12-22 13:33:36 +0100148
149## Release 0.4.2 (2016-12-02)
150
151```
152Baseline: 6331a94
153
154Cherry picks:
155 + 7b835d9: Do not patch WORKSPACE in the release process
156```
157
158Incompatible changes:
159
160 - Callback functions in Skylark no longer support the cfg
161 parameter. This is a cleanup and only affects the signatures of
162 callbacks, since the parameter hasn't been set since September
163 2016.
164
165Important changes:
166
167 - Alias proto_library's produce a descriptor set that contains all
168 srcs of its dependencies.
169 - proto_library supports strict proto deps.
170 - Top level @androidsdk support library targets have been replaced
171 by @androidsdk//<group id>:<artifact id>-<version> for Android
172 SDK Support and Google Play Services libraries.
173
Bazel Release System15402a92016-11-30 10:12:30 +0100174## Release 0.4.1 (2016-11-21)
175
176```
177Baseline: 9a796de
178
179Cherry picks:
180 + 88bfe85: Description redacted. -- MOS_MIGRATED_REVID=139219934
181 + b09ea94: Rollback of commit
182 a3f5f576cd35798140ba3e81d03d919dd4ecb847.
183```
184
185New features:
186
187 - android_library now has a "exported_plugins" attribute just like
188 java_library
189 - Use --strict_system_includes to apply hdrs_check=strict also to
190 cc_library.includes, even if sandboxing is disabled.
191 - Bazel on Windows: java_binary can now be the executable of
192 Skylark rule actions (ctx.action's executable argument)
193 - Packages are defined in BUILD.bazel as well as BUILD files.
194
195Important changes:
196
197 - getattr()'s 3-arg form no longer raises an error when the
198 retrieved field is a built-in method.
199 - --apk_signing_method default changed to v1. Android APKs are now
200 signed with the new ApkSignerTool by default.
201 - New rule: proto_lang_toolchain(), to support LANG_proto_library
202 rules on multiple platforms.
203 - Fix for Android clang++ std::stack segfault on 32bit x86. See
204 https://code.google.com/p/android/issues/detail?id=220159
205 - Default android_manifest_merger is now "android" which uses the
206 official Android manifest merger.
207 http://tools.android.com/tech-docs/new-build-system/user-guide/man
208 ifest-merger
209 - Do not propagate aspect to its own attributes when using '*'.
210 - Comparing sets (`if set1 < set2:`) is not allowed anymore in
211 Skylark because it didn't work correctly anyway.
212 - When --experimental_extra_action_top_level_only, Bazel reports
213 extra-actions for actions registered by Aspects injected by a
214 top-level rule (approximately).
215 - Blacklists for proto_lang_toolchain() no longer have to be
216 proto_library's.
217 - Extra actions now contain aspect-related information.
218 - Fix slicing bug where "abc"[:-4:-1] would give wrong answer
219
Bazel Release Systemd0761e62016-11-02 13:36:35 -0400220## Release 0.4.0 (2016-10-26)
221
222```
223Baseline: 088bbc6
224
225Cherry picks:
226 + b01160c: Stamp Windows release.
227 + 2d6736e: Add --no-tty for gpg signing
228 + 9b1dfb8: Remove .sig file before gpg signing
229 + 81aede1: Reimplement whole archive on Windows
230```
231
232Incompatible changes:
233
234 - Skylark: updating list/dicts while they are being looped over is not
235 allowed. Use an explicit copy if needed ("for x in list(mylist):").
236 - Bazel now uses the --cpu flag to look up Jvms; it falls back
237 to "default" if it can't find a Jvm matching the CPU value.
238 - --command_port=-1 to use AF_UNIX for client/server communications
239 is not supported anymore.
240 - Sandboxed actions can access the network by default, unless their
241 target has a "block-network" tag.
242
243New features:
244
245 - Files now have an "extension" property in Skylark.
246
247Important changes:
248
249 - Added a new flag --sandbox_tmpfs_path, which asks the sandbox to
250 mount an empty, writable directory at a specified path when
251 running actions. (Supported on Linux only for now.)
252 - Update protoc-3.0.0-mingw.exe to a working (statically linked)
253 binary
254 - apple_static_library rule to create multi-architecture static
255 archive files from Objc/C++/Swift dependencies on apple platforms
256 - JS: Add support for localization with closure managed rules.
257 - Create a flag --android_dynamic_mode to turn off dynamic mode
258 during the Android split transition.
259 - Darwin sandboxing is default.
260 - Remove flag --experimental_zip_tree_artifact from j2objc Java
261 annotation processing support.
262 - A few functions are added to BUILD files for consistency (hash,
263 dir,
264 hasattr, getattr) with .bzl files, although they are not very
265 useful.
266 - --watchfs is now a command option; the startup option of the same
267 name is deprecated. I.e., use bazel build --watchfs, not
268 blaze --watchfs
269 build.
270
Bazel Release System33579a42016-10-07 13:05:11 -0400271## Release 0.3.2 (2016-10-07)
272
273```
274Baseline: 023a7bd
275
276Cherry picks:
277 + bebbbe5: Fix dependency on libtool's helper script
278 make_hashed_objlist.py.
279 + 8a0d45f: Add the version information to the bazel.exe file
280 + 2bc0939: Allow new_ rules to overwrited BUILD files in
281 downloaded repos
282 + c5545fd: Rollback of commit
283 96d46280bc5a4803ba2242a4ad16939f85a3b212.
284 + eb87208: Make cc_configure on Windows more robust
285 + c30432c: Fix cc_configure on Windows
286 + 95b16a8: sandbox: Replace the error-prone lazy cleanup of
287 sandbox directories by a simple synchronous cleanup.
288 + e898023: Fix #1849: Sandboxing on OS X should be turned off by
289 default for 0.3.2.
290 + ffdc05d: Add action_config and feature for linking on Windows
291```
292
293Incompatible changes:
294
295 - If you maintain a rule that uses persistent workers, you'll have
296 to specify execution_requirements={"supports-workers": 1} in the
297 ctx.action that intends to run a tool with workers. The
298 WorkerSpawnStrategy will alert you with a warning message if you
299 forget to make this change and fallback to non-worker based
300 execution.
301 - It is now an error to include a precompiled library (.a, .lo, .so)
302 in a cc_library which would generate a library with the same name
303 (e.g., libfoo.so in cc_library foo) if that library also contains
304 other linkable
305 sources.
306 - The main repository's execution root is under the main
307 repository's workspace name, not the source directory's basename.
308 This shouldn't
309 have any effect on most builds, but it's possible it could break
310 someone doing
311 weird things with paths in actions.
312 - Blaze doesn't support Unix domain sockets for communication
313 between its client and server anymore. Therefore, the
314 --command_port command line argument doesn't accept -1 as a valid
315 value anymore.
316 - Skylark: It is an error to shadow a global variable with a local
317 variable after the global has already been accessed in the
318 function.
319 - bin_dir and genfiles_dir are now properties of ctx, not
320 configuration. That is, to access the bin or genfiles directory
321 from a
322 Skylark rule, use ctx.bin_dir or ctx.genfiles_dir (not
323 ctx.configuration.{bin,genfiles}_dir). At the moment, you can
324 access
325 {bin,genfiles}_dir from either, but the ctx.configuration version
326 will
327 stop working in a future release.
328 - filegroup-based C++ toolchains are not supported anymore.
329 --*_crosstool_top options must always point to a
330 cc_toolchain_suite rule (or an alias of one).
331 - repository_ctx.{download,download_and_extract,execute} API now use
332 named parameters for optional parameters and no
333 longer uses argument
334 type to distinguished between arguments
335 (executable attribute name
336 must be specified when preceding optional
337 arguments are missing).
338
339New features:
340
341 - print and fail are now available in BUILD files.
342
343Important changes:
344
345 - Added @bazel_tools//tools/build_defs/repo/git.bzl as a Skylark
346 rule for Git repositories.
347 - Added @bazel_tools//tools/build_defs/repo/maven_rules.bzl as a
348 Skylark rule for Maven repositories.
349 - Add global hash() function for strings (only)
350 - Improve Android split transition handling.
351 - Removes exports_manifest attribute from android_binary rule.
352 - java_proto_library: control strict-deps through a rule-level and
353 a package-level attribute.
354 - Persistent workers are now used by default for Java compilation
355 in Bazel, which should speed up your Java builds by ~4x. You can
356 switch back to the old behavior via --strategy=Javac=standalone.
357 Check out http://www.bazel.io/blog/2015/12/10/java-workers.html
358 for more details.
359 - objc_* rules can now depend on any target that returns an "objc"
360 provider.
361 - Adds support for NDK12 to `android_ndk_repository` rule in Bazel.
362 - Test targets can disable the JUnit4 test security manager via a
363 property.
364 - Disable the Android split transition if --android_cpu and
365 fat_apk_cpu are both empty.
366 - New sandboxing implementation for Linux in which all actions run
367 in a separate execroot that contains input files as symlinks back
368 to the originals in the workspace. The running action now has
369 read-write access to its execroot and /tmp only and can no longer
370 write in arbitrary other places in the file system.
371 - Add worker support to single jar.
372 - Invoke source jar action as a worker.
373 - Sandboxed builds allow network access for builds by default.
374 Tests will still be run without networking, unless
375 "requires-network" is specified as a tag.
376 - Add path.realpath() method for Skylark repositories.
377 - On Mac devices, detect locally installed versions of xcode to:
378 1. Use a sensible default if xcode is required but
379 --xcode_version is unspecified.
380 2. Use sensible default iOS SDK version for the targeted version
381 of xcode if ios_sdk_version is unspecified.
382 - Emacs' [C-x `], a.k.a. next-error, works again in emacsen >= 25.1
383 - swift_library can be used to build watchOS apps.
384 - Exposes the is_device field on Apple platform objects and adds
385 the apple_common.platform_type(name) method to retrieve a
386 platform_type value that can be passed to methods like the Apple
387 fragment's multi_arch_platform.
388 - Move Skylark git_repository rules to git.bzl
389 - Add support for aspects to attr.label() attributes
390 - Global varaiables HOST_CFG and DATA_CFG are deprecated in favor
391 of strings "host"
392 and "data.
393 Argument `cfg = "host"` or `cfg = "data"` is mandatory if
394 `executable = True` is provided for a label.
395 - The deprecation attribute of all rules now causes warnings
396 to be printed when other targets depend on a target with that
397 attribute set.
398 - Change default of --[no]instrument_test_targets to false, change
399 default --instrumentation_filter (which previously tried to
400 exclude test targets by heuristic) to only exclude targets in
401 javatests.
402 - Remove deprecated absolute paths in blaze IDE artifacts
403 - When using android_binary.manifest_merger="android" the merger
404 produces a summary log next to the merged manifest artifact.
405 - Allow different default mallocs per configuration.
406
Bazel Release System70c772b2016-07-29 10:28:13 +0200407## Release 0.3.1 (2016-07-29)
408
409```
410Baseline: 792a9d6
411
412Cherry picks:
413 + 25e5995: Rollback of commit
414 a2770334ea3f3111026eb3e1368586921468710c.
415 + 2479405: Fix NPE with unset maven_jar sha1
416 + 3cf2126: Rewrite the extra action info files if the data within
417 them changes.
418 + 5a9c6b4: JavaBuilder: Reintroduce the -extra_checks flag.
419```
420
421Incompatible changes:
422
423 - Removed predefined Python variable "generic_cpu".
424 - Skylark rules: if you set "outputs" or an attribute to a
425 function, this function must now list its required attributes as
426 parameters (instead of an attribute map).
427 - The host_platform and target_platform entries are not written to
428 the master log anymore.
429 - Bazel requires Hazelcast 3.6 or higher now for remote execution
430 support, because we upgraded our client library and the protocol
431 it uses is incompatible with older versions.
432
433New features:
434
435 - LIPO context (--lipo_context) can now also be a cc_test (in
436 addition to cc_binary)
437
438Important changes:
439
440 - If --android_crosstool_top is set, native code compiled for
441 android will always use --android_compiler and not --compiler in
442 choosing the crosstool toolchain, and will use --android_cpu if
443 --fat_apk_cpu is not set.
444 - Add --instrument_test_targets option.
445 - apple_binary supports a new platform_type attribute, which, if
446 set to "watchos", will build dependencies for Apple's watchOS2.
447 - objc_binary now supports late-loaded dynamic frameworks.
448 - Native Swift rules no longer pull in module maps unconditionally.
449 Use --experimental_objc_enable_module_maps for that.
450 - Merged manifests are guaranteed to have the application element
451 as the last child of the manifest element as required by Android
452 N.
453 - The Android manifest merger is now available as an option for
454 android_binary rules. The merger will honor tools annotations in
455 AndroidManifest.xml and will perform placeholder substitutions
456 using the values specified in android_binary.manifest_values. The
457 merger may be selected by setting the manifest_merger attribute
458 on android_binary.
459 - The progress message would not clear packages that need to be
460 loaded twice.
461 - Remove warning for high value of --jobs.
462 - Use the correct build configuration for shared native deps during
463 Android split transitions.
464 - When building ObjectiveC++, pass the flag -std=gnu++11.
465 - use xcrun simctl instead of iossim to launch the app for "blaze
466 run".
467 - Glob arguments 'exclude' and 'exclude_directories' must be named
468 - Bazel no longer regards an empty file as changed if its mtime has
469 changed.
470
Bazel Release Systemccadf8d2016-06-10 13:28:40 +0200471## Release 0.3.0 (2016-06-10)
472
473```
474Baseline: a9301fa
475
476Cherry picks:
477 + ff30a73: Turn --legacy_external_runfiles back on by default
478 + aeee3b8: Fix delete[] warning on fsevents.cc
479```
480
481Incompatible changes:
482
483 - The --cwarn command line option is not supported anymore. Use
484 --copt instead.
485
486New features:
487
488 - On OSX, --watchfs now uses FsEvents to be notified of changes
489 from the filesystem (previously, this flag had no effect on OS X).
490 - add support for the '-=', '*=', '/=', and'%=' operators to
491 skylark. Notably, we do not support '|=' because the semantics
492 of skylark sets are sufficiently different from python sets.
493
494Important changes:
495
496 - Use singular form when appropriate in blaze's test result summary
497 message.
498 - Added supported for Android NDK revision 11
499 - --objc_generate_debug_symbols is now deprecated.
500 - swift_library now generates an Objective-C header for its @objc
501 interfaces.
502 - new_objc_provider can now set the USES_SWIFT flag.
503 - objc_framework now supports dynamic frameworks.
504 - Symlinks in zip files are now unzipped correctly by http_archive,
505 download_and_extract, etc.
506 - swift_library is now able to import framework rules such as
507 objc_framework.
508 - Adds "jre_deps" attribute to j2objc_library.
509 - Release apple_binary rule, for creating multi-architecture
510 ("fat") objc/cc binaries and libraries, targeting ios platforms.
511 - Aspects documentation added.
512 - The --ues_isystem_for_includes command line option is not
513 supported anymore.
514 - global function 'provider' is removed from .bzl files. Providers
515 can only be accessed through fields in a 'target' object.
516
Bazel Release System9fdd6012016-05-17 11:12:31 +0200517## Release 0.2.3 (2016-05-10)
518
519```
520Baseline: 5a2dd7a
521```
522
523Incompatible changes:
524
525 - All repositories are now directly under the x.runfiles directory
526 in the runfiles tree (previously, external repositories were at
527 x.runfiles/main-repo/external/other-repo. This simplifies
528 handling remote repository runfiles considerably, but will break
529 existing references to external repository runfiles.
530 Furthermore, if a Bazel project does not provide a workspace name
531 in the WORKSPACE file, Bazel will now default to using __main__
532 as the workspace name (instead of "", as previously). The
533 repository's runfiles will appear under x.runfiles/__main__/.
534 - Bazel does not embed protocol buffer-related rules anymore.
535 - It is now an error for a cc rule's includes attribute to point to
536 the workspace root.
537 - Bazel warns if a cc rule's includes attribute points out of
538 third_party.
539 - Removed cc_* attributes: abi / abi_deps. Use select() instead.
540
541New features:
542
543 - select({"//some:condition": None }) is now possible (this "unsets"
544 the attribute).
545
546Important changes:
547
548 - java_import now allows its 'jars' attribute to be empty.
549 - adds crunch_png attribute to android_binary
550 - Replace --java_langtools, --javabuilder_top, --singlejar_top,
551 --genclass_top, and --ijar_top with
552 java_toolchain.{javac,javabuilder,singlejar,genclass,ijar}
553 - External repository correctness fix: adding a new file/directory
554 as a child of a new_local_repository is now noticed.
555 - iOS apps are signed with get-task-allow=1 unless building with -c
556 opt.
557 - Generate debug symbols (-g) is enabled for all dbg builds of
558 objc_ rules.
559 - Bazel's workspace name is now io_bazel. If you are using Bazel's
560 source as an external repository, then you may want to update the
561 name you're referring to it as or you'll begin seeing warnings
562 about name mismatches in your code.
563 - Fixes integer overflow in J2ObjC sources to be Java-compatible.
564 - A FlagPolicy specified via the --invocation_policy flag will now
565 match the current command if any of its commands matches any of
566 the commands the current command inherits from, as opposed to
567 just the current command.
568 - The key for the map to cc_toolchain_suite.toolchains is now a
569 string of the form "cpu|compiler" (previously, it was just "cpu").
570 - Fix interaction between LIPO builds and C++ header modules.
571 - Ctrl-C will now interrupt a download, instead of waiting for it to
572 finish.
573 - Proxy settings can now be specified in http_proxy and https_proxy
574 environment variables (not just HTTP_PROXY and HTTPS_PROXY).
575 - Skylark targets can now read include directories from
576 ObjcProvider.
577 - Expose parameterized aspects to Skylark.
578 - Support alwayslink cc_library dependencies in objc binaries.
579 - Import cc_library dependencies in generated Xcode project.
580
Bazel Release System1aedd1f12016-04-25 09:47:50 +0200581## Release 0.2.2b (2016-04-22)
Bazel Release System951cea22016-04-21 14:10:12 +0200582
583```
584Baseline: 759bbfe
Bazel Release System1aedd1f12016-04-25 09:47:50 +0200585
586Cherry picks:
Bazel Release System951cea22016-04-21 14:10:12 +0200587 + 1250fda: Rollback of commit
588 351475627b9e94e5afdf472cbf465f49c433a25e.
589 + ba8700e: Correctly set up build variables for the correct pic
590 mode for fake_binary rules.
591 + 386f242: Automated [] rollback of commit
592 525fa71b0d6f096e9bfb180f688a4418c4974eb4.
Bazel Release System1aedd1f12016-04-25 09:47:50 +0200593 + 97e5ab0: Fix cc_configure include path for Frameworks on OS X.
594 + a20352e: cc_configure: always add -B/usr/bin to the list of gcc
595 option
596 + 0b26f44: cc_configure: Add piii to the list of supported
597 cpu_value
598 + 3e4e416: cc_configure: uses which on the CC environment variable
599 + aa3dbd3: cc_configure.bzl: strip end of line when looking for
600 the cpu
601 + 810d60a: cc_configure: Add -B to compiler flag too
Bazel Release System951cea22016-04-21 14:10:12 +0200602```
603
Bazel Release System1aedd1f12016-04-25 09:47:50 +0200604Patch release, only includes fixes to C++ auto-configuration.
Bazel Release System951cea22016-04-21 14:10:12 +0200605
Bazel Release System950c1ab2016-03-31 17:18:55 +0200606## Release 0.2.1 (2016-03-21)
607
608```
609Baseline: 19b5675
610```
611
612Incompatible changes:
613
614 - Skylark rules that are available from their own repository will
615 now issue a warning when accessed through @bazel_tools.
616 - Set --legacy_bazel_java_test to off by default. java_test will
617 now have a slightly different behaviour, correctly emitting XML
618 file but, as a downside, it needs correct declaration of the
619 test suite (see https://github.com/bazelbuild/bazel/issues/1017).
620 - Labels in .bzl files in remote repositories will be resolved
621 relative to their repository (instead of the repository the
622 Skylark rule is used in).
623 - Renamed proto_java_library to java_proto_library. The former
624 is now deprecated and will print out a warning when used.
625 - android_sdk now compiles android_jack on the fly from
626 android_jar, which means android_jar must be a jar and
627 android_jack is now deprecated. The Jack tools (jack, jill,
628 resource_extractor) must be specified.
629 - Any project that depended on the objc_options rule will be
630 broken. Can be fixed by adding attrs (infoplists,copts) directly
631 to rules depending on the options.
632 - .aidl files correctly require import statements for types
633 defined in the same package and the same android_library.
634
635New features:
636
637 - Experimental Windows support is available.
638 - Experimental support for writing remote repository rules in
639 Skylark is available.
640 - iOS ipa_post_processor attribute allows for user-defined IPA
641 edits.
642 - Adds a to_json method to Skylark structs, providing conversion to
643 JSON format.
644 - Native python rule can depend on skylark rule as long as skylark
645 rule provides 'py' provider.
646 - When using both --verbose_failures and --sandbox_debug, Bazel
647 prints instructions how to spawn a debugging shell inside the
648 sandbox.
649 - add flag --sandbox_add_path, which takes a list of additional
650 paths as argument and mount these paths to sandbox.
651
652Important changes:
653
654 - @androidsdk//:org_apache_http_legacy added for the legacy Apache
655 classes for android sdk version 23 and above.
656 - Genrules correctly work when used with bazel run.
657 - When namespace-sandbox is run with the -D (debug) flag and
658 inside a terminal, it spawns a shell inside the sandbox to aid in
659 debugging when the sandboxed command fails.
660 - Added --artifact to workspace generator for generating workspace
661 and build file rules from artifact coodrinates.
662 - Specifying --experimental_android_resource_shrinking on the
663 command line will enable a resource shrinking pass on
664 android_binary targets that already use Proguard.
665 - J2ObjC updated to 1.0.1 release.
666 - Added "root_symlinks" and "symlinks" parameters to Skylark
667 runfiles() method.
668 - You can no longer use objc_binary targets for the xctest_app
669 attribute of an ios_test rule.
670 - Enable overriding jsonnet binaries and stdlib for Jsonnet rules.
671 - mount target of /etc/resolv.conf if it is a symlink.
672 - Tests that failed to build because execution was halted no longer
673 print their status.
674 - Bazel warns if a cc rule's includes attribute contains up-level
675 references that escape its package.
676 - Add repository_ctx.download and repository_ctx.download_and_extract
677 function.
678
Bazel Release Systemf98290d2016-02-23 13:51:16 +0100679## Release 0.2.0 (2016-02-18)
680
681```
682Baseline: 9e100ac
683```
684
685Incompatible changes:
686
687 - ObjC compile actions for J2ObjC-translated code now only has
688 access to headers from the java deps of the associated original
689 java rule.
690 These compile actions no longer takes the compiler options
691 specified in "copts" attribute on objc_binary/ios_test rules.
692 J2ObjC dead code removal (enabled through flag
693 "--j2objc_dead_code_removal") now happens *after* ObjC
694 compilation.
695 - maven_jar no longer supports separate artifact_id, group_id, and
696 verison fields. This information should be provided in the
697 artifact field,
698 instead.
699
700New features:
701
702 - Better support for toolchains that don't have a dynamic linker.
703 - build_file_content attribute added to new_git_repository,
704 new_http_archive, and new_local_repository.
705 - Add support for .tar.bz2 archives to http_archive rules.
706
707Important changes:
708
709 - The --skyframe flag is no longer available for the build command.
710 - The --artifacts flag was removed from the dump command.
711 - The sha256 attribute is now optional (although recommended!) for
712 remote repository rules.
713 - Add instrumented file provider support to Skylark rules.
714 - Add imports attribute to native Python rules.
715 - Allow overriding -gsplit-dwarf from copts.
716 - Improved sandbox performance on XFS filesystems.
717
Bazel Release System00cf25d2016-02-09 18:36:51 +0100718## Release 0.1.5 (2016-02-05)
719
720```
721Baseline: 3a95f35
722 + 8378cd8: Rollback of commit
723 a9b84575a32476a5faf991da22b44661d75c19b6.
724```
725
726Incompatible changes:
727
728 - Set stamping to false by default (i.e., --nostamp)
729 - Removed --objc_dump_syms_binary.
730 - Removes --objc_gcov_binary flag.
731 - Remove JAVAC "Make" variable
732 - The startup flag --blaze_cpu is removed,
733
734New features:
735
736 - A new java test runner that support XML output and test filtering
737 is supported. It can be used by specifying --nolegacy_bazel_java_test
738 or by specifying the test_class attribute on a java_test.
739 - Skylark aspects can now specify configuration fragment
740 dependencies with fragments and host_fragments like rules can.
741
742Important changes:
743
744 - Support for downloading remote resources through proxies by
745 setting HTTP_PROXY (or HTTPS_PROXY).
746 - Timestamps within Android apks are removed to make apks
747 deterministic.
748 - Support aggregation over existing rules in Skylark extensions
749 through native.rules and native.rule.
750 - A tools/bazel script in the workspace will be executed
751 as an opportunity to use a fixed version of Bazel (not
752 implemented for the homebrew recipe yet).
753 - --noimplicit_deps and --nohost_deps work correctly for Aspect
754 attributes.
755 - JDK-related targets are now available via @local_jdk (instead of
756 @local-jdk).
757 - j2objc tools can now be accessed via @bazel_j2objc, not
758 @bazel-j2objc.
759 - Repository rules must use names that are valid workspace names.
760 - [rust] Update to Rust 1.6
761 - Add support for .tar.xz archives to http_archive rules.
762 - Make C++ modules compatible with tools using
763 --compilation_prerequisites_only
764 - [d] Update to DMD 2.070.0
765
Bazel Release System446d9922016-01-21 10:59:31 +0100766## Release 0.1.4 (2016-01-15)
767
768```
769Baseline: e933d5e
770 + 3d796fe: Rollback of commit
771 ac6ed79e1a3fa6b0ca91657b28e2a35f7e49758c.
772 + 7a02e5d: Fix installer under OS X
773 + 848740c: Fix bazel version for debian package
774 + 7751d43: Add a method for getting the root of a rule workspace
775 to the Label method
776```
777
778Important changes:
779
780 - add loadfiles() query operator, to find skylark files loaded by
781 targets.
782 - Added ability to declare and use aspects in Skylark.
783 - Skylark load statements may now reference .bzl files via build
784 labels, in addition to paths. In particular, such labels can be
785 used to reference Skylark files in external repositories; e.g.,
786 load("@my_external_repo//some_pkg:some_file.bzl", ...).
787 Path-based loads are now deprecated and may be disabled in the
788 future. Caveats: Skylark files currently do not respect package
789 visibility; i.e., all Skylark files are effectively public. Also,
790 loads may not reference the special //external package.
791 - Relative paths can now be used for 'path' with
792 new_local_repository and local_repository.
793
Bazel Release System1518253e2016-01-11 10:10:19 +0100794## Release 0.1.3 (2016-01-07)
795
796```
797Baseline: 23ad8f6
798 + de2183d: Only depend on the WORKSPACE file for external files
799 that are under the external/ directory, i.e. were
800 created by Bazel.
801 + f8f855c: Rollback of commit
802 12bad3af0eade9c4b79d76f9e1c950ad2e3214c2.
803 + f627562: Stop parsing the WORKSPACE file when a parse error is
804 detected
805 + 763f139: Add -fno-canonical-system-headers to CROSSTOOL files so
806 that gcc doesn't resolve symlinks in .d files, which
807 would confuse Blaze.
808 + b95995b: Use openjdk7 as dependency for debian package of jdk7
809 flavor
810```
811
812New features:
813
814 - Skylark macros are now enabled in WORKSPACE file.
815 - .bazelrc allows workspace-relative imports as "import
816 %workspace%/path/to/rcfile"
817 - Evaluate the query expression in a file by passing
818 --query_file=<file> to query
819
820Important changes:
821
822 - Remove obsolete --objc_per_proto_includes flag.
823 - iOS apps and extensions now have launch_storyboard
824 - Passing multiple JVM options via a single --host_jvm_args flag is
825 now deprecated. Pass each JVM option behind its own
826 --host_jvm_args flag.
827 - Resources defined locally on an android_library rule will respect
828 the neverlink attribute.
829 - Update Rust to 1.4
830 - Fix resource handling for exported android_library rules
831 - Files in external repositories are now treated as mutable, which
832 will make the correctness guarantees of using external
833 repositories stronger (existent), but may cause performance
834 penalties.
835
Bazel Release System0d2e4092015-12-04 23:31:41 +0100836## Release 0.1.2 (2015-11-20)
837
838```
839Baseline: ee0ade3
840 + 1e66ccd: RELNOTES: Symlink dirents of directories containing a
841 file named
842 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA
843 _A_RECURSIVE_TARGET_PATTERN" will *not* be traversed
844 for transitive target patterns. The motivation here is
845 to allow directories that intentionally contain wonky
846 symlinks (e.g. foo/bar -> foo) to opt out of being
847 consumed by Blaze. For example, given
848 + f5773fc: Set the ijar MAX_BUFFER_SIZE to 256 MB
849```
850
851New features:
852
853 - java_library now supports the proguard_specs attribute for
854 passing Proguard configuration up to Android (not Java) binaries.
855 - http_file can specify "executable" to make the downloaded file
856 runnable.
857 - Debian and tar packaging is now supported
858 (see tools/build_defs/pkg/README.md).
859 - cpxx_builtin_include_directory specifications allow more
860 flexibility.
861 - accept %crosstool_top% in cxx_builtin_include_directory
862 - android_binary now supports proguard_apply_mapping to re-use a
863 previously generated proguard mapping.
864
865Important changes:
866
867 - remove webstatusserver (--use_webstatusserver).
868 - Add support for objc textual headers, which will not be compiled
869 when modules are enabled.
870 - actoolzip, momczip and swiftstdlibtoolzip have all been made into
871 bash scripts and have been renamed to actoolwrapper, momcwrapper
872 and swiftstdlibtoolwrapper respectively. The old versions will be
873 deleted in a later change.
874 - [rust] Add rust_bench_test and rust_doc_test rules and improve
875 usability of rust_test tule.
876 - Java rules now support a resource_strip_prefix attribute that
877 allows the removal of path prefixes from Java resources.
878 - [docker_build] incremental loading is default now.
879 Specify explicitly //package:target.tar (with the .tar extension)
880 to obtain the full image.
881 - --ios_signing_cert_name allows specifying a cert for iOS app
882 signing
883 - Go rules for Bazel.
884 - [jsonnet] Update to Jsonnet 0.8.1.
885 - [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to
886 allow passing external variables to Jsonnet via --var and
887 --code_var.
888 - Adds --override_workspace_root blaze flag to hand-set
889 workspace_root and mainGroup in xcodeproj.
890 - Allow dots in package names.
891 - When used as a forwarding rule (i.e., has no sources),
892 android_library
893 will also forward any exported_plugins in its dependencies.
894 - Add support for Windows-created zip files with non-posix
895 permissions.
896 - [jsonnet] Add jsonnet_to_json_test rule for testing Jsonnet code.
897 - C++ compile actions run in a sandbox now on systems that support
898 sandboxed execution.
899 - The names of the clang compilers in the Android NDK crosstool no
900 longer reference gcc.
901 - 420 dpi is now a valid density for andoid_binary.densities.
902 - Bazel does strict validation of include files now to ensure
903 correct incremental builds. If you see compilation errors when
904 building C++ code, please make sure that you explicitly declare
905 all header files in the srcs or hdrs attribute of your cc_*
906 targets and that your cc_* targets have correct "deps" on
907 cc_library's that they use.
908 - [jsonnet] Fix jsonnet_to_json rule to read code_vars from
909 code_vars instead of vars.
910 - Tests, genrules, and Skylark actions without the
911 "requires-network" tag will no longer be able to access the
912 network.
913 - C++ libraries no longer need includes = ["."] (or similar copts)
914 to include paths relative to a remote repository's root.
915 - Support exports attribute for android_library
916 - Symlink dirents of directories containing a file named
917 "DONT_FOLLOW_SYMLINKS_WHEN_TRAVERSING_THIS_DIRECTORY_VIA_A_RECURSI
918 VE_TARGET_PATTERN" will *not* be traversed for transitive target
919 patterns. The motivation here is to allow directories that
920 intentionally contain wonky symlinks (e.g. foo/bar -> foo) to opt
921 out of being consumed by Blaze.
922
Bazel Release Systemfa35b182015-10-14 12:11:51 -0400923## Release 0.1.1 (2015-10-05)
924
925```
926Baseline: 22616ae
927 + 1ef338f: Rollback of "Propagates cc_library linkopts attribute
928 to dependent objc_libraries.": breaks certain
929 objc_binary build targets.
930 + 5fb1073: Reintroduce an inconsistency check (albeit, in a weaker
931 form) removed by a previous change that was trying to
932 optimize away a filesystem call.
933 + 6d00468b2eb976866cfb814d562e0d53a580a46f: Add IdlClass to the embedded default android tools
934 repository and rearrange BuildJar's JarHelper so that
935 it too can be embedded.
936 + a5199039934a2e399a7201adc0d74e2f2d2b0ff3: Fixes Android integration tests by wiring up idlclass
937 rules in integration environment.
938```
939
940Incompatible changes:
941
942 - Bazel requires JDK 8 to run.
943 - Attribute "copts" is removed from j2objc_library.
944
945New features:
946
947 - a cc_binary rule may list '.s' and '.asm' files in the srcs
948 - Support for build with libsass.
949 - labels in "linkopts" may match any label in either "deps" or
950 "srcs" to be considered valid.
951 - Maven servers that require username & password authentication are
952 now supported (see maven_server documentation).
953
954Important changes:
955
956 - Support empty plist files
957 - The <compatible-screens> section of the AndroidManifest.xml will
958 not be overwritten if it already contains a <screen> tag for each
959 of the densities specified on the android_binary rule.
960 - Add Jsonnet rules to Bazel
961 - Remove deprecated xcode_options flag.
962 - Workspace names are now restricted to being in their base
963 directory
964 (that is, the names cannot contain up-level references or /./).
965 - j2objc_library on Bazel now transpiles transitive proto_library
966 dependencies. (Note that java_* rules in Bazel do not yet support
967 protos; currently they ignore proto dependencies.)
968 - new_http_archive can specify a root directory.
969 - Adds support for dylibs on devices for Xcode 7.
970 - [d] d_docs rules now depend on a d_binary, a d_library or
971 d_source_library.
972 - [docker] docker_build now set the permission to 0555 to files
973 added to the layer, use `mode = "0644"` to use the legacy behavior.
974 - android_binary now has a main_dex_proguard_specs attribute to
975 specify which classes should be in the main dex.
976 - [rust] Add rust_docs rule for generating rustdoc.
Bazel Release System79e40ac2015-09-08 23:38:00 +0200977## Release 0.1.0 (2015-09-08)
978
979```
980Baseline: a0881e8
981 + 87374e6: Make android_binary use a constant, hard-coded,
982 checked-in debug key.
983 + 2984f1c: Adds some safety checks in the Bazel installer
984 + 4e21d90: Remove BUILD.glob and incorporate the necessary
985 filegroups into the android_{ndk,sdk}_repository rules
986 themselves.
987 + 1ee813e: Fix Groovy rules to work with sandboxing
988 + 8741978: Add initial D rules to Bazel.
989 + 2c2e70d: Fix the installer and fixing the package shiped into
990 binary version of Bazel.
991```
992
993Initial release.
Bazel Release System6712cac2017-02-01 19:53:37 +0100994