Fix `update_docs` with Bazel 7 and stardoc 0.6.0

This commit is contained in:
Fabian Meumertzheim 2023-08-09 21:29:48 +02:00 committed by Derek Cormier
parent e549125016
commit 682d6f2345
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def update_docs(name = "update", **kwargs):
update_files = {}
for r in native.existing_rules().values():
if r["kind"] == "stardoc":
if r["generator_function"] == "stardoc_with_diff_test" and r["generator_name"] == r["name"]:
for tag in r["tags"]:
if tag.startswith("package:"):
stardoc_name = r["name"]