forked from aspect-build/rules_js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.bzl
More file actions
18 lines (15 loc) · 772 Bytes
/
Copy pathdocs.bzl
File metadata and controls
18 lines (15 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Wrapper around stardoc_with_diff_test that only runs the test if Bazel 7 or greater is being used.
"""
load("@aspect_bazel_lib//lib:docs.bzl", _stardoc_with_diff_test = "stardoc_with_diff_test", _update_docs = "update_docs")
load("@aspect_bazel_lib//lib:utils.bzl", "is_bazel_7_or_greater")
def stardoc_with_diff_test(name, **kwargs):
"""
Wrapper around stardoc_with_diff_test that only runs the test if Bazel 7 or greater is being used.
"""
if is_bazel_7_or_greater():
_stardoc_with_diff_test(name, renderer = "//tools:stardoc_renderer", **kwargs)
else:
# buildifier: disable=print
print("WARNING: Skipping stardoc_with_diff_test for %s because it requires Bazel 7 or greater" % name)
update_docs = _update_docs