From 49e3f391142edb0ab924745f6aad74666eb6606e Mon Sep 17 00:00:00 2001 From: PerseoGI Date: Mon, 9 Dec 2024 11:40:55 +0100 Subject: [PATCH] Update remote and improve logging --- conan/internal/runner/ssh.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conan/internal/runner/ssh.py b/conan/internal/runner/ssh.py index 06cf82db2dc..2ecaf3106a5 100644 --- a/conan/internal/runner/ssh.py +++ b/conan/internal/runner/ssh.py @@ -41,6 +41,7 @@ def __init__( self.remote_conn = RemoteConnection(self.client, self.logger) def run(self): + self.logger.status(f"Copying profiles and recipe to host...", fg=Color.BRIGHT_MAGENTA) self._ensure_runner_environment() self._copy_profiles() self._copy_working_conanfile_path() @@ -137,6 +138,9 @@ def _ensure_runner_environment(self): self.logger.debug(f"Remote Conan version mismatch: {remote_conan_version} != {requested_conan_version}") self._install_conan_remotely(python_command, requested_conan_version) + if not self.remote_conn.run_command(f"{conan_cmd} remote update conancenter --url='https://center2.conan.io'").success: + self.logger.error(f"Unable to update conancenter remote: {result.stderr}") + self._create_remote_conan_wrapper(remote_conan_home, remote_folder, conan_cmd) def _install_conan_remotely(self, python_command: str, version: str):