1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Simplify the check for overrides on non-existent inputs

This commit is contained in:
Eelco Dolstra 2022-07-13 13:39:06 +02:00
parent 438776cce7
commit 12df8885cc
2 changed files with 15 additions and 36 deletions

View file

@ -869,6 +869,7 @@ cat >$flakeFollowsA/flake.nix <<EOF
inputs.B = {
url = "path:./flakeB";
inputs.invalid.follows = "D";
inputs.invalid2.url = "path:./flakeD";
};
inputs.D.url = "path:./flakeD";
outputs = { ... }: {};
@ -877,4 +878,5 @@ EOF
git -C $flakeFollowsA add flake.nix
nix flake lock $flakeFollowsA 2>&1 | grep "warning: B has a \`follows'-declaration for a non-existant input invalid!"
nix flake lock $flakeFollowsA 2>&1 | grep "warning: input 'B' has an override for a non-existent input 'invalid'"
nix flake lock $flakeFollowsA 2>&1 | grep "warning: input 'B' has an override for a non-existent input 'invalid2'"