Skip to content

Commit a2db436

Browse files
committed
Load sh_test from @rules_shell for Bazel 9 compatibility
`native.sh_test` was removed in Bazel 9; load it explicitly from `@rules_shell//shell:sh_test.bzl` (already a dependency in MODULE.bazel at rules_shell 0.3.0) so the CI presubmit can load `test/BUILD`.
1 parent 2aaf1e7 commit a2db436

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/static_stdlib_tests.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
"""Tests that `--features=swift.static_stdlib` actually links the Swift runtime statically."""
1010

11+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1112
load("//test/rules:static_stdlib_link_test.bzl", "with_static_stdlib")
1213

1314
def static_stdlib_test_suite(name, tags = []):
@@ -29,7 +30,7 @@ def static_stdlib_test_suite(name, tags = []):
2930
target = "//test/fixtures/static_stdlib:bin",
3031
)
3132

32-
native.sh_test(
33+
sh_test(
3334
name = "{}_not_dynamically_linked".format(name),
3435
srcs = ["//test/rules:verify_static_stdlib.sh"],
3536
args = ["$(rootpath :{}_bin)".format(name)],

0 commit comments

Comments
 (0)