Skip to content

Conversation

Guillaumebeuzeboc
Copy link

When using the DependencyWalker and calling get_recursive_depends with the ros_packages_only to False, the DependencyWalker tries to get the dependencies of every dependency (even the non-ROS ones).
In order to get the dependencies of a package we must get the corresponding ROS package (for the XML etc). This is not possible for non ROS packages (like CMake, boost etc). Hence this causes a KeyError.

I simply added a check to verify if the package is a ROS package or not before trying to get its dependencies.

In case we consider non-ROS dep, we don't want to look for
the ROS dependencies of non ROS packages (ie: cmake)
@Guillaumebeuzeboc Guillaumebeuzeboc force-pushed the fix/don_t_get_dependencies_of_non_ros_packages branch from c742995 to 76a44b6 Compare April 6, 2023 16:20
@artivis
Copy link

artivis commented Apr 11, 2023

Hi @cottsay, could we get a workflow approval? Thanks.

@tfoote
Copy link
Member

tfoote commented Sep 10, 2025

Sorry for the long delay. This looks like a good change. I'm not sure why the Action workflows aren't triggering. Can you try to rebase this to trigger it?

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

Successfully merging this pull request may close these issues.

4 participants