chore(deps): update dependency bazel_skylib to v1.6.1 (#55) [](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | bazel_skylib | bazel_dep | minor | `1.5.0` -> `1.6.1` | | [bazel_skylib](https://togithub.com/bazelbuild/bazel-skylib) | http_archive | minor | `1.5.0` -> `1.6.1` | --- ### Release Notes <details> <summary>bazelbuild/bazel-skylib (bazel_skylib)</summary> ### [`v1.6.1`](https://togithub.com/bazelbuild/bazel-skylib/compare/1.6.0...1.6.1) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.6.0...1.6.1) ### [`v1.6.0`](https://togithub.com/bazelbuild/bazel-skylib/releases/tag/1.6.0) [Compare Source](https://togithub.com/bazelbuild/bazel-skylib/compare/1.5.0...1.6.0) Release 1.6.0 #### What's Changed - Add helper functions for module extensions as `modules` by [@​fmeum](https://togithub.com/fmeum) in [https://github.com/bazelbuild/bazel-skylib/pull/457](https://togithub.com/bazelbuild/bazel-skylib/pull/457) - Make `out` on `native_binary` optional by [@​tpudlik](https://togithub.com/tpudlik) in [https://github.com/bazelbuild/bazel-skylib/pull/474](https://togithub.com/bazelbuild/bazel-skylib/pull/474) - Remove outdated rules_cc dependency [@​cpsauer](https://togithub.com/cpsauer) in [https://github.com/bazelbuild/bazel-skylib/pull/476](https://togithub.com/bazelbuild/bazel-skylib/pull/476) - Add toolchains argument to unittests.make by [@​jylinv0](https://togithub.com/jylinv0) in [https://github.com/bazelbuild/bazel-skylib/pull/483](https://togithub.com/bazelbuild/bazel-skylib/pull/483) - Allow `bzl_library` to depend on non-`bzl_library` targets by [@​Wyverald](https://togithub.com/Wyverald) in [https://github.com/bazelbuild/bazel-skylib/pull/495](https://togithub.com/bazelbuild/bazel-skylib/pull/495) #### New Contributors - [@​jylinv0](https://togithub.com/jylinv0) made their first contribution in [https://github.com/bazelbuild/bazel-skylib/pull/483](https://togithub.com/bazelbuild/bazel-skylib/pull/483) - [@​tpudlik](https://togithub.com/tpudlik) made their first contribution in [https://github.com/bazelbuild/bazel-skylib/pull/474](https://togithub.com/bazelbuild/bazel-skylib/pull/474) **Full Changelog**: https://github.com/bazelbuild/bazel-skylib/compare/1.5.0...1.6.0 <!--## MODULE.bazel setup ```starlark bazel_dep(name = "bazel_skylib", version = "1.6.0") ### If the Gazelle plugin is needed: bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.6.0", dev_dependency = True) ```--> #### WORKSPACE setup load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", sha256 = "41449d7c7372d2e270e8504dfab09ee974325b0b40fdd98172c7fbe257b8bcc9" urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.6.0/bazel-skylib-1.6.0.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.6.0/bazel-skylib-1.6.0.tar.gz", ], ) load("@​bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() ***Additional WORKSPACE setup for the Gazelle plugin*** ```starlark http_archive( name = "bazel_skylib_gazelle_plugin", sha256 = "8700f9204f3b0a32851cdf56c63b8d8d4fcf93b96707c590d1de8d84cf07ee7d", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.6.0/bazel-skylib-gazelle-plugin-1.6.0.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.6.0/bazel-skylib-gazelle-plugin-1.6.0.tar.gz", ], ) load("@​bazel_skylib_gazelle_plugin//:workspace.bzl", "bazel_skylib_gazelle_plugin_workspace") bazel_skylib_gazelle_plugin_workspace() load("@​bazel_skylib_gazelle_plugin//:setup.bzl", "bazel_skylib_gazelle_plugin_setup") bazel_skylib_gazelle_plugin_setup() ``` **Using the rules** See [the source](https://togithub.com/bazelbuild/bazel-skylib/tree/1.6.0). </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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> 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.