From d1293c8f9147375fa70d5dce1c0d38988300bc95 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 26 Jul 2024 16:27:46 +0200 Subject: Use RemoteContext in install_cas --- src/buildtool/main/install_cas.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/buildtool/main/install_cas.cpp') diff --git a/src/buildtool/main/install_cas.cpp b/src/buildtool/main/install_cas.cpp index 024d22c7..1f5873e1 100644 --- a/src/buildtool/main/install_cas.cpp +++ b/src/buildtool/main/install_cas.cpp @@ -18,7 +18,6 @@ #include "src/buildtool/compatibility/compatibility.hpp" #include "src/buildtool/crypto/hash_function.hpp" -#include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" #ifndef BOOTSTRAP_BUILD_TOOL @@ -77,9 +76,11 @@ namespace { #ifndef BOOTSTRAP_BUILD_TOOL auto FetchAndInstallArtifacts(ApiBundle const& apis, - FetchArguments const& clargs) -> bool { + FetchArguments const& clargs, + RemoteContext const& remote_context) -> bool { auto object_info = ObjectInfoFromLiberalString( - clargs.object_id, apis.remote_config.remote_address.has_value()); + clargs.object_id, + remote_context.exec_config->remote_address.has_value()); if (clargs.remember) { if (not apis.remote->ParallelRetrieveToCas( -- cgit v1.2.3