-
Notifications
You must be signed in to change notification settings - Fork 69
watcher watches $HOME for some inputs (which leads to crashes) #211
Comments
I’m sorry, human panic threw away the important bit … Could you re-run with |
Ah yeah this looks a little more helpful:
I'm not sure why there is a permission error, is there any traces you'd like me to run?
|
What’s the output if you run with You could try what happens if you play around with https://github.com/emcrisostomo/fswatch, whether you also get permission denied errors. |
Ah- It looks like hercules-ci/gitignore is causing lorri to generalize paths incorrectly:
Changing
to
is a workaround. |
This also happened in #103 (comment), although on Linux. There is a bug in the watcher somewhere. |
Looking into this @blaxill, thanks for explaining that you're using
(https://github.com/hercules-ci/gitignore#features) could be the issue. My hypothesis right now is that if this gitignore depends in the Nix sense on all its ancestor directories, then |
Ah, you are absolutely right I think! I always thought that was a bad idea (mostly because of hermeticity), but now I have proof. :P I wonder how lorri could deal with this. We might be able to create a lint check for something like that. |
@Profpatsch, before removing the gitignore lib everywhere, remember that hermeticity is lost when any of your user-configured tools writes to the worktree, and gitignore fixes that. |
That’s true. But taking into account out-of-repository |
Also true. Can't have both. |
I’m gonna close this, since we can’t really do anything about nix code that lists parent directories. |
The example project works for me, but unfortunately when trying one of my existing projects I get a panic for both master and rolling-release lorri branches:
My shell.nix works outside of lorri, and is basically a normal haskellPackages.developPackage, with Niv for dependency pinning:
The panic occurs with both
lorri daemon
andlorri watch
:The text was updated successfully, but these errors were encountered: