aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-15 20:18:23 +0200
committerGitHub <noreply@github.com>2021-09-15 20:18:23 +0200
commit1ec4efa6c82fb6d90887c21aa7c7c6f3c644dd65 (patch)
treebb672e0f7cf93cf6412041a88e2f396b4417042d /src/libexpr/primops.cc
parentc17f3c5e699a8332acc536b985dcd710f3ce0a23 (diff)
parent027344ce7e88bfcb6f8ed890299f286cc8e4156e (diff)
Merge pull request #5257 from edolstra/dirty-lock-file
If we can't write a lock file, pretend the top-level flake is dirty
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 1de86ad04..8a087a781 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1412,11 +1412,6 @@ static void prim_readFile(EvalState & state, const Pos & pos, Value * * args, Va
{
PathSet context;
Path path = state.coerceToPath(pos, *args[0], context);
- if (baseNameOf(path) == "flake.lock")
- throw Error({
- .msg = hintfmt("cannot read '%s' because flake lock files can be out of sync", path),
- .errPos = pos
- });
try {
state.realiseContext(context);
} catch (InvalidPathError & e) {