chore(deps): update dependency bazel to v5.3.2 #6
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:
5.0.0
->5.3.2
Release Notes
bazelbuild/bazel
v5.3.2
Compare Source
Incompatible changes:
Removing java_common.javac_jar Starlark call.
native.existing_rule now returns select values in a form that is
accepted by rule instantiation. This is a breaking API change
because there is some code that relies on the precise type
returned, including brittle workarounds for this bug specifically
and insufficiently flexible workarounds for other issues with the
intersection of select and native.existing_rule.
flipped incompatible_use_toolchain_resolution_for_java_rules, see
#7849
Query output=xml/proto/location for source files will now show
the location of line 1 of the source file (as the new default)
instead of its location in the BUILD file.
Specifying a target pattern underneath a directory specified by
.bazelignore will now emit a warning, not an error.
Query
--order_output=auto
will now sort lexicographically.However, when
somepath
is used as a top level function (e.g.query 'somepath(a, b)'
), it will continue to output independency order. If you do not want the lexicographical output
ordering, specify another
--order_output
value (no
,deps
orfull
) based on what ordering you require.In the build event stream,
BuildMetrics.TargetMetrics.targets_loaded is no longer populated.
Its value was always mostly meaningless.
BuildMetrics.TargetMetrics.targets_configured and
BuildMetrics.ActionSummary.actions_created now include configured
aspect data.
//visibility:legacy_public has been removed.
Flip and remove incompatible_dont_collect_so_artifacts
https://github.com/bazelbuild/bazel/issues/130433043).
Remove flag --experimental_no_product_name_out_symlink: it is
always true.
The Starlark method generate_dsym in objc fragment has
been deleted. Please use the equivalent apple_generate_dsym in
cpp
fragment instead.
Native libraries in data attribute are not collected. See
https://github.com/bazelbuild/bazel/issues/135503550 for details
Enforce the
--profile
path to be absolute.Enforce the --memory_profile path to be absolute.
JavaToolchainInfo.jvm_opt returns Depset instead of a list.
--apple_sdk has been deleted. It is a no-op.
--bep_publish_used_heap_size_post_build is now a no-op and will
be deleted in a future release. Use --memory_profile=/dev/null
instead.
Flipped --incompatible_disallow_resource_jars (see
https://github.com/bazelbuild/bazel/issues/132213221).
Remove --bep_publish_used_heap_size_post_build
JSON trace profile: rename counter names.
Removed --action_graph from the dump command.
Remove
--{experimental_,}json_trace_compression
option.Remove
--experimental_profile_cpu_usage
.flipped --incompatible_java_common_parameters (see #12373)
GrpcRemoteDownloader only includes relevant headers instead of
sending all credentials.
Closes #16439.
New features:
map_each if explicitly enabled via allow_closure.
--bes_header
flag to pass extra headers to the BES server.Important changes:
Flag --incompatible_objc_compile_info_migration is removed. See
#10854.
Flag --incompatible_objc_compile_info_migration is removed. See
#10854.
Flag --incompatible_objc_compile_info_migration is removed. See
#10854.
none
PAIR=cmita
The --incompatible_load_python_rules_from_bzl flag is now a no-op.
Filter all (instead of just C++) source files for coverage output
according to --instrumentation_filter and
--instrument_test_targets.
The
--incompatible_disable_native_apple_binary_rule
flag hasbeen added which disables the native
apple_binary
rule. Userswho need to use
apple_binary
directly (if they cannot use oneof the more specific Apple rules) should load it from
https://github.com/bazelbuild/rules_apple.
The Android rules' --use_singlejar_apkbuilder is now a no-op.
SingleJar will always be used to build APKs.
dict.setdefault(key, ...) now fails if dict is frozen, even if it
already contains key. This is an incompatible API change.
Flag --incompatible_objc_provider_remove_compile_info is removed.
See #11359.
Starlark now permits def statements to be nested (closures).
native.existing_rule now returns select values in a form that is
accepted by rule instantiation. This is a breaking API change,
though the fallout is expected to be small.
Starlark now supports lambda (anonymous function) expressions.
The "test" and "coverage" commands no longer return 3 when a
test action fails because of a system error. Instead, the exit
code
reflects the type of system error.
The undocumented ctx.expand feature no longer exists.
Make --legacy_dynamic_scheduler a no-op flag.
Multiplex persistent workers can now use the JSON protocol.
native.existing_rule now returns a mutable list, not a tuple, for
a list-valued attributes. This is an incompatible API change.
Roll back change to have native.existing_rules use list instead
of tuple.
BEP includes test suite expansions.
config_setting now honors
visibility
attribute (and defaults to//visibility:public
)Change the MultiArchSplitTransitionProvider to be based on
platform type + CPU instead of fixed "ios_" + cpu.
enforce config_setting visibility. See
https://github.com/bazelbuild/bazel/issues/129322932 for details.
add a flag to build v4 signature file
Added _direct_source_jars output group to Java related targets.
END_PUBLIC
pkg_deb is no longer part of @bazel_tools//build_defs/pkg:pkg.bzl.
Use https://github.com/bazelbuild/rules_pkg/tree/main/pkg instead
Allowing the lipo operations to be conditional in the
linkMultiArchBinary API for Apple binaries. Single architecture
slices are now returned through AppleBinaryOutput and the
Starlark API.
Release restriction for "-" in the package name for Python
sources. Now
py_binary
andpy_test
targets can have mainsource file with "-" in the path.
Users consuming BEP may assume that a
named_set_of_files
eventwill
appear before any event referencing that
named_set
by ID. Thisallows consumers
to process the files for such events (eg.
TargetCompleted
)immediately.
BEP includes all files from successful actions in requested
output groups.
Previously, an output group's files were excluded if any file in
the output group
was not produced due to a failing action. Users can expect BEP
output to be larger
for failed builds.
In BEP, TargetComplete.output_group has a new field
incomplete
indicating that the file_sets field is missing one or more
declared artifacts
whose generating actions failed.
The flag
--toolchain_resolution_debug
now takes a regexargument, which is used to check which toolchain types should
have debug info printed. You may use
.*
as an argument to keepthe current behavior of debugging every toolchain type.
Add runfiles.merge_all() for merging a sequence of runfiles
objects.
runfiles.merge() and merge_all() now respect
--nested_set_depth_limit.
If you hit the depth limit because you were calling merge() in a
loop, use
merge_all() on a sequence of runfiles objects instead.
Bazel will no longer create a bazel-out symlink if
--symlink_prefix is specified: the directory pointed to via the
bazel-out symlink is accessible via ${symlink_prefix}-out. If
this causes problems for you, set
--experimental_no_product_name_out_symlink=false in your builds
and file an issue.
Updates worker protocol with cancellation fields, and adds
experimental_worker_cancellation flag to control cancellation.
Simplify build failure output by always using
NNN arguments
.trim_test_configuration now defaults to on
Mark genrule.srcs as a source attribute for coverage.
When using --allow_analysis_failures (for example, via
bazel-skylib's
analysistest with
expect_failure = True
), analysis-timefailures in aspect
implementation functions will now be propagated and saved in
AnalysisFailureInfo, just like analysis-time failures in rules.
cquery --noimplicit_deps now correctly filters out resolved
cc_toolchains
Sign apks deterministically.
Make gcov optional in cc_toolchain tools.
If --experimental_prefer_mutual_xcode is passed, Bazel will
choose the local default (instead of the newest mutually
available version) if it's available both locally and remotely.
Remove java_lite_proto_library.strict_deps attribute.
Generate proguard configurations deterministically.
Adds a new flag,
--incompatible_enable_cc_test_feature
whichswitches from the use of build variables to the feature of the
same name.
Dropped fragile xz support from built in pkg_tar. Users requiring
xz
compression should switch to bazlebuild/rules_pkg.
If all strategies of one branch (the local or remote execution
branch) of the
dynamic
strategy fail to even accept (via theresponse they give from
canExec
) the action,dynamic
will nowtry to see if the other branch can accept it. (Trying to run it
and it failing will still cause a failure if it was the first
result, this is about strategies claiming they can't even try the
action)
Add
disable_annotation_processing
option tojava_common.compile
, which disables any annotation processorspassed to
plugins
or inexported_plugins
ofdeps
Remove obsolete --incompatible_prohibit_aapt1
The minimum Android build tools version for the Android rules is
now 30.0.0
Adds --experimental_reuse_sandbox_directories flag to reuse
already-created non-worker sandboxes with cleanup.
--experimental_force_gc_after_build is deprecated and will be
removed soon. Use --bep_publish_used_heap_size_post_build instead
Forward coverage-instrumented files from non-tool dependencies by
default.
The used_heap_size_post_build field in BEP is populated when the
--memory_profile flag is set
--run_validations defaults to true.
Consider label_keyed_string_dict attributes when gathering
instrumented files for coverage.
Remove flag
--experimental_forward_instrumented_files_info_by_default, now
that this behavior is the default.
When using MemoryProfiler with multiple GCs via the
--memory_profile_stable_heap_parameters flag, we do a more
precise calculation of heap used at the end of the build. This
will generally result in lower values.
--bep_publish_used_heap_size_post_build is deprecated. Use
--memory_profile=/dev/null instead.
Disable --all_incompatible_changes flag.
The --all_incompatible_changes flag is now a no-op
The
--toolchain_resolution_debug
flag now accepts regexesmatching targets, as well as toolchain types, when choosing what
debug messages to print.
Adds --experimental_existing_rules_immutable_view flag to make the
native.existing_rule and native.existing_rules functions more
efficient by
returning immutable, lightweight dict-like view objects instead
of mutable
dicts.
Add support to length-delimited protos as undeclared output
annotations []
The deprecated "relative_to_caller_repository" parameter has been
removed from the Label constructor.
The toolchain transition is now enabled for all toolchains.
incompatible_disable_depset_items is flipped
The --experimental_existing_rules_immutable_view flag has been
renamed to --incompatible_existing_rules_immutable_view
Bazel no longer supports Java 8. From this version on, the
minimum required JDK is OpenJDK 11.
alias() can now select() directly on constraint_value()
Fixes https://github.com/bazelbuild/bazel/issues/13047.
Closes #14310.
Fixed an issue where Bazel could erroneously report a test passes
in coverage mode without actually running the test.
Make protocOpts() publicly accessible.
Add coverage configuration fragment, used to expose
output_generator label.
Bazel now no longer includes system headers on macOS in coverage
reports (#14969).
Closes #14971.
Starlark test rules can use the new inherited_environment
parameter of testing.TestEnvironment to specify environment
variables
whose values should be inherited from the shell environment.
Closes #14849.
none
RELNOTES:none
Enable merging permissions during Android manifest merging with
the --merge_android_manifest_permissions flag.
Added new register_{execution_platforms,toolchains} directives to
the MODULE.bazel file, to replace the
{execution_platforms,toolchains}_to_register attributes on the
module() directive.
Add support for fetching RPC credentials from credential helper.
Progress on https://github.com/bazelbuild/bazel/issues/15856
Closes #15947.
cquery
's new output mode--output=files
lists the output files of the targets matching the query. It
takes the current value of
--output_groups
into account.Closes #15552.
Fix for desugaring failure on Bazel+Android+Windows build
scenario.
This release contains contributions from many people at Google, as well as Adam Liddell, Alex Eagle, Alex Eagle, amberdixon, Andreas Fuchs, Andrew Katson, Anthony Pratti, Artem V. Navrotskiy, Austin Schuh, Benedek Thaler, Benjamin Lee, Benjamin Peterson, Benjamin Peterson, Ben Lee, Brandon Jacklyn, Brentley Jones, bromano, Cameron Mulhern, Chenchu Kolli, Christopher Peterson Sauer, Christopher Sauer, Cristian Hancila, Dan Bamikiya, Dan Fleming, Daniel McCarney, Daniel Wagner-Hall, Danny Wolf, Dave MacLachlan, Dave Nicponski, David Cummings, David, David Ostrovsky, Delwin9999, Denys Kurylenko, Dmitry Ivankov, dorranh, ecngtng, Ed Schouten, Eitan Adler, Elliotte Rusty Harold, Emil Kattainen, erenon, Eric Cousineau, Ethan Steinberg, Fabian Meumertzheim, Fabian Meumertzheim, FaBrand, Felix Ehrenpfort, Finn Ball, frazze-jobb, Fredrik Medley, Garrett Holmstrom, Gautam Korlam, George Gensure, goodspark, Gowroji Sunil, Greg Estren, Grzegorz Lukasik, Grzegorz Lukasik, hvadehra, Ikko Ashimine, Jesse Chan, Joe Lencioni, Johannes Abt, John Laxson, Jonathan Schear, Juh-Roch, Justus Tumacder, Keith Smiley, kekxv, Kevin Hogeland, kshyanashree, Lauri Peltonen, Liu Liu, Lszl Csomor, m, Marc Zych, Mark Karpov, Masoud Koleini, Mathieu Olivari, Matt Mackay, Mauricio Galindo, Max Liu, Menny Even Danan, menny, Michael Chinen, Nathaniel Brough, Nick Korostelev, Niek Peeters, Nikolay Shelukhin, Niyas Sait, Noa Resare, odisseus, Oleh Stolyar, Olek Wojnar, Oliver Eikemeier, Olle Lundberg, Omar Zuniga, oquenchil, Paul Gschwendtner, Peter Kasting, Peter Mounce, Philipp Schrader, Pras Velagapudi, Qais Patankar, Rabi Shanker Guha, Rai, ron-stripe, Ryan Beasley, Ryan Beasley, samhowes, Samuel Giddins, Sebastian Olsson, Sergey Tyurin, Steve Siano, steve-the-bayesian, Stiopa Koltsov, susinmotion, tatiana, Tetsuo Kiso, Thaler Benedek, Thi Doan, Thi Doãn, Thi Don, Thomas Carmet, ThomasCJY, Timothe Peignier, Timothy Klim, Tobi, Torgil Svensson, Trustin Lee, Ulf Adams, Ulrik Falklof, Uri Baghin, Vaidas Pilkauskas, Vertexwahn, wisechengyi, Wren Turkal, Xavier Bonaventura, Xùdōng Yáng, Yannic Bonenberger, Yannic Bonenberger, Yannic, Yannic, Yury Evtikhov, Yuval Kaplan, Yuval K, Yuval, Zhongpeng Lin, [zqzzq].
v5.3.1
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.