mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Merge pull request #7372 from edolstra/fix-json
nix store make-content-addressed: Fix JSON construction
This commit is contained in:
commit
f91dc023f2
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ struct CmdMakeContentAddressed : virtual CopyCommand, virtual StorePathsCommand,
|
|||
assert(i != remappings.end());
|
||||
jsonRewrites[srcStore->printStorePath(path)] = srcStore->printStorePath(i->second);
|
||||
}
|
||||
std::cout << json::object({"rewrites", jsonRewrites}).dump();
|
||||
std::cout << nlohmann::json{"rewrites", jsonRewrites}.dump();
|
||||
} else {
|
||||
for (auto & path : storePaths) {
|
||||
auto i = remappings.find(path);
|
||||
|
|
Loading…
Reference in a new issue