You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have an explicit whitelist specified with nix-filter combined with a blacklist based on .gitignore. Can I compose nix-filter somehow with, for example: https://github.com/hercules-ci/gitignore.nix? Thanks!
The text was updated successfully, but these errors were encountered:
It would take a few days of work to assess and come up with a composable design properly. It's not something I planned to address, unless it comes up as a need in our consulting work.
Along with basic combinators allowing you to add/remove files, it also comes with a lib.fileset.fromSource function, which can turn lib.source-based values, such as pkgs.nix-gitignore or gitignore.nix into a value that can be composed easily, like this:
letfs=lib.fileset;in# Remove all `./tests` files from non-gitignored filesfs.difference(fs.fromSource(gitignoreSource./.))./tests
I'd like to have an explicit whitelist specified with nix-filter combined with a blacklist based on .gitignore. Can I compose nix-filter somehow with, for example: https://github.com/hercules-ci/gitignore.nix? Thanks!
The text was updated successfully, but these errors were encountered: