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(dependency_walker): don't get dependencies of non ROS packages #171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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.

3 participants