diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-11-14 14:28:19 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-11-15 12:00:40 +0100 |
commit | b6ff8c6d7bc2e8fe595604e0f36a6cdfa54000fc (patch) | |
tree | a539d778a1515bcf937c54309c9f36a97fd58fd0 /src/buildtool/storage/target_cache_key.cpp | |
parent | 65e1ee9903d17e166f37b8e296895049a3308fec (diff) | |
download | justbuild-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.cpp | 8 |
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{ |