Using Bzlmod with Bazel 7-8
- Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_ruby", version = "0.21.1")Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_ruby", version = "0.21.1")Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Skylib is a dependency, remove if you already have it.
http_archive(
name = "bazel_skylib",
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
],
)
http_archive(
name = "rules_ruby",
sha256 = "305d299056a586e24022651eccfe172ea1754121ea79c637e29fc1c42704ae3c",
strip_prefix = "rules_ruby-0.21.1",
url = "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.21.1/rules_ruby-v0.21.1.tar.gz",
)What's Changed
Full Changelog: v0.21.0...v0.21.1