matchExt never matches top-level files
DavHau opened this issue · comments
Describe the bug
To Reproduce
Steps to reproduce the behavior:
- setup filter:
nix-filter {
# ...
exclude = [
(nix-filter.matchExt ".nix")
];
};
- add a new line to the flake.nix
- notice that a rebuilt of the package is triggered
Expected behavior
Adding a new line to the flake.nix should not trigger a re-build
System information
Additional context
Try without the .
;)
(nix-filter.matchExt "nix")
Hm but with the .
it still seems to match for files in sub-directories, in which case this would be an inconsistency.
While making a minimal reproducer I noticed my assumption was wrong. (nix-filter.matchExt ".nix")
does not filer anything at all.
Sorry for that.