chore(deps): update dependency bazel to v8 #481
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
bazelbuild/bazel (bazel)
v8.4.2Compare Source
v8.4.1Compare Source
v8.4.0Compare Source
v8.3.1Compare Source
Release 8.3.1 (2025-06-30)
Bazel 8.3.1 is a patch LTS release. It is fully backward compatible with Bazel 8.0 and contains selected changes by the Bazel community and Google engineers.
Refer to the full list of commits for more details.
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 commandbazel 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
3D5919B.v8.3.0Compare Source
v8.2.1Compare Source
v8.2.0Compare Source
v8.1.1Compare Source
v8.1.0Compare Source
v8.0.1Compare Source
v8.0.0Compare Source
v7.6.2Compare Source
v7.6.1Compare Source
v7.6.0Compare Source
v7.5.0Compare Source
v7.4.1Compare Source
v7.4.0Compare Source
Release 7.4.0 (2024-10-22)
Bazel 7.4.0 is a minor LTS release. It is fully backward compatible with Bazel 7.0 and contains selected changes by the Bazel community and Google engineers.
Configurability
External Deps
--ignore_dev_dependency. (Overrides in non-root modules are already ignored.) (#23550)single_version_overrideare now effective as long as the patch file lies in the root module. (#23757)override_repoandinject_repocan be used to override and inject repos in module extensions. (#23938)Remote Execution
C++ / Objective-C
cc_static_libraryrule produces a static library that bundles given targets and all their transitive dependencies. It has to be enabled via--experimental_cc_static_library. (#23392)Refer to the full list of commits for more details.
Acknowledgements:
This release contains contributions from many people at Google, as well as Alessandro Patti, Benjamin Peterson, Cornelius Riemenschneider, Daniel Wagner-Hall, David Sanderson, Dennis van den Berg, Fabian Meumertzheim, FaBrand, Fredrik Medley, George Gensure, Grzegorz Lukasik, Jamison Lahman, Jay Conrod, Jordan Mele, Keith Smiley, Laurent Le Brun, Lior Gorelik, Luis Padron, Michael Siegrist, Son Luong Ngoc, Tom Renn, and xinyu.wang.
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 commandbazel 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
3D5919B.v7.3.2Compare Source
v7.3.1Compare Source
v7.3.0Compare Source
v7.2.1Compare Source
v7.2.0Compare Source
Release 7.2.0 (2024-06-10)
Bazel 7.2.0 is a minor LTS release. It is fully backward compatible with Bazel 7.0 and contains selected changes by the Bazel community and Google engineers.
C++ / Objective-C
parse_headersfeature to validate header files with--process_headers_in_dependencies. (#22369)CLI
Configurability
//foo:barnow means "all configured targets with label//foo:bar" instead of "choose an arbitrary configured target with label//foo:bar". This is in line with cquery behavior. (#22135)aliastargets. (#22212)External Deps
--incompatible_disable_native_repo_rulesto disable native repo rule usage in WORKSPACE. All native repo rules now have a Starlark counterpart that can be used in both WORKSPACE and Bzlmod; see #22080 for more details. (#22203)MODULE.bazel.lockis now less likely to result in merge conflicts and is updated incrementally, with only new files downloaded from registries and existing ones taken from the repository cache (if configured). (#22351)include()directive toMODULE.bazelfiles, which allows the root module file to be divided into multiple segments. (#22204)--experimental_worker_for_repo_fetching=auto). (#22261, #22573)git_overridenow accepts thestrip_prefixarg and passes it to the underlyinggit_repositorycall. (#22137)printstatements in module files are now only executed for the root module and modules subject to non-registry overrides (e.g.local_path_override). (#22263)refreshvalue for--lockfile_modebehaves like theupdatemode, but additionally forces a refresh of mutable registry content (yanked versions and missing module versions) when switched to or from time to time while enabled. (#22371)bazel fetchnow more reliably fetches repos required for a build by triggering the analysis phase. (#21841)Labelinstances passed toprintorfailas positional arguments are now formatted with apparent repository names (optimized for human readability). (#22460)mctx.getenvnow correctly invalidate module extensions. (#22541)MODULE.bazel.lockfiles can be resolved automatically. See https://bazel.build/external/lockfile#automatic-resolution for the required setup. (#22650)Local Execution
--incompatible_sandbox_hermetic_tmp. (#22407)Remote Execution
--combined_report=lcovis now announced on the BES via the newCoverageReportevent. (#22327)--incompatible_modify_execution_info_additive, which causes the--modify_execution_infoflag to become additive when specified multiple times. (#22316)--experimental_remote_output_serviceand--experimental_remote_output_service_output_path_prefixfor remote output serviceStarlark / Build Language
minandmaxbuitins now allow akeycallback, similarly tosorted. (#21960)native.package_relative_labelcan now be used in rule initializers.Refer to the full list of commits for more details.
Acknowledgements:
This release contains contributions from many people at Google, as well as Brentley Jones, Cameron Martin, Daniel Wagner-Hall, Douglas Thor, Fabian Meumertzheim, George Gensure, Isaac Torres, Keith Smiley, Mark Elliot, Romain Chossart, Son Luong Ngoc, Spencer Putt, and Thomas Weischuh.
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 commandbazel 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
3D5919B.v7.1.2Compare Source
v7.1.1Compare Source
Release 7.1.1 (2024-03-21)
Baseline:
9b39ccaBazel 7.1.1 is a patch LTS release. It is fully backward compatible with Bazel 7.0 and contains selected changes by the Bazel community and Google engineers.
External Deps
bazel mod tidyfailure with no changes (#21662)bazel mod show_repo(#21694)bazel mod tidycrashes (#21700)bazel fetchusecqueryunder the hood (#21735)Local Execution
Performance
Java
ct.symwith non-hermeticjava_runtime(#21670)Acknowledgements:
This release contains contributions from many people at Google, as well as Fabian Meumertzheim.
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 commandbazel 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
3D5919B.v7.1.0Compare Source
Release 7.1.0 (2024-03-11)
Baseline:
8f4b115Bazel 7.1.0 is a minor LTS release. It is fully backward compatible with Bazel 7.0 and contains selected changes by the Bazel community and Google engineers.
Configurability
genrulenow supports settingstamp = -1to request conditional stamping (based on the value of the build's--stampflag). (#21512)External Deps
--enable_workspace(defaults toTrue) that allows the user to completely disable WORKSPACE logic when turned off. We plan to change the default toFalsewith Bazel 8. (#20365)repository_ctx.watch()andmodule_ctx.watch()allow changes to a path to trigger a refetch/re-evaluation of the repo/extension.repository_ctx.read()andrepository_ctx.template()gain a new watch parameter to allow them to watch for changes to the path in question.path.readdir()now watches for changes under the directory by default.repository_ctx.watch_tree()allows changes to anything transitively under a directory tree to trigger a repo refetch.repository_ctx.getenv, which allows Starlark repository rules to declare environment variable dependencies during the fetch, instead of upfront usingrepository_rule.environ. (#20944)--experimental_worker_for_repo_fetchingnow defaults toauto, which uses virtual threads from JDK 21 if it's available. This eliminates restarts during repo fetching. (#21082)bazel mod tidysubcommand automatically updatesuse_repocalls in theMODULE.bazelfile for extensions that usemodule_ctx.extension_metadata. (#21265)bazel mod dump_repo_mapping <canonical repo name>...returns the repository mappings of the given repositories in NDJSON. This information can be used by IDEs and Starlark language servers to resolve labels with--enable_bzlmod. (#21023)init_submodulesattribute togit_override. Registries now support thegit_repositorytype insource.json. (#21036)--enable_bzlmod. (#21149)bazel fetchby replacing query with cquery as underlying implementation (#21567, #13847).--noincompatible_enable_deprecated_label_apis. (#20977)native.repository_name()is deprecated in favor of the newnative.repo_name().Label.workspace_nameis deprecated in favor of the newLabel.repo_name.Label.relative()is deprecated in favor of the newLabel.same_package_label()alongside the existingnative.package_relative_label()andLabel().Performance
1024^2/1000^2).Python
Remote Execution
expiresfrom Credential Helpers. (#21429)Acknowledgements:
This release contains contributions from many people at Google, as well as Alessandro Patti, Artem V. Navrotskiy, Brentley Jones, Cameron Martin, Christian Scott, Cristin Donoso, David Ostrovsky, Ed Schouten, Fabian Meumertzheim, Gunnar Wagenknecht, Jordan Mele, Keith Smiley, Nikhil Kalige, Patrick Balestra, Rahul Butani, Ryan Beasley, Son Luong Ngoc, Sushain Cherivirala, thesayyn, Viktor Kustov, Yannic Bonenberger.
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 commandbazel 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
3D5919B.v7.0.2Compare Source
Release 7.0.2 (2024-01-25)
Baseline:
2634a6eBazel 7.0.2 is a patch LTS release. It is fully backward compatible with Bazel 7.0 and contains selected changes by the Bazel community and Google engineers.
External Deps
Acknowledgements:
This release contains contributions from people at Google.
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 commandbazel 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
3D5919B.v7.0.1Compare Source
Baseline:
d798ebdBazel 7.0.1 is a patch LTS release. It is fully backward compatible with Bazel 7.0 and contains selected changes by the Bazel community and Google engineers.
C++ / Objective-C
External Deps
Label()(#20750)Java
java_testtargets if requested (#20602)java_binarywrapper should forwardrestricted_to(#20611)Local Execution
--sandbox_debug(#20734)/tmpwith hermetic tmp (#20749)Remote Execution
Acknowledgements:
This release contains contributions from many people at Google, as well as David Ostrovsky, Fabian Meumertzheim, Siddhartha Bagaria, Tianyu Geng.
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 commandbazel 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
3D5919B.v7.0.0Compare Source