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

Update package.xml #18

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Update package.xml #18

merged 1 commit into from
Mar 14, 2022

Conversation

nnmm
Copy link
Contributor

@nnmm nnmm commented Mar 7, 2022

I believe those three lines are required for every message package.

@nnmm
Copy link
Contributor Author

nnmm commented Mar 7, 2022

@audrow Could you review?

package.xml Outdated
@@ -15,6 +15,12 @@

<buildtool_depend>ament_cmake_core</buildtool_depend>

<build_depend>rosidl_default_generators</build_depend>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match other message packages (e.g. https://github.com/ros2/common_interfaces/blob/master/diagnostic_msgs/package.xml), this should be a <buildtool_depend>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. By the way, I copied this from the ROS 2 tutorial.

@esteve
Copy link
Member

esteve commented Mar 13, 2022

@audrow any chance this PR could be reviewed soon? If you don't have time, I can review it and merge it. Thanks.

@esteve
Copy link
Member

esteve commented Mar 13, 2022

@nnmm thanks for addressing my feedback. The last commit is missing your signature and it's making the DCO test to fail, can you sign it? Thanks.

I believe those three lines should be part of every package's `package.xml`.

Signed-off-by: Nikolai Morin <nnmmgit@gmail.com>
@nnmm
Copy link
Contributor Author

nnmm commented Mar 13, 2022

Ah yes, my bad. Thanks!

@esteve
Copy link
Member

esteve commented Mar 14, 2022

@audrow I've spoken with @mxgrey to make sure it's ok if I merge this PR, hope it's ok with you too

@esteve esteve merged commit f35d71b into ros2:master Mar 14, 2022
@clalancette
Copy link
Contributor

So this PR was merged without any CI being run on it, and it is causing us to not be able to build with circular dependencies. I'm going to open a revert PR, as right now we are totally dead in the water.

clalancette added a commit that referenced this pull request Mar 14, 2022
clalancette added a commit that referenced this pull request Mar 14, 2022
This reverts commit f35d71b.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@nnmm
Copy link
Contributor Author

nnmm commented Mar 14, 2022

@clalancette Sorry for causing so much trouble with this!

@clalancette
Copy link
Contributor

@clalancette Sorry for causing so much trouble with this!

No worries, this should be fixed by #19.

I think it is worthwhile to revisit what you were trying to accomplish here. You are entirely correct that for most interface packages, the package.xml lines you added are necessary. We never noticed/needed them here because we don't actually release this package onto the buildfarm, and so nothing complained.

I think the problem with the lines you added is that it introduces a circular dependency between this package and rosidl, which is what colcon was complaining about. What was the original problem that caused you to examine this and try to add those lines? Maybe we can find another way to fix it.

@nnmm
Copy link
Contributor Author

nnmm commented Mar 14, 2022

@clalancette The purpose was to use this package in ros2-rust/ros2_rust#80 for a demo executable. I was unable to generate Rust code for message definitions in this package and thought the missing dependencies might be the issue. It's probably not (only) the dependencies, but also the way CMakeLists.txt is written. We can always use a custom message package instead of test_interface_files however.

clalancette added a commit that referenced this pull request Mar 14, 2022
This reverts commit f35d71b.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@mxgrey
Copy link

mxgrey commented Mar 15, 2022

I'm sincerely sorry for the premature go-ahead. The changes seemed perfectly logical and consistent with all other message packages, so I never imagined there would be such an edge case. The green check marks in the GitHub workflow also fooled me into thinking that the CI was okay. I'll make sure I'm familiar with the procedure of running the full CI on a PR in the future 🤦

@esteve
Copy link
Member

esteve commented Mar 15, 2022

@clalancette so sorry about that, I had forgotten about the buildfarm and only looked at the GitHub CI. Thanks for the prompt fix!

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.

None yet

4 participants