From c7d30a299982178974b18a8088943cdd9f1c256f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 26 Aug 2024 14:49:22 +0200 Subject: Store LocalAC keys as ArtifactDigests --- src/buildtool/storage/local_ac.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/buildtool/storage/local_ac.hpp') diff --git a/src/buildtool/storage/local_ac.hpp b/src/buildtool/storage/local_ac.hpp index cb4aa171..a93130a5 100644 --- a/src/buildtool/storage/local_ac.hpp +++ b/src/buildtool/storage/local_ac.hpp @@ -20,6 +20,7 @@ #include #include "gsl/gsl" +#include "src/buildtool/common/artifact_digest.hpp" #include "src/buildtool/file_system/file_storage.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/object_type.hpp" @@ -104,8 +105,8 @@ class LocalAC { /// \param cas_key The key pointing at an ActionResult in the LocalCAS. /// \return True if an entry was successfully added to the storage. [[nodiscard]] auto WriteActionKey( - bazel_re::Digest const& action_id, - bazel_re::Digest const& cas_key) const noexcept -> bool; + ArtifactDigest const& action_id, + ArtifactDigest const& cas_key) const noexcept -> bool; /// \brief Get the key pointing at an ActionResult in the LocalCAS. /// \param action_id The id of the action that produced the result. -- cgit v1.2.3