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:
parent
f62018438d
commit
d950e3a0db
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue