This repository contains the Bazel ruleset for shell scripts.
rules_shell
v0.4.1
published 1 week ago
14 stars
6 forks
4 watchers
Maintained byYun Peng,Fabian Meumertzheim
v0.4.1
May 6, 2025
Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_shell", version = "0.4.1")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_shell",
sha256 = "bc61ef94facc78e20a645726f64756e5e285a045037c7a61f65af2941f4c25e1",
strip_prefix = "rules_shell-0.4.1",
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.4.1/rules_shell-v0.4.1.tar.gz",
)
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains")
rules_shell_dependencies()
rules_shell_toolchains()
What's Changed
- Test with Bazel 8 by @fmeum in https://github.com/bazelbuild/rules_shell/pull/23
- Configure coverage helpers for test exec group by @fmeum in https://github.com/bazelbuild/rules_shell/pull/26
Full Changelog: https://github.com/bazelbuild/rules_shell/compare/v0.4.0...v0.4.1
Deps:
- bazel_features · version 1.18.0
- bazel_skylib · version 1.6.1
- platforms · version 0.0.10
Assets:
- rules_shell-v0.4.1.tar.gz · 22 KB · 26,516 downloads