Skip to content

Add data support in ament_index_share_files - #418

Merged
frneer merged 2 commits into
RobotLocomotion:mainfrom
frneer:frn/add_data_to_ament_index
Apr 17, 2026
Merged

Add data support in ament_index_share_files#418
frneer merged 2 commits into
RobotLocomotion:mainfrom
frneer:frn/add_data_to_ament_index

Conversation

@frneer

@frneer frneer commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator

This patch adds a data attribute, to support runtime files such as meshes that in bazel targets usually live in data rather than srcs.


This change is Reviewable

@frneer

frneer commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

@calderpg-tri if you have time to take a quick look at it I'd appreciate it.

@frneer
frneer requested a review from calderpg-tri April 9, 2026 19:49

@julianadrianheine julianadrianheine left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: just left one small non-blocking nit/question.

@julianadrianheine made 2 comments.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on calderpg-tri and frneer).


bazel_ros2_rules/lib/ament_index.bzl line 102 at r1 (raw file):

            allow_files = True,
        ),
        data = attr.label_list(

nit: since both data and srcs are being handled exactly the same, it might be good to add a small note explaining what should go to each argument?

@frneer
frneer force-pushed the frn/add_data_to_ament_index branch from b817aac to 074b473 Compare April 16, 2026 13:01

@frneer frneer left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice question, you convinced me to take a different approach. PTAL

@frneer made 2 comments.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on calderpg-tri and julianadrianheine).


bazel_ros2_rules/lib/ament_index.bzl line 102 at r1 (raw file):

Previously, julianadrianheine (julianheine) wrote…

nit: since both data and srcs are being handled exactly the same, it might be good to add a small note explaining what should go to each argument?

Actually we don't strictly need to have a separate data attribute expose, including the runfiles should do it. Even though having data is the standard in bazel in this case I agree is more confusing than helpful.

@frneer
frneer requested review from imcmahon-tri and removed request for calderpg-tri April 16, 2026 13:10

@imcmahon-tri imcmahon-tri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:LGTM: as well. Thanks!

@imcmahon-tri reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on imcmahon-tri and julianadrianheine).

@frneer frneer left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frneer resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on frneer).

@hidmic

hidmic commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

Double stamped 😅

@frneer
frneer merged commit debaf76 into RobotLocomotion:main Apr 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants