mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-30 01:41:21 +00:00
168 lines
6.6 KiB
Markdown
Generated
168 lines
6.6 KiB
Markdown
Generated
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
|
|
|
|
Macros for loading dependencies and registering toolchains
|
|
|
|
<a id="aspect_bazel_lib_dependencies"></a>
|
|
|
|
## aspect_bazel_lib_dependencies
|
|
|
|
<pre>
|
|
aspect_bazel_lib_dependencies()
|
|
</pre>
|
|
|
|
Load dependencies required by aspect rules
|
|
|
|
|
|
|
|
<a id="aspect_bazel_lib_register_toolchains"></a>
|
|
|
|
## aspect_bazel_lib_register_toolchains
|
|
|
|
<pre>
|
|
aspect_bazel_lib_register_toolchains()
|
|
</pre>
|
|
|
|
Register all bazel-lib toolchains at their default versions.
|
|
|
|
To be more selective about which toolchains and versions to register,
|
|
call the individual toolchain registration macros.
|
|
|
|
|
|
|
|
<a id="register_copy_directory_toolchains"></a>
|
|
|
|
## register_copy_directory_toolchains
|
|
|
|
<pre>
|
|
register_copy_directory_toolchains(<a href="#register_copy_directory_toolchains-name">name</a>, <a href="#register_copy_directory_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers copy_directory toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_copy_directory_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"copy_directory"</code> |
|
|
| <a id="register_copy_directory_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|
|
<a id="register_copy_to_directory_toolchains"></a>
|
|
|
|
## register_copy_to_directory_toolchains
|
|
|
|
<pre>
|
|
register_copy_to_directory_toolchains(<a href="#register_copy_to_directory_toolchains-name">name</a>, <a href="#register_copy_to_directory_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers copy_to_directory toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_copy_to_directory_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"copy_to_directory"</code> |
|
|
| <a id="register_copy_to_directory_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|
|
<a id="register_coreutils_toolchains"></a>
|
|
|
|
## register_coreutils_toolchains
|
|
|
|
<pre>
|
|
register_coreutils_toolchains(<a href="#register_coreutils_toolchains-name">name</a>, <a href="#register_coreutils_toolchains-version">version</a>, <a href="#register_coreutils_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers coreutils toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_coreutils_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"coreutils"</code> |
|
|
| <a id="register_coreutils_toolchains-version"></a>version | the version of coreutils to execute (see https://github.com/uutils/coreutils/releases) | <code>"0.0.23"</code> |
|
|
| <a id="register_coreutils_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|
|
<a id="register_expand_template_toolchains"></a>
|
|
|
|
## register_expand_template_toolchains
|
|
|
|
<pre>
|
|
register_expand_template_toolchains(<a href="#register_expand_template_toolchains-name">name</a>, <a href="#register_expand_template_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers expand_template toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_expand_template_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"expand_template"</code> |
|
|
| <a id="register_expand_template_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|
|
<a id="register_jq_toolchains"></a>
|
|
|
|
## register_jq_toolchains
|
|
|
|
<pre>
|
|
register_jq_toolchains(<a href="#register_jq_toolchains-name">name</a>, <a href="#register_jq_toolchains-version">version</a>, <a href="#register_jq_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers jq toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_jq_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"jq"</code> |
|
|
| <a id="register_jq_toolchains-version"></a>version | the version of jq to execute (see https://github.com/stedolan/jq/releases) | <code>"1.7"</code> |
|
|
| <a id="register_jq_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|
|
<a id="register_tar_toolchains"></a>
|
|
|
|
## register_tar_toolchains
|
|
|
|
<pre>
|
|
register_tar_toolchains(<a href="#register_tar_toolchains-name">name</a>, <a href="#register_tar_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers bsdtar toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_tar_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"bsd_tar"</code> |
|
|
| <a id="register_tar_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|
|
<a id="register_yq_toolchains"></a>
|
|
|
|
## register_yq_toolchains
|
|
|
|
<pre>
|
|
register_yq_toolchains(<a href="#register_yq_toolchains-name">name</a>, <a href="#register_yq_toolchains-version">version</a>, <a href="#register_yq_toolchains-register">register</a>)
|
|
</pre>
|
|
|
|
Registers yq toolchain and repositories
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="register_yq_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | <code>"yq"</code> |
|
|
| <a id="register_yq_toolchains-version"></a>version | the version of yq to execute (see https://github.com/mikefarah/yq/releases) | <code>"4.25.2"</code> |
|
|
| <a id="register_yq_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | <code>True</code> |
|
|
|
|
|