-
Notifications
You must be signed in to change notification settings - Fork 46
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 the default value for create_hook_set_value() #549
Fix the default value for create_hook_set_value() #549
Conversation
The default value is supposed to be the current prefix only, COLCON_CURRENT_PREFIX, and not the concatenated list of all prefixes, COLCON_PREFIX_PATH.
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #549 +/- ##
==========================================
- Coverage 82.01% 81.93% -0.09%
==========================================
Files 62 65 +3
Lines 3642 3753 +111
Branches 705 724 +19
==========================================
+ Hits 2987 3075 +88
- Misses 603 622 +19
- Partials 52 56 +4
☔ View full report in Codecov by Sentry. |
Sorry this has gone unnoticed for so long. I think your analysis is correct, and something needs to change here. At first I convinced myself that the existing code was established far too long ago for us to change the behavior now, even if it isn't doing what Given that the current implementation is inconsistent, I think we can go ahead and change it to the behavior needed to support I'll ask, however, that you clarify the corresponding documentation for the parameter in |
…int.create_hook_set_value() for the case an empty string is passed
Something like 61724cd? |
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 for your patience!
The default value is supposed to be the current prefix only,
COLCON_CURRENT_PREFIX
, and not the concatenated list of all prefixes,COLCON_PREFIX_PATH
. This fixes a bug(?) introduced in #304.As originally commented at colcon/colcon-ros#95 (comment):