From fcf40f8efdd87faab9e1ba00c4d8b6e3d8652c3d Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 13 Sep 2024 11:07:20 +0200 Subject: [PATCH] add note_dependency --- sphinx_needs/directives/needimport.py | 2 ++ 1 file changed, 2 insertions(+) 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"]