Using Bzlmod with Bazel 6:
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_bazel_lib", version = "2.11.0")
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 = "c96db69dd2714a37f3298338a1a42b27e3a2696c3b36dd4441b9bf7a1a12bee0",
strip_prefix = "bazel-lib-2.11.0",
url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.11.0/bazel-lib-v2.11.0.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()
# Register bazel-lib toolchains
aspect_bazel_lib_register_toolchains()
What's Changed
- chore(tar): update to latest bsdtar-prebuilt by @alexeagle in #1009
- feat(run_binary): add resource_set attribute by @jbedard in #1024
- fix: Rename targets to work with symbolic macros by @dzbarsky in #1020
- chore(deps): update dependency rules_go to v0.51.0 by @renovate in #1012
- chore(deps): update dependency io_bazel_rules_go to v0.52.0 by @renovate in #1011
- fix(deps): update module github.com/bazelbuild/rules_go to v0.52.0 by @renovate in #1013
- chore(deps): update dependency rules_go to v0.52.0 by @renovate in #1026
- chore: Move
--nolegacy_external_runfiles
to version specific rc files by @hofbi in #1017 - fix(deps): update module golang.org/x/sys to v0.29.0 by @renovate in #1023
Full Changelog: v2.10.0...v2.11.0