From 2bd069cdecb5371d906f8df9f5fb36f308d6296f Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 12 Mar 2024 18:23:35 +0100 Subject: Move storage-aware tmpdir creation to config ... as the fs_utils have a lot more dependencies making them usable in less places. Moreover, this function also serves to shape the layout of the local build root and hence is more appropriately placed in the config anyway. --- src/buildtool/execution_api/execution_service/cas_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/cas_utils.cpp') diff --git a/src/buildtool/execution_api/execution_service/cas_utils.cpp b/src/buildtool/execution_api/execution_service/cas_utils.cpp index b710dd36..e2c4a418 100644 --- a/src/buildtool/execution_api/execution_service/cas_utils.cpp +++ b/src/buildtool/execution_api/execution_service/cas_utils.cpp @@ -23,7 +23,7 @@ #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/git_repo.hpp" #include "src/buildtool/file_system/object_type.hpp" -#include "src/buildtool/storage/fs_utils.hpp" +#include "src/buildtool/storage/config.hpp" #include "src/utils/cpp/hex_string.hpp" auto CASUtils::EnsureTreeInvariant(std::string const& data, @@ -150,7 +150,7 @@ auto CASUtils::SpliceBlob(bazel_re::Digest const& blob_digest, -> std::variant { // Assemble blob from chunks. - auto tmp_dir = StorageUtils::CreateTypedTmpDir("splice"); + auto tmp_dir = StorageConfig::CreateTypedTmpDir("splice"); auto tmp_file = tmp_dir->GetPath() / "blob"; { std::ofstream tmp(tmp_file, std::ios::binary); -- cgit v1.2.3