From 0b3c77edde2b3497e3d943d1433d704453eabd19 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 11 Sep 2024 15:19:34 +0200 Subject: Check compatibility in readers based on the hash type --- src/buildtool/execution_api/local/local_cas_reader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/buildtool/execution_api/local/local_cas_reader.cpp') diff --git a/src/buildtool/execution_api/local/local_cas_reader.cpp b/src/buildtool/execution_api/local/local_cas_reader.cpp index 2da3bc00..bac7ee71 100644 --- a/src/buildtool/execution_api/local/local_cas_reader.cpp +++ b/src/buildtool/execution_api/local/local_cas_reader.cpp @@ -164,6 +164,10 @@ auto LocalCasReader::DumpRaw(std::filesystem::path const& path, return true; } +auto LocalCasReader::IsNativeProtocol() const noexcept -> bool { + return ProtocolTraits::IsNative(cas_.GetHashFunction().GetType()); +} + namespace { [[nodiscard]] auto AssembleTree( bazel_re::Directory root, -- cgit v1.2.3