mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
parent
d2c8eed344
commit
991cc53386
1 changed files with 0 additions and 5 deletions
|
@ -1412,11 +1412,6 @@ static void prim_readFile(EvalState & state, const Pos & pos, Value * * args, Va
|
||||||
{
|
{
|
||||||
PathSet context;
|
PathSet context;
|
||||||
Path path = state.coerceToPath(pos, *args[0], 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 {
|
try {
|
||||||
state.realiseContext(context);
|
state.realiseContext(context);
|
||||||
} catch (InvalidPathError & e) {
|
} catch (InvalidPathError & e) {
|
||||||
|
|
Loading…
Reference in a new issue