mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +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) {
|
void BinaryCacheStore::registerDrvOutput(const Realisation& info) {
|
||||||
auto filePath = realisationsPrefix + "/" + info.id.to_string() + ".doi";
|
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()
|
ref<FSAccessor> BinaryCacheStore::getFSAccessor()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue