Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misdetection on detect_cycles #544

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LWisteria
Copy link
Contributor

If depending children depend on the same package

packageA -> packageB -> packageD
         -> packageC -> packageD

Recent detect_cycles asserts when checking packageD from packageC.

But packageD is not on cycle. This PR fix this problem.

@wjwwood
Copy link
Contributor

wjwwood commented Aug 16, 2017

Thanks for proposing a fix. The CI is currently failing due to this change (imo) and it's not immediately clear to me why this fixes the issue. Can you add a test for this case so it's clear what you're describing is the problem and this fixes it? There are already tests for the dependency graph checker, so you should just be able to extend it:

https://github.com/ros-infrastructure/rosdep/blob/master/test/test_rosdep_dependency_graph.py

@LWisteria
Copy link
Contributor Author

OK, I will try to add tests!

@imcelroy
Copy link

imcelroy commented Oct 26, 2022

Hi @LWisteria @wjwwood, we are currently having this issue as well, and it is very critical for us. I can fix/add a unit test for this, and it would be great if we can get this merged asap.

@LWisteria would you be able to add write access to this PR for me please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants