Skip to content

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Jan 13, 2025
1 parent e1f1f1b commit 7556383
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conans/model/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def get_transitive_requires(consumer, dependency):
# The build dependencies cannot be transitive in generators like CMakeDeps,
# even if users make them visible
pkg_deps = dependency.dependencies.filter({"direct": True, "build": False})
result = consumer.dependencies.transitive_requires(pkg_deps)
result = result.filter({"skip": False})
# First we filter the skipped dependencies
result = consumer.dependencies.filter({"skip": False})
# and we keep those that are really dependencies of the current package
result = result.transitive_requires(pkg_deps)
return result

0 comments on commit 7556383

Please sign in to comment.