Skip to content

Releases: bazelbuild/bazel

4.2.2

03 Dec 09:26
Compare
Choose a tag to compare

Release 4.2.2 (2021-12-02)

Baseline: 37a429a

See release notes for Bazel 4.2.1: https://github.com/bazelbuild/bazel/releases/tag/4.2.1

Bazel 4.2.2 contains additional fixes for four issues:

  • #14273: C++ rules broken on macOS 12 Monterey and command line developer tools
  • #14178: Bazel 4.2.1 doesn't respect --remote_max_connections
  • #13985: Actions stuck in "active" and thus "[Prepa]"
  • #8993: Investigate behavior of interrupted execution of long-to-execute repository rules

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

4.2.1

30 Aug 15:41
Compare
Choose a tag to compare

Release 4.2.1 (2021-08-30)

See release notes for Bazel 4.2.0: https://blog.bazel.build/2021/08/18/bazel-4.2.html

Bazel 4.2.1 contains additional fixes for two issues:

  • #13890: Transitions cannot read Starlark flags as @repository_name//:flag_name
  • #13904: bazel cquery deps not working

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

4.2.0

18 Aug 13:08
Compare
Choose a tag to compare

Release 4.2.0 (2021-08-18)

See release notes: https://blog.bazel.build/2021/08/18/bazel-4.2.html

This release contains contributions from many people at Google, as well as Alex Eagle, Austin Schuh, Benjamin Peterson, bromano, Christopher Peterson Sauer, Christopher Sauer, Cristian Hancila, Daniel Wagner-Hall, Denys Kurylenko, Ed Schouten, Finn Ball, George Gensure, Greg Estren, Johannes Abt, Keith Smiley, Kevin Hogeland, Lauri Peltonen, Philipp Schrader, Ryan Beasley, Thi Doan, ThomasCJY, Timothy Klim, Trustin Lee, Ulf Adams, Vaidas Pilkauskas, Vertexwahn, wisechengyi, Xavier Bonaventura, Yannic Bonenberger, Yuval Kaplan, Yuval.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

4.1.0

21 May 11:42
Compare
Choose a tag to compare

Release 4.1.0 (2021-05-21)

Baseline: 37a429a

Cherry picks:

  • a689d67:
    Use getRunfilesPath for run_under executable path generation.
    getRootRelativePath doesn't return a valid runfiles path for
    external source files anymore after the recent external source
    root change. Also, it won't work for external labels either once
    the --nolegacy_external_runfiles becomes default. This fixes
    issue #12545.
  • d90ec67:
    Fix NPE when coveragerunner is not set on the toolchain.
  • 8555789:
    Fix the classic query package-loading cutoff optimization with
    external workspaces.
  • 57672ac:
    Update turbine
  • bef4bbb:
    Update turbine
  • d113d74:
    Update turbine
  • 1489f0f:
    Support Scala3 .tasty files
  • 0d2d95c:
    Update to java_tools javac11 release 10.5 (#12647)
  • a9419f3:
    Fix common prefix for instrumentation filter
  • 84fadcf:
    Fix builds for filegroup targets with incompatible dependencies
  • e43825d:
    Revert "Remove
    --incompatible_blacklisted_protos_requires_proto_info"
  • 082d58d:
    Transform roots along with paths during output deletion.
  • e8835c1:
    AttributeContainer.Large now handles more than 127 attributes.
  • e1e8734:
    Add an env attribute to all test and binary rule classes
  • a87d7ed:
    Take no action to prefetch empty artifacts.
  • 3e969ff:
    Fix a couple of bugs with Incompatible Target Skipping
  • e667082:
    Pass --host_action_env to host options hostActionEnvironment
    attribute
  • 07400c0:
    Add --{no,}autodetect_server_javabase.
  • c833660:
    Only treat "env" and "env_inherit" attrs specially for native
    rules
  • 6a60b30:
    Fix coverage support when using default_java_toolchain. (#12801)
  • 4158a6f:
    Revert JacocoCoverage target to remote_java_tools_java_import
    and add a new target for remore_java_tools_filegroup. (#12813)
  • f6d30cf:
    Add windows_msvc back to conditions in bazel_tools.
  • 6b33bdb:
    Release 4.0.0 (2021-01-21)
  • 8811e27:
    Fix error message from getPrerequisites to not print internal
    details.
  • 27e15ad:
    Clean up ConfiguredTargetValueAccessor and
    ConfiguredTargetAccessor
  • e87feb8:
    Move getConfigConditions into ConfiguredTarget.
  • 34d9823:
    Change ConfiguredTargetQuery to use KeyedConfiguredTarget as a
    value.
  • 079bb7d:
    Clean up old dependencies that are unused since
    34d98234324da83e93ba0d
    5ef5702880d5ac7c5c.
  • e03cb63:
    Update bazelbuild/platforms to a current release. - Roll forward
    0a4533420a3de467fd211d
    7f925cf88e0cd5b76a with kythe fix.
  • 2eb1bf5:
    Update docs and tests to use the @platforms//:incompatible
    constraint
  • c71697c:
    Clarify test_suite behaviour in the Platforms docs
  • dfb70ea:
    Enable toolchain resolution for filegroup targets.
  • 24d0864:
    PlatformProviderUtils should ignore targets that don't have the
    needed
  • ba60c0b:
    ijar: fix manifest sections handling
  • 58bb42a:
    Revert "Switch to -fdebug-compilation-dir"
  • 57672ac:
    Update turbine
  • bef4bbb:
    Update turbine
  • d113d74:
    Update turbine
  • ad241fb:
    Allow cquery to filter out incompatible targets
  • 1782f0a:
    Patch grpc to fix cares selecting the wrong source when building
    for darwin_arm64 cpu.
  • 8f7bc2f:
    [1/3] Bump grpc to 1.33.1 to fix corruption when downloading CAS
    blobs
  • 848a517:
    [2/3] Bump grpc to 1.33.1 to fix corruption when downloading CAS
    blobs
  • 9b30172:
    [3/3] Bump grpc to 1.33.1 to fix corruption when downloading CAS
    blobs
  • 1e258d2:
    Allow exec groups to inherit from the rule or other exec groups.
  • d067669:
    Support execution constraints per exec group
  • f1e0d34:
    Clean up RuleContext to use a Table instead of a Map of Maps.
  • 8186fbb:
    Documentation for #13110
  • 321fe3b:
    Prevent --repo_env from triggering unnecessary fetches
  • 3ebf658:
    Prevent a crash when using --repo_env=VAR without a value
  • 913a985:
    Report digest of failed uploads
  • 5122617:
    Status error presentation with details
  • 9a70805:
    Fix double shutdown of BuildEventArtifactUploader when BES+File
    output enabled.
  • 325eb95:
    Add rxjava3 to third_party
  • ceaac96:
    remote: set executable bit of an input file based on its real
    value
  • 5b786da:
    Remote: correctly implement equals and hashCode.
  • 4864850:
    Fixed an error that bazel binary is not executable when testing
    with remote execution.
  • bc54c64:
    Remote: Use parameters instead of thread-local storage to
    provide tracing metadata.
  • 92955e6:
    Remote: Use parameters instead of thread-local storage to
    provide tracing metadata. (Part 2)
  • 75bd1ff:
    Remote: Use parameters instead of thread-local storage to
    provide tracing metadata. (Part 3)
  • 37ee252:
    Remote: Use parameters instead of thread-local storage to
    provide tracing metadata. (Part 4)
  • 71e35b1:
    Remote: Use parameters instead of thread-local storage to
    provide tracing metadata. (Part 5)
  • 32fc451:
    Write/QueryWriteStatus logging refinement/addition
  • 97963c5:
    Remote: gRPC load balancing. (Part 1)
  • e2b9a42:
    Remote: gRPC load balancing. (Part 2)
  • 6667ad7:
    Remote: gRPC load balancing. (Part 3)
  • 7c081eb:
    Remote: gRPC load balancing. (Part 4)
  • 17afbe4:
    Implement getMessage for BulkTransferException
  • a6293b3:
    Remote: gRPC load balancing. (Part 5)
  • 7a62c2d:
    Remote: Add interoperability between Rx and ListenableFuture.
  • 1fcb18a:
    Update to latest remote-execution proto
  • dad9630:
    Set Platform on Action not just Command
  • 6c5a3ee:
    Remote: Add AsyncTaskCache which is used to deduplicate task
    executions and cache the results.
  • 9d0c732:
    Remote: Use AsyncTaskCache inside RemoteActionInputFetcher.
  • f54fe07:
    Add --experimental_repository_disable_download to allow users
    disable download for external repos
  • b243584:
    Report errors parsing rewriter config file
  • 63bc1c7:
    Downloader rewriter config has all_blocked_message
  • 495ac92:
    Allow UrlRewriter to change protocol, i.e. https->http, and
    http->https
  • 8dbbde0:
    Allow overriding the hostname and instance name in bytestream://
    URIs
  • 0881c80:
    Don't set requestId on non-multiplex requests.
  • e3b7e17:
    When generating a symlink in _virtual_includes, add the original
    header to the 'allowed to use' set too
  • f8f66f3:
    Make SimpleLogHandler not swallow interrupts.
  • f8606e5:
    linux-sandbox: don't assume -lrt, -D__STDC_FORMAT_MACROS
  • dac0d40:
    Improve "Common Attributes" section
  • a607d9d:
    Never create more than one process per WorkerMultiplexer.
  • 80c03ef:
    Move sending requests and reading responses for multiplex
    workers into separate subthreads.
  • 003cfcd...
Read more

4.0.0

21 Jan 08:02
Compare
Choose a tag to compare

Release 4.0.0 (2021-01-21)

Baseline: 37a429a

Cherry picks:

  • a689d67:
    Use getRunfilesPath for run_under executable path generation.
    getRootRelativePath doesn't return a valid runfiles path for
    external source files anymore after the recent external source
    root change. Also, it won't work for external labels either once
    the --nolegacy_external_runfiles becomes default. This fixes
    issue #12545.
  • d90ec67:
    Fix NPE when coveragerunner is not set on the toolchain.
  • 8555789:
    Fix the classic query package-loading cutoff optimization with
    external workspaces.
  • d113d74:
    Update turbine
  • 1489f0f:
    Support Scala3 .tasty files
  • 0d2d95c:
    Update to java_tools javac11 release 10.5 (#12647)
  • a9419f3:
    Fix common prefix for instrumentation filter
  • 84fadcf:
    Fix builds for filegroup targets with incompatible dependencies
  • e43825d:
    Revert "Remove
    --incompatible_blacklisted_protos_requires_proto_info"
  • 082d58d:
    Transform roots along with paths during output deletion.
  • e8835c1:
    AttributeContainer.Large now handles more than 127 attributes.
  • e1e8734:
    Add an env attribute to all test and binary rule classes
  • a87d7ed:
    Take no action to prefetch empty artifacts.
  • 3e969ff:
    Fix a couple of bugs with Incompatible Target Skipping
  • e667082:
    Pass --host_action_env to host options hostActionEnvironment
    attribute
  • 07400c0:
    Add --{no,}autodetect_server_javabase.
  • c833660:
    Only treat "env" and "env_inherit" attrs specially for native
    rules
  • 6a60b30:
    Fix coverage support when using default_java_toolchain. (#12801)
  • 4158a6f:
    Revert JacocoCoverage target to remote_java_tools_java_import
    and add a new target for remore_java_tools_filegroup. (#12813)
  • f6d30cf:
    Add windows_msvc back to conditions in bazel_tools.

Release Notes: https://blog.bazel.build/2021/01/19/bazel-4-0.html

This 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.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

3.7.2

17 Dec 17:38
Compare
Choose a tag to compare

Release 3.7.2 (2020-12-17)

Baseline: d0efd7b -3.7.1

Cherry picks:

  • a689d67:
    Use getRunfilesPath for run_under executable path generation.
    getRootRelativePath doesn't return a valid runfiles path for
    external source files anymore after the recent external source
    root change. Also, it won't work for external labels either once
    the --nolegacy_external_runfiles becomes default. This fixes
    issue #12545.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

3.7.1

24 Nov 18:06
Compare
Choose a tag to compare

Release 3.7.1 (2020-11-24)

Baseline: a991db7

Cherry picks:

  • 0d14ec8:
    Release 3.7.0 (2020-10-20)
  • d563446:
    Add -XDcompilePolicy=simple to default javacopts
  • 6336264:
    Update rules_cc reference to head of rules_cc as of 2020-11-11.
  • b3f9346:
    Bump rules_cc to support llvm 11.0.0 clang-cl compiler on Windows
  • e055b43:
    Remove accidentally re-added
    tools/jdk/java_toolchain_default.bzl.
  • 02838a1:
    Avoid the spawn cache if executing dynamically.

Important changes:

  • Update rules_cc to commit b1c40e1de81913a3c40e5948f78719c28152486d

This release contains contributions from many people at Google, as well as William A Rowe Jr.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

3.7.0

20 Oct 13:53
Compare
Choose a tag to compare

Release 3.7.0 (2020-10-20)

Baseline: a991db7

See release notes: https://blog.bazel.build/2020/10/20/bazel-3-7.html

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

3.6.0

06 Oct 14:11
Compare
Choose a tag to compare

Release 3.6.0 (2020-10-06)

Baseline: aa0d97c

Cherry picks:

  • 32c88da:
    Patch RuleContext for android_binary.deps to restore legacy
    behavior.
  • db9fc88:
    android_test also needs the legacy behavior in
    RuleContext.getPrerequisites.
  • 144d514:
    Update android_sdk_repository to create a valid, but useless,
    repository
  • bb11f92:
    Patch upb to fix build error with gcc 10
  • 9f06be4:
    Patch upb to fix build error with gcc 10 (third_party)
  • b67b75e:
    Fix issue where libtool_check_unique isn't found for sandbox
    builds

See release notes: https://blog.bazel.build/2020/10/06/bazel-3-6.html

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.

3.5.1

01 Oct 04:55
Compare
Choose a tag to compare

Release 3.5.1 (2020-10-01)

Baseline: 889bc0b

Cherry picks:

  • a7a0d48:
    Make no-op starlark transition not affect the output directory.
  • b37c51c:
    Add include_prefix and strip_include_prefix to cc_common.compile
  • f6ad35f:
    Delete --experimental_transparent_compression
  • 39bc97e:
    Remove --experimental_action_args
  • b970667:
    Stop needlessly parsing WORKSPACE files from external
    repositories.
  • e574d55:
    Allow hyphen char in workspace name
  • 9993785:
    Allow dot ('.') in workspace names.
  • b3ac8f6:
    Patch upb to fix build error with gcc 10
  • 26cbf77:
    Patch upb to fix build error with gcc 10 (third_party)
  • f1f9411:
    Fix incorrect rule class digest when creating rules through
    macros.
  • 6b591a7:
    Prepare for bazel to run with shrunken r8.jar
  • 7a11752:
    Don't run DexFileMergerTest as it is not supported for all
    r8.jar's

New features:

  • cc_common.compile support for include_prefix/strip_include_prefix

Important changes:

  • Removed the flag --experimental_transparent_compression.
  • Removed the flag --experimental_action_args.
  • Stop needlessly parsing WORKSPACE files from external
    repositories.
  • Dot ('.') is now allowed in workspace names. See
    #11837.

This release contains contributions from many people at Google, as well as David Ostrovsky.

Notice: Bazel installers contain binaries licensed under the GPLv2 with
Classpath exception. Those installers should always be redistributed along with
the source code.

Some versions of Bazel contain a bundled version of OpenJDK. The license of the
bundled OpenJDK and other open-source components can be displayed by running
the command bazel license. The vendor and version information of the bundled
OpenJDK can be displayed by running the command bazel info java-runtime.
The binaries and source-code of the bundled OpenJDK can be
downloaded from our mirror server.

Security: All our binaries are signed with our
public key 3D5919B448457EE0.