Why is `ignoreFile` set to `const False`? For me this resulted in emacs temp files not being ignored in testing
cxandru opened this issue · 2 comments
hakyll-nix-template/ssg/src/Main.hs
Line 35 in 9a03eb2
I'm following the instructions as per the readme. I originally expected
hakyll-nix-template/haskell-overlay.nix
Line 47 in 9a03eb2
nix build
But I guess it can't really work for live rebuilding anyway. So my question is, why set this to const False
in the template and have Emacs users run into problems?I use vim/neovim, but I have it set up to put all my swap files in a certain system directory that isn't the current one, so I don't run in to this. I personally don't want it to ignore hidden directories and files, like ".well-known/*"
, so that's why I did this, but that gitignoreSourcePure
If this doesn't work for you, I would try commenting that line out.
As you can see from the source, https://github.com/jaspervdj/hakyll/blob/4086d0d87c8ff2327f250ed67ff65d1ea5c14fb1/lib/Hakyll/Core/Configuration.hs#L97-L120, it performs some checks and returns a Bool (see ignoreFile'
). If you want those checks, then by all means restore the original functionality.
It might be worth me not including that in this template... I'll think on it. It's possible that gitignoreSourcePure
and ignoreFile
aren't playing well together for my usecase, anyway (haven't thought about it in a while, to be honest).