Skip to content

Commit

Permalink
Update remote and improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
perseoGI committed Dec 27, 2024
1 parent 5e21b34 commit 49e3f39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conan/internal/runner/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 49e3f39

Please sign in to comment.