Merge pull request #4371 from NixOS/ca/fix-remote-store-registerDrvOutput

Fix BinaryCacheStore::registerDrvOutput
This commit is contained in:
Eelco Dolstra 2020-12-16 12:47:32 +01:00 committed by GitHub
commit c64208d6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()