Skip to content

v2.22.4

Choose a tag to compare

@github-actions github-actions released this 09 Jan 19:28
· 60 commits to main since this release

Using Bzlmod with Bazel 6:

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "aspect_bazel_lib", version = "2.22.4")

Read more about bzlmod: https://blog.aspect.dev/bzlmod

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "680a607da3e495b0c5668c5d53e9e58bdfbdf431d150489ff29cfd852fd755af",
    strip_prefix = "bazel-lib-2.22.4",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.22.4/bazel-lib-v2.22.4.tar.gz",
)

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

# Required bazel-lib dependencies

aspect_bazel_lib_dependencies()

# Required rules_shell dependencies
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains")

rules_shell_dependencies()

rules_shell_toolchains()

# Register bazel-lib toolchains

aspect_bazel_lib_register_toolchains()

# Create the host platform repository transitively required by bazel-lib

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@platforms//host:extension.bzl", "host_platform_repo")

maybe(
    host_platform_repo,
    name = "host_platform",
)

What's Changed

  • ci: add support for 2.x branch in CI workflow by @alexeagle in #1231
  • fix(2.x): alias copy_directory_bin_action to bazel_lib by @jbedard in #1229

Full Changelog: v2.22.3...v2.22.4