From 64a121ca3fc6b16f9c6595ab59441f730c889e01 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 9 Sep 2024 17:27:41 +0200 Subject: Use ArtifactDigestFactory in install_cas --- src/buildtool/main/install_cas.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/buildtool/main/install_cas.hpp') diff --git a/src/buildtool/main/install_cas.hpp b/src/buildtool/main/install_cas.hpp index 97324569..e7a42ae4 100644 --- a/src/buildtool/main/install_cas.hpp +++ b/src/buildtool/main/install_cas.hpp @@ -15,9 +15,11 @@ #ifndef INCLUDED_SRC_BUILDTOOL_MAIN_INSTALL_CAS_HPP #define INCLUDED_SRC_BUILDTOOL_MAIN_INSTALL_CAS_HPP +#include #include #include "src/buildtool/common/artifact.hpp" +#include "src/buildtool/crypto/hash_function.hpp" #ifndef BOOTSTRAP_BUILD_TOOL #include "src/buildtool/common/cli.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" @@ -25,9 +27,10 @@ #endif /// \note Method is public for use also in tests. -[[nodiscard]] auto ObjectInfoFromLiberalString(std::string const& s, +[[nodiscard]] auto ObjectInfoFromLiberalString(HashFunction::Type hash_type, + std::string const& s, bool has_remote) noexcept - -> Artifact::ObjectInfo; + -> std::optional; #ifndef BOOTSTRAP_BUILD_TOOL [[nodiscard]] auto FetchAndInstallArtifacts(ApiBundle const& apis, -- cgit v1.2.3