From fa738e50bcd79e5e536d7453f5571e2b13b01bda Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 Jan 2017 15:29:46 +0100 Subject: [PATCH] Revert "builtins.readFile: Put the references of the file, not those needed to realize the file, into the context" Reverting commit 451c223deea17918454ae083dcfc0ea2b6103cab for now because it breaks http://hydra.nixos.org/build/46805136, not clear why. --- src/libexpr/primops.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 5be61c647..4398cc951 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -779,9 +779,6 @@ static void prim_readFile(EvalState & state, const Pos & pos, Value * * args, Va string s = readFile(state.checkSourcePath(path)); if (s.find((char) 0) != string::npos) throw Error(format("the contents of the file ‘%1%’ cannot be represented as a Nix string") % path); - context = state.store->isInStore(path) ? - state.store->queryPathInfo(state.store->toStorePath(path))->references : - PathSet{}; mkString(v, s.c_str(), context); }