-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
Description
I would like to use a bind mount to sync a very large directory, which is a bit more robust than using file watches. File watches tend to miss changes, especially when it is watching thousands of files. In that large directory are a few files (pypoetry.toml and poetry.lock) that need to trigger a rebuild. Right now, it's impossible to combine a global bind mount with some small rebuild watches, because it triggers the following warning, which skips the watch:
WARN[0004] path '/project/pyproject.toml' also declared by a bind mount volume, this path won't be monitored!
The reason for this warning, is to help the user create a sane compose.yaml file, by not allowing this overlap. I think we can find a middle ground. Instead of disallowing it, this should just perform the watch anyway, but still log a message.