diff --git a/scripts/deploy/tasks/build.py b/scripts/deploy/tasks/build.py index 64bfbfa385..0a504ab5ad 100644 --- a/scripts/deploy/tasks/build.py +++ b/scripts/deploy/tasks/build.py @@ -42,7 +42,7 @@ def _clean(self, connections: Group) -> GroupResult: :return: The results of the task. """ print_debug(f"Cleaning the following packages before building: {self._package}") - cmd_clean = f"cd {self._remote_workspace} && pixi run clean {self._package}" + cmd_clean = f"cd {self._remote_workspace} && pixi run --environment robot clean {self._package}" print_debug(f"Calling '{cmd_clean}'") try: @@ -62,7 +62,7 @@ def _build(self, connections: Group) -> GroupResult: :return: The results of the task. """ print_debug("Building packages") - cmd = f"cd {self._remote_workspace} && pixi run build {self._package}" + cmd = f"cd {self._remote_workspace} && pixi run --environment robot build {self._package}" print_debug(f"Calling '{cmd}'") try: diff --git a/scripts/deploy/tasks/launch.py b/scripts/deploy/tasks/launch.py index a7151f39c6..a4334d3767 100644 --- a/scripts/deploy/tasks/launch.py +++ b/scripts/deploy/tasks/launch.py @@ -55,7 +55,7 @@ def _check_nodes_already_running(self, connections: Group) -> GroupResult: :return: Results, with success if ROS 2 nodes are not already running """ print_debug("Checking if ROS 2 nodes are already running") - cmd = f"cd {self._remote_workspace} && pixi run ros2 node list -c" + cmd = f"cd {self._remote_workspace} && pixi run --environment robot ros2 node list -c" print_debug(f"Calling '{cmd}'") try: @@ -152,7 +152,7 @@ def _check_tmux_session_already_running(self, connections: Group) -> GroupResult def _launch_teamplayer(self, connections: Group) -> GroupResult: print_debug("Launching teamplayer") # Create tmux session - cmd = f"tmux new-session -d -s {self._tmux_session_name} && tmux send-keys -t {self._tmux_session_name} 'cd {self._remote_workspace} && pixi run ros2 launch bitbots_bringup teamplayer.launch record:=true tts:=false' Enter" + cmd = f"tmux new-session -d -s {self._tmux_session_name} && tmux send-keys -t {self._tmux_session_name} 'cd {self._remote_workspace} && pixi run --environment robot ros2 launch bitbots_bringup teamplayer.launch record:=true tts:=false' Enter" print_debug(f"Calling '{cmd}'") try: diff --git a/scripts/deploy/tasks/sync.py b/scripts/deploy/tasks/sync.py index 3f97bf0ec9..92e9cb0f0d 100644 --- a/scripts/deploy/tasks/sync.py +++ b/scripts/deploy/tasks/sync.py @@ -67,8 +67,8 @@ def _sync_single(connection: Connection) -> Result | None: print_error(f"Rsync command failed to execute on host {connection.host}") return - # Verify syncing succeeded and system architectures matches by running "pixi install" - cmd = f"cd {self._remote_workspace} && pixi install" + # Verify syncing succeeded and system architectures matches by running "pixi install --environment robot" + cmd = f"cd {self._remote_workspace} && pixi install --environment robot" print_debug("Installing dependencies on remote host to verify synchronization and architecture match.") print_debug(f"Calling '{cmd}' on: {connection.host}") verify_result = connection.run(cmd, hide=hide_output())