Update dependency bazel to v7.4.1
Created by: renovate[bot]
This PR contains the following updates:
Package | Update | Change |
---|---|---|
bazel | minor |
7.1.2 -> 7.4.1
|
Release Notes
bazelbuild/bazel (bazel)
v7.4.1
Release Notes:
v7.4.0
[!NOTE] If you are looking for rolling releases, please visit this page.
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
- Bazel now supports all characters in the rlocation and target paths of runfiles and can be run from workspaces with a space in their full path. (#23912)
External Deps
- Overrides in the root MODULE.bazel file are now ignored with
--ignore_dev_dependency
. (Overrides in non-root modules are already ignored.) (#23550) - Repository rules instantiated in the same module extensions can now refer to each other by their extension-specified names in label attributes. (#23585)
- Bazel fetch and vendor command now supports --target_pattern_file for specifying target patterns. (#23663)
- Patches to the module file in
single_version_override
are now effective as long as the patch file lies in the root module. (#23757) -
override_repo
andinject_repo
can be used to override and inject repos in module extensions. (#23938) - When using vendor mode, the vendor dir is automatically ignored while package loading (#23919)
Remote Execution
- Improve progress message in case there are no actions in flight, and display explicitly "no actions running" in that case. (#23357)
- Added support for using a remote cache that evicts blobs and doesn't have AC integrity check (e.g. HTTP cache). (#23561)
- Implemented disk cache garbage collection (#23833)
C++ / Objective-C
- The new
cc_static_library
rule produces a static library that bundles given targets and all their transitive dependencies. It has to be enabled via--experimental_cc_static_library
. (#23392) - Add conlyopts and cxxopts attributes to cc rules (#23904)
- Auto-load with language specific rules that're removed from Bazel with --incompatible_autoload_externally (#23906)
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 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 3D5919B
.
v7.3.2
Release Notes:
v7.3.1
Release Notes:
v7.3.0
Release Notes:
v7.2.1
Release Notes:
v7.2.0
Release Notes:
Configurability:
+ aquery: `//foo:bar` now 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)
+ Added a new flag `--incompatible_disable_native_repo_rules` to 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)
+ Starlark command-line flags can now be referred to through `alias` targets. (#​22212)
ExternalDeps:
+ bzlmod `git_repository` now accepts the `strip_prefix` arg and passes it to the underlying `git_repository` call. (#​22137)
+ Added a new `include()` directive to `MODULE.bazel` files, which allows the root module file to be divided into multiple segments. (#​22204)
+ Fixed certain deadlocks in repo fetching with worker threads (`--experimental_worker_for_repo_fetching=auto`). (#​22261)
+ `print` statements in module files are now only executed for the root module and modules subject to non-registry overrides (e.g. `local_path_override`). (#​22263)
+ The new `refresh` value for `--lockfile_mode` behaves like the `update` mode, 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)
+ `Label` instances passed to `print` or `fail` as positional arguments are now formatted with apparent repository names (optimized for human readability). (#​22460)
+ Changes to environment variables read via `getenv` now correctly invalidate module extensions. (#​22541)
+ Git merge conflicts in `MODULE.bazel.lock` files can be resolved automatically. See https://bazel.build/external/lockfile#automatic-resolution for the required setup. (#​22650)
OSS:
+ Bazel on Linux and BSD now respects the XDG_CACHE_HOME environment variable instead of assuming that ~/.cache/bazel is writable. (#​21817)
Performance:
+ Paths in the Linux sandbox are now again identical to those outside the sandbox, even with `--incompatible_sandbox_hermetic_tmp`. (#​22407)
Remote-Exec:
+ The combined coverage report produced via `--combined_report=lcov` is now announced on the BES via the new `CoverageReport` event. (#​22327)
+ The compact and full execution logs now contain start times for spawns (if available). (#​22341)
Rules-CPP:
+ The default Unix C++ toolchain now supports the `parse_headers` feature to validate header files with `--process_headers_in_dependencies`. (#​22369)
Starlark-Interpreter:
+ Starlark `min` and `max` buitins now allow a `key` callback, similarly to `sorted`. (#​21960)
Acknowledgements:
This release contains contributions from many people at Google, as well as bazel.build machine account, Brentley Jones, Cameron Martin, Daniel Wagner-Hall, Douglas Thor, Fabian Meumertzheim, George Gensure, hvd, Isaac Torres, Keith Smiley, Mark Elliot, oquenchil, Romain Chossart, Son Luong Ngoc, Spencer Putt, Thomas Weischuh, Xdng Yng, Xùdōng Yáng, Zheng Wei Tan.
Configuration
-
If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.