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

Stop using ament_target_dependencies. (backport #86) #87

Merged
merged 1 commit into from
May 27, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 27, 2024

We are slowly moving away from its use, so stop using it here. While we are in here, notice some things that makes this easier:

  1. pluginlib is absolutely a public dependency of this package. Because of that, we can just rely on the PUBLIC export of it, and we don't need to link it into every test. But that also means we don't need some of the forward-declarations that were in loader_fwds.hpp, as we can just get those through the header file.
  2. republish.hpp doesn't really need to exist at all. That's because it is only a header file, but the implementation is in an executable. Thus, no downstream could ever use it. So just remove the file and put the declaration straight into the cpp file.
    This is an automatic backport of pull request Stop using ament_target_dependencies. #86 done by Mergify.

We are slowly moving away from its use, so stop using it
here.  While we are in here, notice some things that makes
this easier:

1. pluginlib is absolutely a public dependency of this package.
Because of that, we can just rely on the PUBLIC export of it,
and we don't need to link it into every test.  But that also means
we don't need some of the forward-declarations that were in
loader_fwds.hpp, as we can just get those through the header file.
2. republish.hpp doesn't really need to exist at all.  That's
because it is only a header file, but the implementation is in
an executable.  Thus, no downstream could ever use it.  So just
remove the file and put the declaration straight into the cpp file.

Signed-off-by: Chris Lalancette <[email protected]>
(cherry picked from commit 8e13f6c)
Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit b5767d1 into jazzy May 27, 2024
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/jazzy/pr-86 branch May 27, 2024 11:32
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.

2 participants