mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Fix template checking
This commit is contained in:
parent
6285c91619
commit
da553de7b1
1 changed files with 3 additions and 1 deletions
|
@ -450,7 +450,9 @@ struct CmdFlakeCheck : FlakeCommand
|
|||
if (auto attr = v.attrs->get(state->symbols.create("path"))) {
|
||||
if (attr->name == state->symbols.create("path")) {
|
||||
PathSet context;
|
||||
state->coerceToStorePath(attr->pos, *attr->value, context);
|
||||
auto path = state->coerceToPath(attr->pos, *attr->value, context);
|
||||
if (!path.pathExists())
|
||||
throw Error("template '%s' refers to a non-existent path '%s'", attrPath, path);
|
||||
// TODO: recursively check the flake in 'path'.
|
||||
}
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue