Skip to content

Commit ab5ccc3

Browse files
authored
Add feature check for UTF-8 Stardoc input. (#92)
bazelbuild/bazel#24935 changes the observable behavior of starlark_doc_extract, and consumers need to adapt. Work towards bazelbuild/bazel#374 Work towards phst/rules_elisp#818
1 parent ae5ab5c commit ab5ccc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

features.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ _docs = struct(
4040
# The stardoc output changed in https://github.com/bazelbuild/bazel/commit/bd1c3af2ea14e81268e940d2b8ba5ad00c3f08d7
4141
# This may be required for "diff tests" that assert on the generated API docs.
4242
kwargs_name_with_double_star = ge("8.0.0-pre.20240603.2"),
43+
# Starting with Bazel 8.1.0, all strings exported to Stardoc (docstrings,
44+
# rule names, etc.) are interpreted as UTF-8. Previously, they were
45+
# interpreted as Latin-1, resulting in double-encoding if the underlying
46+
# Starlark file was actually UTF-8-encoded. See
47+
# https://github.com/bazelbuild/bazel/pull/24935.
48+
utf8_enabled = ge("8.1.0"),
4349
)
4450

4551
_external_deps = struct(

0 commit comments

Comments
 (0)