Skip to content

Commit 0cff4c8

Browse files
julianadrianheineFrancisco Rossi
authored andcommitted
Handle non-executable targets in _ament_index_share_files_impl
1 parent f7804b4 commit 0cff4c8

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
@@ -74,6 +74,8 @@ def _ament_index_share_files_impl(ctx):
7474
root_symlinks[symlink_path] = file
7575

7676
for executable in ctx.attr.executables:
77+
if executable.files_to_run.executable == None:
78+
fail("{} is not an executable target".format(executable.label))
7779
symlink_path = paths.join(
7880
ctx.attr.prefix,
7981
"lib",

0 commit comments

Comments
 (0)