diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-09 17:27:41 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-11 14:52:07 +0200 |
commit | 64a121ca3fc6b16f9c6595ab59441f730c889e01 (patch) | |
tree | 2c2e2fae3b559f8d08a73a740db95322bb715aaf /src/buildtool/main/install_cas.hpp | |
parent | 8e652e5d7b6fbe0abf07df62814c655759564247 (diff) | |
download | justbuild-64a121ca3fc6b16f9c6595ab59441f730c889e01.tar.gz |
Use ArtifactDigestFactory in install_cas
Diffstat (limited to 'src/buildtool/main/install_cas.hpp')
-rw-r--r-- | src/buildtool/main/install_cas.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 <optional> #include <string> #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<Artifact::ObjectInfo>; #ifndef BOOTSTRAP_BUILD_TOOL [[nodiscard]] auto FetchAndInstallArtifacts(ApiBundle const& apis, |