Skip to content

Commit 9d1baf6

Browse files
committed
fix: avoid constant name collision
1 parent 49c63be commit 9d1baf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,19 +281,19 @@ def _doxygen_extension_impl(ctx):
281281
executables = executables,
282282
)
283283

284-
_doxygen_configuration = tag_class(attrs = {
284+
_doxygen_configuration_tag = tag_class(attrs = {
285285
"version": attr.string(doc = "The version of doxygen to use. If set to `0.0.0`, the doxygen executable will be assumed to be available from the PATH. Mutually exclusive with `executable`."),
286286
"sha256": attr.string(doc = "The sha256 hash of the doxygen archive. If not specified, an all-zero hash will be used."),
287287
"platform": attr.string(doc = "The target platform for the doxygen binary. Available options are (windows, mac, mac-arm, linux, linux-arm). If not specified, it will select the platform it is currently running on."),
288288
"executable": attr.label(doc = "The doxygen executable to use. If set, no download will take place and the provided doxygen executable will be used. Mutually exclusive with `version`."),
289289
})
290-
_doxygen_repository = tag_class(attrs = {
290+
_doxygen_repository_tag = tag_class(attrs = {
291291
"name": attr.string(doc = "The name of the repository the extension will create. Useful if you don't use 'rules_doxygen' as a dev_dependency, since it will avoid name collision for module depending on yours. Must be the same for all configurations. Defaults to 'doxygen'.", mandatory = True),
292292
})
293293

294294
doxygen_extension = module_extension(
295295
implementation = _doxygen_extension_impl,
296-
tag_classes = {"configuration": _doxygen_configuration, "repository": _doxygen_repository},
296+
tag_classes = {"configuration": _doxygen_configuration_tag, "repository": _doxygen_repository_tag},
297297
doc = """
298298
Module extension for declaring the doxygen configurations to use.
299299

0 commit comments

Comments
 (0)