Skip to content

Commit dc26ba5

Browse files
Make workspace relocatable by using relative subdirectory. (#34)
Fix #33 According to colcon-core, the subdirectory parametre should be a relative path to use the COLCON_CURRENT_PREFIX and make the workspace relocatable.
1 parent 7d90af6 commit dc26ba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • colcon_ros_cargo/task/ament_cargo

colcon_ros_cargo/task/ament_cargo/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _prepare(self, env, additional_hooks):
8383
Path(self.context.args.install_base),
8484
self.context.pkg.name,
8585
'AMENT_PREFIX_PATH',
86-
self.context.args.install_base,
86+
'',
8787
mode='prepend')
8888

8989
def _build_cmd(self, cargo_args):

0 commit comments

Comments
 (0)