From 30e9d0151699206579df3f442e8517a2f8458cc2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 24 Feb 2016 16:52:07 +0100 Subject: [PATCH] openStoreAt(): Initialise the binary cache --- src/libstore/store-api.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index f9c876770..9f72bbd83 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -323,9 +323,11 @@ namespace nix { ref openStoreAt(const std::string & uri, bool reserveSpace) { if (std::string(uri, 0, 7) == "file://") { - return make_ref(std::shared_ptr(0), + auto store = make_ref(std::shared_ptr(0), "", "", // FIXME: allow the signing key to be set std::string(uri, 7)); + store->init(); + return store; } enum { mDaemon, mLocal, mAuto } mode;