summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/local_cas.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/storage/local_cas.hpp')
-rw-r--r--src/buildtool/storage/local_cas.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buildtool/storage/local_cas.hpp b/src/buildtool/storage/local_cas.hpp
index 86bfc0e4..3097780a 100644
--- a/src/buildtool/storage/local_cas.hpp
+++ b/src/buildtool/storage/local_cas.hpp
@@ -149,8 +149,9 @@ class LocalCAS {
[[nodiscard]] auto BlobPathNoSync(bazel_re::Digest const& digest,
bool is_executable) const noexcept
-> std::optional<std::filesystem::path> {
- return is_executable ? cas_exec_.BlobPath(digest)
- : cas_file_.BlobPath(digest);
+ auto const a_digest = static_cast<ArtifactDigest>(digest);
+ return is_executable ? cas_exec_.BlobPath(a_digest)
+ : cas_file_.BlobPath(a_digest);
}
/// \brief Split a blob into chunks.
@@ -181,7 +182,8 @@ class LocalCAS {
/// \returns Path to the tree if found or nullopt otherwise.
[[nodiscard]] auto TreePath(bazel_re::Digest const& digest) const noexcept
-> std::optional<std::filesystem::path> {
- return cas_tree_.BlobPath(digest);
+ auto const a_digest = static_cast<ArtifactDigest>(digest);
+ return cas_tree_.BlobPath(a_digest);
}
/// \brief Split a tree into chunks.