diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-27 16:16:09 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 13:32:39 +0200 |
commit | 4ebb3bf82551c334d16f4935c751fb554224e19c (patch) | |
tree | c358d268e8704bd1b50430f4305ed713b5fb5812 /src/buildtool/common/repository_config.hpp | |
parent | 9f5dcef077a3db2f6c791e403e5036f6464c9576 (diff) | |
download | justbuild-4ebb3bf82551c334d16f4935c751fb554224e19c.tar.gz |
Pass Storage to RepositoryConfig
...and adjust AnalyseContext.
Diffstat (limited to 'src/buildtool/common/repository_config.hpp')
-rw-r--r-- | src/buildtool/common/repository_config.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/common/repository_config.hpp b/src/buildtool/common/repository_config.hpp index ea463d43..8c5c29a5 100644 --- a/src/buildtool/common/repository_config.hpp +++ b/src/buildtool/common/repository_config.hpp @@ -28,6 +28,7 @@ #include "src/buildtool/file_system/file_root.hpp" #include "src/buildtool/file_system/git_cas.hpp" #include "src/buildtool/multithreading/atomic_value.hpp" +#include "src/buildtool/storage/storage.hpp" class RepositoryConfig { @@ -136,7 +137,8 @@ class RepositoryConfig { // Obtain repository's cache key if the repository is content fixed or // std::nullopt otherwise. - [[nodiscard]] auto RepositoryKey(std::string const& repo) const noexcept + [[nodiscard]] auto RepositoryKey(Storage const& storage, + std::string const& repo) const noexcept -> std::optional<std::string>; // used for testing |