mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Simplify the check for overrides on non-existent inputs
This commit is contained in:
parent
c5b84e1a16
commit
53b7407041
2 changed files with 15 additions and 36 deletions
|
@ -883,6 +883,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 = { ... }: {};
|
||||
|
@ -891,4 +892,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'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue