From 883d4d24118e2e9f1184ab1023a6488c0d12ac0e Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 7 Mar 2024 16:06:39 +0100 Subject: local build root layout: collect all ephemeral directories ... under a common root in the youngest generation. This will allow a simple way of cleaning them up during garbage collection. --- src/buildtool/storage/fs_utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/buildtool/storage/fs_utils.cpp') diff --git a/src/buildtool/storage/fs_utils.cpp b/src/buildtool/storage/fs_utils.cpp index 83167181..5cc3d8a0 100644 --- a/src/buildtool/storage/fs_utils.cpp +++ b/src/buildtool/storage/fs_utils.cpp @@ -51,8 +51,7 @@ auto GetGitRoot(LocalPathsPtr const& just_mr_paths, auto CreateTypedTmpDir(std::string const& type) noexcept -> TmpDirPtr { // try to create parent dir - auto parent_path = - StorageConfig::GenerationCacheRoot(0) / "tmp-workspaces" / type; + auto parent_path = StorageConfig::EphemeralRoot() / "tmp-workspaces" / type; return TmpDir::Create(parent_path); } -- cgit v1.2.3