From 991cc53386cd68038e573f6e0f2da247ae533c07 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 15 Sep 2021 18:30:37 +0200 Subject: [PATCH] Revert "Disallow reading flake.lock" This reverts commit e5596113f7fc5e47e058bb15afdf75eee02ed95e. --- src/libexpr/primops.cc | 5 ----- 1 file changed, 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) {