Skip to content

Commit bee451b

Browse files
Handle non-executable targets in _ament_index_share_files_impl
1 parent 4dde64a commit bee451b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bazel_ros2_rules/lib/ament_index.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def _ament_index_share_files_impl(ctx):
7171
root_symlinks[symlink_path] = file
7272

7373
for executable in ctx.attr.executables:
74+
if executable.files_to_run.executable == None:
75+
fail("{} is not an executable target".format(executable.label))
7476
symlink_path = paths.join(
7577
ctx.attr.prefix,
7678
"lib",

0 commit comments

Comments
 (0)