summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/target_cache_key.cpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-11-14 14:28:19 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-15 12:00:40 +0100
commitb6ff8c6d7bc2e8fe595604e0f36a6cdfa54000fc (patch)
treea539d778a1515bcf937c54309c9f36a97fd58fd0 /src/buildtool/storage/target_cache_key.cpp
parent65e1ee9903d17e166f37b8e296895049a3308fec (diff)
downloadjustbuild-b6ff8c6d7bc2e8fe595604e0f36a6cdfa54000fc.tar.gz
Fix serialization of the target cache key
... which was accidentially a list of (a single) object, instead of only a single JSON object. (cherry-picked from 63a874517618a57dd5ca223d19a795c28a39c123)
Diffstat (limited to 'src/buildtool/storage/target_cache_key.cpp')
-rw-r--r--src/buildtool/storage/target_cache_key.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buildtool/storage/target_cache_key.cpp b/src/buildtool/storage/target_cache_key.cpp
index 11ea5c84..7d300338 100644
--- a/src/buildtool/storage/target_cache_key.cpp
+++ b/src/buildtool/storage/target_cache_key.cpp
@@ -31,10 +31,10 @@ auto TargetCacheKey::Create(std::string const& repo_key,
try {
// target's repository is content-fixed, we can compute a cache key
auto target_desc = nlohmann::json{
- {{"repo_key", repo_key},
- {"target_name",
- nlohmann::json{target_name.module, target_name.name}.dump()},
- {"effective_config", effective_config.ToString()}}};
+ {"repo_key", repo_key},
+ {"target_name",
+ nlohmann::json{target_name.module, target_name.name}.dump()},
+ {"effective_config", effective_config.ToString()}};
if (auto target_key = Storage::Instance().CAS().StoreBlob(
target_desc.dump(2), /*is_executable=*/false)) {
return TargetCacheKey{