Skip to content

v3.1.1

Choose a tag to compare

@github-actions github-actions released this 17 Jan 14:20
· 7 commits to main since this release
8a8fcd6

Using Bzlmod

Add to your MODULE.bazel file:

bazel_dep(name = "bazel_lib", version = "3.1.1")

Using WORKSPACE (deprecated)

Paste this snippet into your WORKSPACE file:

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

http_archive(
    name = "bazel_lib",
    sha256 = "06cbcd5b98af3f530d20b505a89fb6761f09950b780cdd7726df42ee84b49d04",
    strip_prefix = "bazel-lib-3.1.1",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.1.1/bazel-lib-v3.1.1.tar.gz",
)

load("@bazel_lib//lib:repositories.bzl", "bazel_lib_dependencies", "bazel_lib_register_toolchains")

# Required bazel-lib dependencies

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

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

  • refactor: shorter patch for release by @alexeagle in #1226
  • fix: Using "current_working_dir" instead of "runfiles_dir" at write_source_files by @tokup in #1232
  • fix: Windows batch file line endings to avoid cmd parsing bug by @rdesgroppes in #1222

New Contributors

Full Changelog: v3.1.0...v3.1.1