summaryrefslogtreecommitdiff
path: root/src/buildtool/common/artifact_description.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/common/artifact_description.hpp')
-rw-r--r--src/buildtool/common/artifact_description.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/common/artifact_description.hpp b/src/buildtool/common/artifact_description.hpp
index 53d3adcc..c63a2dec 100644
--- a/src/buildtool/common/artifact_description.hpp
+++ b/src/buildtool/common/artifact_description.hpp
@@ -23,6 +23,7 @@
#include "src/buildtool/common/artifact.hpp"
#include "src/buildtool/common/artifact_digest.hpp"
+#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/file_system/object_type.hpp"
class ArtifactDescription final {
@@ -65,7 +66,8 @@ class ArtifactDescription final {
return std::holds_alternative<Tree>(data_);
}
- [[nodiscard]] static auto FromJson(nlohmann::json const& json) noexcept
+ [[nodiscard]] static auto FromJson(HashFunction::Type hash_type,
+ nlohmann::json const& json) noexcept
-> std::optional<ArtifactDescription>;
[[nodiscard]] auto ToJson() const noexcept -> nlohmann::json;