Skip to content

Cannot use these rules within a module #15

@blaizard

Description

@blaizard

There are several reason that seems to prevent me to use this module within another module (not the root module).

1.If this dep is instantiated in more than one module, the repository named "doxygen" will be created twice, resulting in a name conflict:

                doxygen_repository(
Error in repository_rule: A repo named doxygen is already generated by this module extension at /home/me/.cache/bazel/_bazel_me/a3aa740f2f5594e9ea9a176330f7930a/external/rules_doxygen+/extensions.bzl:268:27
  1. If I try to instanciate it only in a non-root module, it will complain that the repository @doxygen is not visible from @@//.
(17:58:17) ERROR: no such package '@@[unknown repo 'doxygen' requested from @@]//': The repository '@@[unknown repo 'doxygen' requested from @@]' could not be resolved: No repository visible as '@doxygen' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration

Tested with bazel 8.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions