compose/pkg/watch
Milas Bowman da1ca578b5 watch: ignore ephemeral files & minor output tweaks
Big change here is to import the ephemeral ignore set from Tilt.

The `.git` directory is also ignored for now: this restriction
should probably be lifted and made configurable in the future,
but it's not generally important to watch and triggers a LOT of
events (e.g. Git creates `index.lock` files that will appear and
disappear rapidly as terminals/IDEs/etc interact with Git, even
for read-only operations).

The Tilt-provided ephemeral file set has been slowly devised over
time based on temporary files that can cause trouble. We can also
look at a more robust/configurable solution here in the future,
but thse provide a reasonable out-of-the-box configuration for
the moment.

There's also some small tweaks to the output to add missing
newlines in a few edge cases and such.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-02-24 14:34:51 -05:00
..
dockerignore.go use tilt watcher to track filesystem changes 2023-02-02 14:59:30 +01:00
ephemeral.go watch: ignore ephemeral files & minor output tweaks 2023-02-24 14:34:51 -05:00
notify.go watch: ignore ephemeral files & minor output tweaks 2023-02-24 14:34:51 -05:00
notify_test.go use CGO to enable fsevent on OSX 2023-02-10 17:24:48 +01:00
paths.go adjust code and dependencies 2023-02-02 14:59:30 +01:00
paths_test.go adjust code and dependencies 2023-02-02 14:59:30 +01:00
temp.go adjust code and dependencies 2023-02-02 14:59:30 +01:00
temp_dir_fixture.go adjust code and dependencies 2023-02-02 14:59:30 +01:00
watcher_darwin.go watch: ignore ephemeral files & minor output tweaks 2023-02-24 14:34:51 -05:00
watcher_naive.go watch: ignore ephemeral files & minor output tweaks 2023-02-24 14:34:51 -05:00
watcher_naive_test.go adjust code and dependencies 2023-02-02 14:59:30 +01:00
watcher_nonwin.go adjust code and dependencies 2023-02-02 14:59:30 +01:00
watcher_windows.go adjust code and dependencies 2023-02-02 14:59:30 +01:00