Skip to main content
Version: 1.24.x

repositories

Macros for loading dependencies and registering toolchains

Macros and Functions

aspect_bazel_lib_dependencies

Load dependencies required by aspect rules

Example usage (generated):

load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies(
)

override_local_config_platform

Optional. Default: False

override the @local_config_platform repository with one that adds stardoc support for loading constraints.bzl.

Should be set in repositories that load @aspect_bazel_lib copy actions and also generate stardoc.

register_copy_directory_toolchains

Registers copy_directory toolchain and repositories

Example usage (generated):

load("@aspect_bazel_lib//lib:repositories.bzl", "register_copy_directory_toolchains")

register_copy_directory_toolchains(
)

name

Optional. Default: "copy_directory"

override the prefix for the generated toolchain repositories

register

Optional. Default: True

whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension

register_copy_to_directory_toolchains

Registers copy_to_directory toolchain and repositories

Example usage (generated):

load("@aspect_bazel_lib//lib:repositories.bzl", "register_copy_to_directory_toolchains")

register_copy_to_directory_toolchains(
)

name

Optional. Default: "copy_to_directory"

override the prefix for the generated toolchain repositories

register

Optional. Default: True

whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension

register_coreutils_toolchains

Registers coreutils toolchain and repositories

Example usage (generated):

load("@aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")

register_coreutils_toolchains(
)

name

Optional. Default: "coreutils"

override the prefix for the generated toolchain repositories

version

Optional. Default: "0.0.16"

the version of coreutils to execute (see https://github.com/uutils/coreutils/releases)

register

Optional. Default: True

whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension

register_jq_toolchains

Registers jq toolchain and repositories

Example usage (generated):

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")

register_jq_toolchains(
)

name

Optional. Default: "jq"

override the prefix for the generated toolchain repositories

version

Optional. Default: "1.6"

the version of jq to execute (see https://github.com/stedolan/jq/releases)

register

Optional. Default: True

whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension

register_yq_toolchains

Registers yq toolchain and repositories

Example usage (generated):

load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")

register_yq_toolchains(
)

name

Optional. Default: "yq"

override the prefix for the generated toolchain repositories

version

Optional. Default: "4.25.2"

the version of yq to execute (see https://github.com/mikefarah/yq/releases)

register

Optional. Default: True

whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension