diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2022-10-19 11:50:30 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-10-19 15:57:14 +0200 |
commit | 2eea8a38c3461c54cf356e2f7310776f1152982b (patch) | |
tree | b0ea57e9b5ec55274f75fd7b3abe586063e60c49 /src/buildtool/execution_api | |
parent | 2cfab6bdf859695b934187b6d847329895ecd324 (diff) | |
download | justbuild-2eea8a38c3461c54cf356e2f7310776f1152982b.tar.gz |
Add generation directory as part of the just cache root.
This change is introduced to be prepared for future changes such as garbage
collection. It is an incompatible change compared to earlier just versions
since it modifies the local path to the just cache directory, where among
others the CASes, action cache, target-level cache are located.
Diffstat (limited to 'src/buildtool/execution_api')
-rw-r--r-- | src/buildtool/execution_api/local/config.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/local/config.hpp b/src/buildtool/execution_api/local/config.hpp index f905fada..c3b526bd 100644 --- a/src/buildtool/execution_api/local/config.hpp +++ b/src/buildtool/execution_api/local/config.hpp @@ -105,8 +105,8 @@ class LocalExecutionConfig { [[nodiscard]] static auto CacheRoot() noexcept -> std::filesystem::path { auto& cache_root = Data().cache_root; if (cache_root.empty()) { - cache_root = - UpdatePathForCompatibility(BuildRoot() / "protocol-dependent"); + cache_root = UpdatePathForCompatibility( + BuildRoot() / "protocol-dependent" / "generation-0"); } return cache_root; } |