2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-28 21:33:48 +00:00
bazel-lib/lib/private/fail_with_message_test.bzl
2022-02-07 10:00:35 -08:00

13 lines
291 B
Python

"Test rule that always fails and prints a message"
def _fail_with_message_test_impl(ctx):
fail(ctx.attr.message)
fail_with_message_test = rule(
attrs = {
"message": attr.string(mandatory = True),
},
implementation = _fail_with_message_test_impl,
test = True,
)