diff --git a/sphinx_needs/directives/needimport.py b/sphinx_needs/directives/needimport.py index 19b8ea5be..b389a4b6b 100644 --- a/sphinx_needs/directives/needimport.py +++ b/sphinx_needs/directives/needimport.py @@ -141,6 +141,8 @@ def run(self) -> Sequence[nodes.Node]: needs_config.import_cache_size, ) + self.env.note_dependency(correct_need_import_path) + if version is None: try: version = needs_import_list["current_version"]