Add comment about gitignoreSource application order
commita8e920f095665a36e59d70a8793f3b237048465e
authorElliot Cameron <eacameron@gmail.com>
dateWed 11 Mar 2020, 14:09 (7 years ago)
parentccf3471
default.nix+6−1
@@ -11,7 +11,12 @@ let
1111
1212 inherit (import dep/gitignore.nix { inherit (nixpkgs) lib; }) gitignoreSource;
1313
14− cleanSource = src: pkgs.lib.cleanSource (gitignoreSource src);
14+ cleanSource = src:
15+ # WARNING: The order of application here seems to matter a great deal to
16+ # how quickly `ghcid` is able to reload changes. As a rule of thumb,
17+ # always apply `gitignoreSource` first.
18+ # See https://github.com/obsidiansystems/obelisk/pull/666 and related.
19+ pkgs.lib.cleanSource (gitignoreSource src);
1520
1621 commandRuntimeDeps = pkgs: with pkgs; [
1722 coreutils