Skip to content

Commit

Permalink
Fix duplicate detection. (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Jun 9, 2023
1 parent 03f0f64 commit 6db24d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/160-dependency-collection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "When collecting collection dependencies for the ``lint-collection-docs`` subcommand, a bug prevented the duplicate detection to work (https://github.com/ansible-community/antsibull-docs/pull/160)."
1 change: 1 addition & 0 deletions src/antsibull_docs/lint_plugin_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ def lint_collection_plugin_docs(
dependency = dependencies.pop(0)
if dependency in done_dependencies:
continue
done_dependencies.add(dependency)
dep_namespace, dep_name = dependency.split(".", 2)
dep_collection_path = collection_finder.find(dep_namespace, dep_name)
if dep_collection_path:
Expand Down

0 comments on commit 6db24d0

Please sign in to comment.