Open ndom91 opened 4 months ago
Hi, thanks for the issue. We don't filter by .gitignore
because the daemon needs to watch files that may be gitignored, such as your task outputs. We do this so we can detect if the task outputs haven't changed and therefore we don't need to do a cache restoration.
That said, clearly such an error shouldn't crash the package changes stream. I'll look into that and also see if we can add some gitignore filtering to the package changes watcher.
@NicholasLYang thanks for getting back to me! If .gitignore
content isn't ignored by default, you may also want to reword some of the documentation here.
Also, can you confirm whether or not the inputs: ["!directory"]
is supposed to work as I'm expecting? According to the docs you should be able to ignore certain files/directories from acting as inputs and being watched by the filewatcher. Is that right? I tried this as well, but it also didn't seem to work
Verify canary release
Link to code that reproduces this issue
https://github.com/gitbutlerapp/gitbutler
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Which canary version will you have in your reproduction?
2.0.7-canary.1
Describe the Bug
A few times a day when trying to spin up my dev tasks (via
turbo watch ..
) it'll fail to start with the error message "fail to connect to daemon: server is unavailable: channel closed". After runningdaemon clear
and/ordaemon restart
it usually works again for a while.I finally noticed that
turbo daemon logs
will also tail the logs, so I ran this in the background while such an error occured. The error withturbo watch
crashign always seems to occur while some Rust code is compiling and will log some output like this:This is a Tauri project and the
target/..
directory is the Rust compile output, so files are often being written and deleted quickly. This directory is already a part of our.gitignore
. I also tried adding!target
to theinputs
array for thedev
task. Unfortunately that didn't seem to ignore that directory either.From what I understand, the directory should be automatically ignored by being in our
.gitignore
anyway. Am I missing something here? :thinking:Expected Behavior
Turbo watcher doesn't crash on rust compiles.
To Reproduce
pnpm
dependenciespnpm tauri dev
in the root of the repositoryAdditional context
No response