mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Fix BinaryCacheStore::registerDrvOutput
Was crashing because coercing a json document into a string is only valid if the json is a string, otherwise we need to call `.dump()`
This commit is contained in:
parent
e3ddffb27e
commit
962b82ef25
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ std::optional<const Realisation> BinaryCacheStore::queryRealisation(const DrvOut
|
|||
|
||||
void BinaryCacheStore::registerDrvOutput(const Realisation& info) {
|
||||
auto filePath = realisationsPrefix + "/" + info.id.to_string() + ".doi";
|
||||
upsertFile(filePath, info.toJSON(), "application/json");
|
||||
upsertFile(filePath, info.toJSON().dump(), "application/json");
|
||||
}
|
||||
|
||||
ref<FSAccessor> BinaryCacheStore::getFSAccessor()
|
||||
|
|
Loading…
Reference in a new issue