chore(deps): update dependency bazel to v7.0.2 (#37) [](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [bazel](https://togithub.com/bazelbuild/bazel) | patch | `7.0.0` -> `7.0.2` | --- ### Release Notes <details> <summary>bazelbuild/bazel (bazel)</summary> ### [`v7.0.2`](https://togithub.com/bazelbuild/bazel/blob/HEAD/CHANGELOG.md#Release-702-2024-01-25) [Compare Source](https://togithub.com/bazelbuild/bazel/compare/7.0.1...7.0.2) Baseline: 2634a6ec8bef0d8eef9870b23befdddb3dbe0005 Release Notes: + Disregard WORKSPACE while verifying lockfile repo mapping entries in extension eval (#​21003) Acknowledgements: This release contains contributions from many people at Google, as well as bazel.build machine account, Xdng Yng. ### [`v7.0.1`](https://togithub.com/bazelbuild/bazel/blob/HEAD/CHANGELOG.md#Release-701-2024-01-18) [Compare Source](https://togithub.com/bazelbuild/bazel/compare/7.0.0...7.0.1) Baseline: d798ebde6c6394203a87b5f1a6b62ecfc3880991 Release Notes: + Consider MODULE.bazel for workspace detection in bazel.sh (#​20594) + Auto-create deploy jars for Bazel `java_test` targets if requested (#​20602) + `java_binary` wrapper should forward `restricted_to` (#​20611) + Mount user-specified bind mounts before Bazel's own magic. (#​20609) + Fix bootstrapped Bazel binary (#​20612) + Attempt to make main repo mapping inverse more efficient (#​20625) + Cherry-pick all presubmit.yml changes (#​20733) + Print interactive sandboxed shell command with `--sandbox_debug` (#​20734) + Fix two issues with --incompatible_sandbox_hermetic_tmp that manifested themselves when the output base was under /tmp (#​20718) + Let module extensions track calls to `Label()` (#​20750) + Add support for bind mounts under `/tmp` with hermetic tmp (#​20749) + Fixes for Bazel's own integration tests fail locally on Linux (#​20821) + Fix NPE in BzlmodRepoRuleFunction (#​20828) + Avoid emitting canonical labels into generated repos (#​20840) + Let .bzl files record their usages of repo mapping (#​20848) + Force output checking for incremental run commands without the bytes. (#​20881) + Retry binding to ipv6 localhost (#​20903) + Fix linker feature detection being performed on wrong linker (#​20901) + Fix singlejar resource mapping for external repositories (#​20904) Acknowledgements: This release contains contributions from many people at Google, as well as bazel.build machine account, David Ostrovsky, Fabian Meumertzheim, hvd, Siddhartha Bagaria, Tianyu Geng, Xdng Yng, Xùdōng Yáng. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/bazel-contrib/bazel_features). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Use this to determine the availability of a Bazel feature in your ruleset. It works under the hood by comparing the Bazel version against a known range in which the feature is available. Example usage:
load("@bazel_features//:features.bzl", "bazel_features") if bazel_features.toolchains.has_optional_toolchains: # Do something
The features.bzl file contains the list of features.
References to global Starlark symbols that do not exist cause load time errors, which means that their availability in Bazel cannot be tested via a regular feature. Instead, use bazel_features.globals.<symbol>, which is <symbol> if the symbol is available and None else.
See globals.bzl for the list of symbols that can be checked for in this way.