1
1
mirror of https://github.com/oxalica/nil.git synced 2024-09-11 18:47:13 +03:00

Do not evaluate non-flake inputs

This commit is contained in:
oxalica 2023-04-22 05:53:39 +08:00
parent 1482f7b706
commit bca539e4b9

View File

@ -418,7 +418,8 @@ impl Server {
.iter()
.filter_map(|(input_name, path)| {
let path = path.as_path().expect("Must be real paths");
path.exists().then_some((input_name, path))
// FIXME: Filter `flake = true` inputs.
path.join(FLAKE_FILE).exists().then_some((input_name, path))
})
.collect::<Vec<_>>();