Skip to content

Commit

Permalink
Revert "Propagate path context via builtins.readFile"
Browse files Browse the repository at this point in the history
This reverts commit f7f0116.

Issue #1174.
  • Loading branch information
edolstra committed Jan 24, 2017
1 parent fa738e5 commit 4e6a2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops.cc
Expand Up @@ -779,7 +779,7 @@ 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);
mkString(v, s.c_str(), context);
mkString(v, s.c_str());
}


Expand Down

0 comments on commit 4e6a2fb

Please sign in to comment.