mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 16:52:27 +00:00
Turn error for non-existant follows into a warning
This commit is contained in:
parent
c1c37f3200
commit
411111a3bc
@ -373,8 +373,7 @@ LockedFlake lockFlake(
|
||||
{
|
||||
debug("computing lock file node '%s'", printInputPath(inputPathPrefix));
|
||||
|
||||
auto overrides2 = overrides;
|
||||
for (auto & [inputPath, inputOverride] : overrides2) {
|
||||
for (auto [inputPath, inputOverride] : overrides) {
|
||||
auto inputPath2(inputPath);
|
||||
auto follow = inputPath2.back();
|
||||
inputPath2.pop_back();
|
||||
@ -388,7 +387,7 @@ LockedFlake lockFlake(
|
||||
root.append(".inputs.");
|
||||
}
|
||||
}
|
||||
throw Error(
|
||||
warn(
|
||||
"%s has a `follows'-declaration for a non-existant input %s!",
|
||||
root,
|
||||
follow
|
||||
|
@ -877,4 +877,4 @@ EOF
|
||||
|
||||
git -C $flakeFollowsA add flake.nix
|
||||
|
||||
nix flake lock $flakeFollowsA 2>&1 | grep "error: B has a \`follows'-declaration for a non-existant input invalid!"
|
||||
nix flake lock $flakeFollowsA 2>&1 | grep "warning: B has a \`follows'-declaration for a non-existant input invalid!"
|
||||
|
Loading…
Reference in New Issue
Block a user