It would be nice to add some flexibility in dependencies. While package.xml is used for sequencing builds, it's currently unsuitable for generating a list of concrete package dependencies since some packages are optional.
@dirk-thomas
Please feel free to describe how colcon should determine that based on the available information from the package manifests.
...
Group dependencies are not necessarily optional. There are cases where you e.g. need at least one of package from the group in order to work properly. That semantic isn't encoded in the manifest because the community wasn't able to reach a consensus when this was proposed (I don't have a link to that discussion at hand).
Therefore I don't think an option to just ignore group dependencies is sufficient.
Originally posted by @dirk-thomas in ros2/rmw_dds_common#16 (comment)