From 63a874517618a57dd5ca223d19a795c28a39c123 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 14 Nov 2023 14:28:19 +0100 Subject: Fix serialization of the target cache key ... which was accidentially a list of (a single) object, instead of only a single JSON object. --- src/buildtool/storage/target_cache_key.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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{ -- cgit v1.2.3