+2
-2
lib/fileset/default.nix
+2
-2
lib/fileset/default.nix
······-lib.fileset.fileFilter: First argument is of type ${typeOf predicate}, but it should be a function.''+lib.fileset.fileFilter: First argument is of type ${typeOf predicate}, but it should be a function instead.''
+25
-14
lib/fileset/internal.nix
+25
-14
lib/fileset/internal.nix
···+"lib.fileset.fileFilter: The predicate function passed as the first argument must be able to handle extra attributes for future compatibility. If you're using `{ name, file }:`, use `{ name, file, ... }:` instead." = null;-"lib.fileset.fileFilter: The predicate function passed as the first argument must be able to handle extra attributes for future compatibility. If you're using `{ name, file }:`, use `{ name, file, ... }:` instead." = null;
+27
lib/fileset/tests.sh
+27
lib/fileset/tests.sh
···+expectFailure 'fileFilter null (abort "this is not needed")' 'lib.fileset.fileFilter: First argument is of type null, but it should be a function instead.'+expectFailure 'fileFilter (file: abort "this is not needed") null' 'lib.fileset.fileFilter: Second argument is of type null, but it should be a file set or a path instead.'+expectFailure 'fileFilter (file: abort "this is not needed") ./a' 'lib.fileset.fileFilter: Second argument \('"$work"'/a\) is a path that does not exist.'···+checkFileset 'fileFilter (file: assert file.name != "c"; file.name == "a") (difference ./. ./c)'