If a package installs the marker file to multiple locations including “share/ament_index/resource_index/packages/”, and the ament_index path is not the last destination, colcon build may incorrectly warn that the package does not explicitly install a marker in the package index.
This issue originates in get_data_files_mapping, where the variable mapping is overwritten when the same file is configured for installation to multiple places, retaining only the last destination designated by the "data_files" argument in setup.py.
If a package installs the marker file to multiple locations including “share/ament_index/resource_index/packages/”, and the ament_index path is not the last destination, colcon build may incorrectly warn that the package does not explicitly install a marker in the package index.
This issue originates in get_data_files_mapping, where the variable mapping is overwritten when the same file is configured for installation to multiple places, retaining only the last destination designated by the "data_files" argument in setup.py.