summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-11-14 14:28:19 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-11-14 16:41:51 +0100
commit63a874517618a57dd5ca223d19a795c28a39c123 (patch)
treefe2877a25a702fc5e28590c1f271ae63d54ec99c /src
parent3d6624087acbb92fb3c2a305d2f4ca4ff2ed59ee (diff)
downloadjustbuild-63a874517618a57dd5ca223d19a795c28a39c123.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.
Diffstat (limited to 'src')
-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{