Closed jacobperron closed 2 years ago
hmm, looks like this patch doesn't work. I guess it only appeared to work locally because I forgot to clean my build folder.
Seems like there's just not a convenient way to write test components without installing them (probably something we could improve in rclcpp_components
). For example, rclcpp_components
works around the issue by not calling rclcpp_components_register_node
and mocking an ament index:
:slightly_frowning_face:
Removing the association with the export fixes the issue for me (c86d28e).
I'm not sure why the GitHub workflow is suddenly using Python 2.7... With Rpr passing, I'm going to merge this. I'll play around with the GitHub workflow separately.
IIUC, the GitHub workflow requires some changes to rosidl_parser to become available. It should hopefully resolve itself once a Rolling sync to testing happens: https://build.ros2.org/job/Rrel_sync-packages-to-testing_focal_amd64/
Otherwise, downstream targets will try to link against it. This can cause issues linking because the test component library is not exporting dependencies (e.g. test_msgs).