-
Notifications
You must be signed in to change notification settings - Fork 74
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
Feature to show deprecation warning for msg/srv #76
base: kinetic-devel
Are you sure you want to change the base?
Conversation
cmake/genmsg-extras.cmake.em
Outdated
list(APPEND ${PROJECT_NAME}_DEPRECATED_MESSAGE_FILES ${FILES_W_PATH}) | ||
else() | ||
list(APPEND ${PROJECT_NAME}_MESSAGE_FILES ${FILES_W_PATH}) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using two different lists doesn't seem to be a good data structure for this. As a consequence you have to change code which shouldn't need to be touched.
Instead I would suggest to keep ${PROJECT_NAME}_MESSAGE_FILES
as it is and have a second map which additionally stores the ones which are deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Updated.
Looks great, I dig it! +1 |
Close #67
Why?
I needed to remove or migrate some messages/services from packages, and I'd like to show deprecation warning for users. This PR enables that feature.
Usage
gencpp example: ros/gencpp#35