From 725167f7352989f0e97bbf483a40e9d78c47c3b0 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 4 Dec 2024 22:34:36 -0600 Subject: [PATCH] Specify --target-dir to install operation (#46) This already gets passed to the 'build' operation, but is missing for 'install' resulting in a 'targets' subdirectory in the source tree. --- colcon_cargo/task/cargo/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/colcon_cargo/task/cargo/build.py b/colcon_cargo/task/cargo/build.py index be42aaf..1402d04 100644 --- a/colcon_cargo/task/cargo/build.py +++ b/colcon_cargo/task/cargo/build.py @@ -126,6 +126,7 @@ def _install_cmd(self, cargo_args): '--locked', '--path', '.', '--root', args.install_base, + '--target-dir', args.build_base, ] + cargo_args # Identify if there are any binaries to install for the current package