Public API

Macros and Functions

glob_directories

Example usage (generated)

load("@aspect_bazel_lib//lib:utils.bzl", "glob_directories")

glob_directories(
    include = [],
)

include

kwargs


is_external_label

Returns True if the given Label (or stringy version of a label) represents a target outside of the workspace

Example usage (generated)

load("@aspect_bazel_lib//lib:utils.bzl", "is_external_label")

is_external_label(
    # a string or label
    param = "",
)

param

a string or label


path_to_workspace_root

Retuns the path to the workspace root under bazel

Example usage (generated)

load("@aspect_bazel_lib//lib:utils.bzl", "path_to_workspace_root")

path_to_workspace_root(
)

propagate_well_known_tags

Returns a list of tags filtered from the input set that only contains the ones that are considered "well known"

These are listed in Bazel's documentation: https://docs.bazel.build/versions/main/test-encyclopedia.html#tag-conventions https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes

Example usage (generated)

load("@aspect_bazel_lib//lib:utils.bzl", "propagate_well_known_tags")

propagate_well_known_tags(
)

tags

List of tags to filter


to_label

Converts a string to a Label. If Label is supplied, the same label is returned.

Example usage (generated)

load("@aspect_bazel_lib//lib:utils.bzl", "to_label")

to_label(
    # a string representing a label or a Label
    param = "",
)

param

a string representing a label or a Label