Skip to content

Commit 75e7714

Browse files
committed
add rules_shell as dev dep as bazel 8 no longer have native.sh_binary
1 parent 279d20c commit 75e7714

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ bazel_dep(name = "rules_license", version = "0.0.7")
1919
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc")
2020
bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)
2121
bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
22+
bazel_dep(name = "rules_shell", version = "0.1.1", dev_dependency = True, repo_name = "rules_shell")
2223

2324
# Needed for bazelci and for building distribution tarballs.
2425
# If using an unreleased version of bazel_skylib via git_override, apply

docs/private/stardoc_with_diff_test.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ https://github.com/aspect-build/bazel-lib/blob/main/docs/docs.md
2626
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
2727
load("@bazel_skylib//rules:write_file.bzl", "write_file")
2828
load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
29+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
2930

3031
def stardoc_with_diff_test(
3132
name,
@@ -104,7 +105,7 @@ def update_docs(
104105
content = content,
105106
)
106107

107-
native.sh_binary(
108+
sh_binary(
108109
name = name,
109110
srcs = [update_script],
110111
data = data,

0 commit comments

Comments
 (0)