1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 14:53:16 +02:00

Improve error message when flake.nix exists but is not under Git control

This commit is contained in:
Eelco Dolstra 2022-12-09 17:53:44 +01:00
parent f62018438d
commit d950e3a0db

View file

@ -148,9 +148,6 @@ static Flake readFlake(
CanonPath flakeDir(resolvedRef.subdir);
auto flakePath = rootDir + flakeDir + "flake.nix";
if (!flakePath.pathExists())
throw Error("file '%s' does not exist", flakePath);
Value vInfo;
state.evalFile(flakePath, vInfo, true);