-
Notifications
You must be signed in to change notification settings - Fork 26
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
Option of using a command-line paramter within a condition attribute of dependency tag #104
Comments
The behavior is described in the ROS REP 149.
Maybe I don't understand what exactly you are asking for. What is the difference between a CLI parameter (like Imo the latter is clearly preferred since it works out-of-the-box while the former needs custom support from the CLI. |
@dirk-thomas I think one advantage of having the command-line option is that it could be added as part of a mixin. The use-case is that we have |
@dirk-thomas I guess @jpsamper2009 answered with the exact use-case we have. Having an option to set the condition variable via mixin will get rid of setting the same named variable again to skip the dependencies. FOO=1 colcon build --mixin foo vs colcon build --mixin foo |
@dirk-thomas Any thoughts on the feature/use-case? Maybe we don't even need a command-line option in |
That sounds like the better approach to me. I am not sure how to add it into the current yaml format without a collision though. Also I am not sure if the mixin is being processed early enough so that changing the environment takes effect for what you want to use it for - parse the manifest information. |
@dirk-thomas My guess is that we would need something like a |
Based on the previous two comments I thought the direction would be to specify the information about the environment in the mixin - but not as a regular command line argument - but as a separate kind of information - since The environment modification would be applied to
The parsing of the manifest files happens during package identification (https://colcon.readthedocs.io/en/released/developer/extension-point.html#packageidentificationextensionpoint) which occurs before the package selection. The actual parsing functionality is provided by catkin_pkg which is invoked from
|
@dirk-thomas Sorry for the confusion, when you said, "I am not sure if the mixin is being processed early enough so that changing the environment takes effect for what you want to use it for - parse the manifest information." I assumed you were saying that the |
For now, we can only use env-variables within a expression of condition attribute for a dependency tag in
Package.xml
as below:Is it possible to have a feature where we can pass in this variable as a command-line parameter instead of an environment variable?
Also, let me know if this is not the correct repo for this issue!
The text was updated successfully, but these errors were encountered: